Repository navigation
ci: Run Tier 2 Linux natively on the runner - #967
Merged
Merged
Conversation
Fails: no shared apt-packages.txt, validate.sh hardcodes /src and /build, and rust-linux-tier2 runs the Docker harness.
Every Tier 2 Linux job built rust/tools/linux-validate/Dockerfile from scratch (about 60 apt packages and a rustup toolchain), most of its 2.4 min setup, paid by both mode jobs. rust-linux-tier2 now installs the shared apt-packages.txt natively, takes the toolchain from setup-soldr's shims and runs validate.sh on the runner, like the macOS and Windows Tier 2 jobs. validate.sh takes its roots from OBS_TIER2_SRC/BUILD/ EXPORTS, defaulting to the container paths, so run.sh is unchanged and reads the same package list. bosn ci run runs the CI job locally.
Member
Author
|
Local check: |
This was referenced Oct 16, 2026
…Refs #982) Fails: validate.sh inherits the harness's locale, PATH and HOME and prints no environment fingerprint.
) validate.sh inherited the harness's environment: root, /root and no locale in Docker; the runner user, a lived-in HOME, C.UTF-8 and the runner image's /usr/local/bin cmake natively. It now exports C.UTF-8 and UTC, puts /usr/bin first so both use the apt cmake, runs ctest with a fresh HOME and XDG dirs under the build root, and prints an environment fingerprint. A temporary step reruns the group tests alone on failure to finish diagnosing them.
A hung Docker Tier 2 job held a scarce ubuntu-26.04 runner for 4 h 25 min until cancelled; GitHub's default timeout is 6 h.
… (Refs #966, #982) Directly on the runner, test_group_empty_bounds and test_scene_dup_group_children fail deterministically (alone, as root, any CPU count) while passing in a container with identical library versions, compiler, compile flags and CPU. The job now runs in a digest-pinned stock ubuntu:26.04 image with packages from apt at job start: no Dockerfile or image build, and the environment the tests pass in.
This was referenced Oct 16, 2026
zackees
added a commit
that referenced
this pull request
Oct 16, 2026
* test: Tier 2 marks the source git-safe in every harness (RED, Refs #1019) Fails: validate.sh adds safe.directory only when OBS_TIER2_SRC is unset, and the temporary group-test diagnostic is still in the workflow. * ci: Mark the Tier 2 source git-safe in the job container (Fixes #1019) Since #967 Tier 2 Linux runs in a stock ubuntu:26.04 job container, where git runs as root on a checkout owned by the runner user. CMake then couldn't read the version tag ('dubious ownership') and Tier 2 failed in both modes on master. validate.sh now adds safe.directory for $SRC in every harness. Also removes the temporary group-test diagnostic #967 carried onto master.
11 of 15 tasks
This was referenced Oct 20, 2026
chriscoveries
pushed a commit
to chriscoveries/obsrust-fork
that referenced
this pull request
Oct 20, 2026
* ci: Test that the sanitizer deps script installs the Tier 2 package list rust/tools/sanitize/install-ubuntu-deps.sh takes the OBS build dependencies from the package lines of the first apt-get install in rust/tools/linux-validate/Dockerfile. obs-rust#967 moved those packages to the shared apt-packages.txt, so the Dockerfile's install line is now one line that reads that file, and the scrape finds no packages. Every scheduled asan, tsan and valgrind job since 2026-10-16 stops in "Install dependencies" with "no package list found in .../Dockerfile", and Triage then fails for want of results. The test runs the script against stub sudo and apt-get and checks that it installs every package in apt-packages.txt plus the launch tools. It fails on this commit: the script exits 1 before apt-get runs. Refs obs-rust#1395 * ci: Install the sanitizer deps from apt-packages.txt Read the OBS build dependencies from rust/tools/linux-validate/apt-packages.txt, the list the Tier 2 CI jobs and the Docker harness install since obs-rust#967, instead of scraping the Dockerfile, whose install line no longer lists any packages. The Sanitizers workflow has failed in "Install dependencies" on every nightly run since 2026-10-16 for this reason; the runner image did not change (ubuntu-26.04 20261012.163.1 on both the last green run and the failing ones). Against the list the old scrape found on 2026-10-15, the shared list drops ccache (sanitize.sh now uses the pinned zccache from install-zccache.sh) and adds zstd. The extra launch packages are unchanged. Refs obs-rust#1395 * test/cmocka: Build test_ws_save_changes without UBSan's vptr check The sanitizer asan pass builds with -fsanitize=address,undefined, and UBSan's vptr check makes every member call through WebSocketServer reference the class's typeinfo. That typeinfo is emitted with its out-of-line destructor in WebSocketServer.cpp, which the test does not compile (it stubs GetWebSocketServer() instead), so the link fails: undefined reference to `typeinfo for WebSocketServer' and sanitize.sh stops the asan pass on any build error. The test was added after the last sanitizer run that got past "Install dependencies", so no nightly has shown it yet. Turn the vptr check off for this one stubbed harness; outside a UBSan build the flag does nothing. Refs obs-rust#1395
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes #966. Part of #930 / #937.
Every Tier 2 Linux job built
rust/tools/linux-validate/Dockerfilefrom scratch (about 60 apt packages plus a rustup toolchain): most of its 2.4 min setup, paid by both mode jobs since #956. Per the maintainer: no Dockerfile in remote CI; run natively and use bosn/act2 locally.RED 65b6114:
ci/test_tier2_native.py, 8 failures and 1 error.GREEN fd98696: 10/10 pass, and the
ci/suite is green (364 tests).rust/tools/linux-validate/apt-packages.txt: the one package list, taken from the Dockerfile. The Dockerfile now installs it (COPY+xargs), so the local harness and CI can't drift.validate.sh:SRC/BUILD/EXPORTScome fromOBS_TIER2_SRC/OBS_TIER2_BUILD/OBS_TIER2_EXPORTS, defaulting to/src,/build,/exports. WithOBS_TIER2_SRCset it builds the checkout in place (no rsync).run.shand the local gate are unchanged.rust-linux-tier2:apt-get installof the list (through.github/scripts/retry), setup-soldr 0.9.33 with shims (cargo/rustc for Corrosion), thenbash rust/tools/linux-validate/validate.shper matrix mode. Nodocker build.docs/ci-tooling.md:bosn ci run --workflow build-project.yaml --job rust-linux-tier2 --trigger pr --waitruns the CI job locally.Local:
bosn ci run … --job rust-linux-tier2 --matrix mode:ONis in progress; results will follow in a comment.