• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

agama-project / agama / 12027129999
25%
master: 75%

Build:
Build:
LAST BUILD BRANCH: fix-l10n-reload
DEFAULT BRANCH: master
Ran 26 Nov 2024 09:01AM UTC
Jobs 2
Files 665
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

26 Nov 2024 08:59AM UTC coverage: 71.941% (+0.5%) from 71.449%
12027129999

push

github

web-flow
feat(storage): initial support for a config model (#1763)

A config model is an abstraction of the storage config to make easier
for clients to deal with the storage config. Clients (e.g., the web UI)
do not need to understand the complexity of the storage config. Instead
of that, clients directly work with the config model for both reading
the config and applying changes.

Example of storage config:

~~~
{ 
  "drives": [
    {
      "search": {
        "condition": { "name": "/dev/vda" },
        "max": 1,
        "ifNotFound": "error"
      },
      "partitions": [
        { "search": "*", "delete": true },
        { "generate": "default" }
      ]
    }
  ]
}
~~~

And its equivalence in the config model:

~~~
{
  "drives": [
    {
      "name": "/dev/vda",
      "spacePolicy": "delete",
      "partitions": [
        { "name": "/dev/vda1", "delete": true },
        { "name": "/dev/vda2", "delete": true },
        {
          "mountPath": "/",
          "filesystem": {
            "default": true,
            "type": "btrfs",
            "snapshots": false
          },
          "size": {
            "default": true,
            "min": 2048
          }
        }
      ]
    }
  ]
}
~~~

Note: this PR replaces https://github.com/agama-project/agama/pull/1748
in which the model was implemented in the web side.

252 of 276 new or added lines in 25 files covered. (91.3%)

158 existing lines in 8 files now uncovered.

17435 of 24235 relevant lines covered (71.94%)

38.81 hits per line

Subprojects
ID Flag name Job ID Ran Files Coverage
2 service 12027129999.2 26 Nov 2024 09:01AM UTC 0
89.44
GitHub Action Run
2 rust 11781949244.2 11 Nov 2024 04:09PM UTC 0
25.19
GitHub Action Run
Source Files on build 12027129999
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #12027129999
  • d7cc5fc4 on github
  • Prev Build on storage-config-ui (#11781949244)
  • Next Build on storage-config-ui (#12027129994)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc