Repository navigation
Conversation
|
🌿 Preview your docs: https://nvidia-preview-pr-5622.docs.buildwithfern.com/openshell |
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
|
Label |
matthewgrossman
left a comment
There was a problem hiding this comment.
This merges cleanly into current main, but I’d rebase once #5780 lands so the push lane uses the shared gateway override role. The amd64 push row already passed on this PR head, so the PR description can drop the note that it hasn’t run in CI. The next run should verify push after the rebase.
…ushes configuration Add the ubuntu-docker-rootful-config-push tmachine environment. Its setup playbook, config-push.yaml, adds config_delivery_mode = "push" to the gateway overrides through the gateway_overrides role, which the deb, rpm and binaries installers apply to the gateway's configuration. A push gateway lets a supervisor without push support keep polling, so the conformance suite passes in either mode. E2E Suites runs the conformance family in the new environment with the deb installer. mise run e2e:testkit:push runs the conformance suite against a local Docker gateway in push mode. Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
002bf18 to
0927819
Compare
with-docker-gateway.sh reuses the gateway named by OPENSHELL_GATEWAY_ENDPOINT instead of starting one, and only a gateway it starts reads OPENSHELL_CONFIG_DELIVERY_MODE. A push lane pointed at an existing polling gateway could pass without testing push, since conformance passes in either mode. Exit when both are set. e2e:testkit:push now runs through e2e/rust/e2e-docker.sh in conformance-only mode, so it uses the shared conformance helper and the Docker entries in tests/suites/unsupported.yaml. Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
matthewgrossman
left a comment
There was a problem hiding this comment.
Thanks, the environment and row look good, and the override shows up as applied in the CI log.
One thing I missed last time: rust-docker-push already runs the full conformance suite (77/77) against a push-mode Docker gateway, before config_push and policy_activation. With this row we run it twice per E2E run. I compared config_push.rs with conformance on push. Everything except the "supervisor reports a pushed session" log check and the "Policy unchanged" text is covered by policy_update::policy_set_versions_and_ignores_repeats.
Could you delete e2e/rust/tests/config_push.rs, the e2e-config-push feature, e2e:rust:push, and the rust-docker-push row in e2e-docker-test.yml here? The new row then replaces that job at about the same cost. I'm fine dropping the push-session check here if we add one back in #5792, since #4498 isn't scheduled yet. The deb override path is already covered by the CDI row. We'd also lose policy_activation under push; call it out in the description if you agree. If you'd rather keep this PR small, a follow-up right after is fine too.
Please also update the description: the suite is 77 tests now, and the latest green run is on 680749c82.
| depends = ["e2e:workload:build"] | ||
| run = "e2e/with-docker-gateway.sh cargo nextest run --locked --manifest-path tests/suites/conformance/Cargo.toml --workspace --test-threads 1 --no-fail-fast" | ||
|
|
||
| ["e2e:testkit:push"] |
There was a problem hiding this comment.
My earlier suggestion to use the shared helper pushed this onto e2e/rust/e2e-docker.sh, which goes away when we delete e2e/rust. Can you drop e2e:testkit:push? Until then mise run e2e:rust:push already runs conformance in push mode locally, and after that the tmachine row is the way to run it. It also conflicts with #5624's changes right next to it.
| exit 2 | ||
| fi | ||
|
|
||
| # The gateway this wrapper starts reads OPENSHELL_CONFIG_DELIVERY_MODE; an |
There was a problem hiding this comment.
With e2e:testkit:push gone, this guard only protects e2e:rust:push, and this script is deleted in the next migration step. I'd drop it together with e2e:rust:push (see the top-level comment) rather than add to this file.
| gateway_overrides_name: config-push | ||
| gateway_overrides_content: | | ||
| [openshell.gateway] | ||
| config_delivery_mode = "push" |
There was a problem hiding this comment.
Could you also publish OPENSHELL_TEST_CONFIG_DELIVERY_MODE: push with the test-env.yaml include, like cdi.yaml does? It costs nothing now, and any later push check can read it instead of relying on the environment name.
Summary
Runs the full conformance suite in CI against a gateway with
config_delivery_mode = "push", ahead of making push the default in #4498.Related Issue
Refs #4498. No issue required: test and CI coverage only, no product behavior change.
Changes
ubuntu-docker-rootful-config-push:ubuntu-docker-rootfulplusplaybooks/config-push.yaml, which addsconfig_delivery_mode = "push"to the gateway overrides through the sharedgateway_overridesrole. The deb, rpm and binaries installers already merge that file..github/workflows/e2e-suites.yml:conformancein the new environment with the deb installer.mise run e2e:testkit:pushruns conformance against a local Docker gateway withOPENSHELL_CONFIG_DELIVERY_MODE=push, for hosts without KVM.Nothing asserts push is in use. A typo in the setting fails gateway startup (unknown fields are rejected), and supervisors built from this tree always support push, so push is off only if the override file stops being merged. A separate evidence suite was tried and dropped as not worth a VM per E2E run.
Scope notes:
gateway_overridesrole, not this playbook.e2e/rust/tests/config_push.rswithe2e:rust:push, can go when feat(config)!: make push config delivery the default and remove supervisor polling #4498 makes push the default.Testing
mise run pre-commitpassesLocal results, before rebasing onto main (the rebase moved the playbook onto the
gateway_overridesrole and addedtest_threadsto the new row):ubuntu-docker-rootful-config-push+ deb: conformance 22/22 pass.config_push=true.CI: the
ubuntu-docker-rootful-config-push+ deb row passed on 6569462 (https://github.com/ai-openshell/openshell/actions/runs/45708598314).Checklist