Repository navigation
[pull] main from NVIDIA:main - #278
Merged
Merged
Conversation
…- and human-readable reports (#3344) * feat(e2e): run kubernetes suite on cargo-nextest with JUnit/HTML reports Switch e2e:kubernetes (and all its variants) from `cargo test` to `cargo nextest run` for per-test process isolation and output consistent with the other nextest-based CI runs. - Add a dedicated `e2e-kubernetes` nextest profile with a JUnit report and a generous slow-timeout (60s flag, 5-min terminate) suited to live-cluster tests; kept separate from `ci` so its JUnit path and timeouts don't affect the workspace run. - Pin `--target-dir` for the run so the profile's relative JUnit path resolves to the repo-root results/ regardless of any inherited CARGO_TARGET_DIR (nextest ignores absolute JUnit paths). - Render the JUnit XML to a standalone HTML report via xsltproc and a committed XSLT stylesheet (best-effort; never masks the test exit code). - Name each report via `OPENSHELL_E2E_REPORT_NAME` (default `e2e-kubernetes`), used verbatim for both the `results/<name>.{xml,html}` filenames and the HTML heading. Tasks that invoke the script multiple times in one run set a distinct name per invocation so the reports no longer clobber the single fixed path: the credential-driver runs write results/e2e-kubernetes-secrets.xml and -vault.xml, and e2e:kubernetes:agent-sandbox-versions writes results/e2e-kubernetes-agent-sandbox-v1beta1.xml and -v1alpha1.xml. - Declare cargo-nextest in mise [tools] so the task runs without the Nix shell. - Ignore the results/ output directory. The results/ reports do not leak information. They are gitignored and no workflow uploads them as artifacts, so they stay on the ephemeral CI runner and are discarded when it is torn down. The HTML template renders only test names, status, timings, and failure messages (no captured stdout/stderr). Moving from `cargo test -- --nocapture` to nextest's captured, failure-only output also reduces what lands in the retained, viewable console logs. Signed-off-by: Jorge Garcia Oncins <jgarciao@redhat.com> * chore(e2e): revert per-lane report names for agent-sandbox-versions The agent-sandbox-versions task runs two lanes sequentially against the same cluster: v0.5.0 (v1beta1 storage version) then v0.4.6 (v1alpha1). On a reused cluster the second lane fails when kubectl applies the older CRD, because Kubernetes refuses to drop v1beta1 from spec.versions while it remains in status.storedVersions (the storage-version downgrade guardrail). This is a pre-existing issue with the v0.4.6 lane, unrelated to the nextest reporting work. The per-lane OPENSHELL_E2E_REPORT_NAME additions do not address that downgrade failure, so revert them to keep this PR scoped to the nextest change. Agent Sandbox 0.4.x is also superseded (1.0.0 is published); dropping or bumping the v1alpha1 lane is left as a follow-up. Signed-off-by: Jorge Garcia Oncins <jgarciao@redhat.com> --------- Signed-off-by: Jorge Garcia Oncins <jgarciao@redhat.com>
* fix(policy): reject unknown endpoint security modes Closes #3046 Validate TLS, enforcement, and access values across policy and provider profile ingress, and prevent runtime parsing from falling back to audit for unknown enforcement values. Signed-off-by: Krzysztof Malczuk <kmalczuk@redhat.com> * fix(policy)!: use enums for endpoint security modes Replace the public TLS, enforcement, and access strings with protobuf enums and carry the typed values through policy composition, provider profiles, drivers, and runtime conversion. Preserve the documented YAML spellings, reject unknown and invalid numeric enum values consistently, and update generated Go bindings, SDK conversions, tests, and policy documentation. Signed-off-by: Krzysztof Malczuk <kmalczuk@redhat.com> --------- Signed-off-by: Krzysztof Malczuk <kmalczuk@redhat.com>
Signed-off-by: John Myers <9696606+johntmyers@users.noreply.github.com>
* feat(api)!: use sandbox names as canonical references Signed-off-by: Drew Newberry <anewberry@nvidia.com> * test(cli): update forward color fixture for workspace scope Signed-off-by: Drew Newberry <anewberry@nvidia.com> * fix(supervisor): use sandbox names for settings lookup Signed-off-by: Drew Newberry <anewberry@nvidia.com> * test(e2e): use canonical sandbox request fields Signed-off-by: Drew Newberry <anewberry@nvidia.com> * test(e2e): use canonical sandbox receipt field Signed-off-by: Drew Newberry <anewberry@nvidia.com> * fix(server): harden sandbox mutation handling Signed-off-by: Drew Newberry <anewberry@nvidia.com> * fix(ci): update rebased sandbox references Signed-off-by: Drew Newberry <anewberry@nvidia.com> * feat(api)!: standardize canonical entity references Signed-off-by: Drew Newberry <anewberry@nvidia.com> * docs(api): codify protobuf API conventions Signed-off-by: Drew Newberry <anewberry@nvidia.com> * fix(api): preserve workspace selector semantics Signed-off-by: Drew Newberry <anewberry@nvidia.com> * fix(api): restore workspace selector parity Signed-off-by: Drew Newberry <anewberry@nvidia.com> * fix(api): preserve descriptive name fields Signed-off-by: Drew Newberry <anewberry@nvidia.com> * fix(api): update e2e request fixtures Signed-off-by: Drew Newberry <anewberry@nvidia.com> * fix(core): omit workspace selector during bootstrap Signed-off-by: Drew Newberry <anewberry@nvidia.com> * chore(api): remove proto convention checker Signed-off-by: Drew Newberry <anewberry@nvidia.com> * chore(api): refresh schema fingerprints after rebase Signed-off-by: Drew Newberry <anewberry@nvidia.com> * fix(cli): use canonical provider receipt field Signed-off-by: Drew Newberry <anewberry@nvidia.com> --------- Signed-off-by: Drew Newberry <anewberry@nvidia.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )