Skip to content

ci: Run Tier 2 Linux natively on the runner - #967

Merged
zackees merged 11 commits into
masterfrom
ci/966-tier2-native
Oct 16, 2026
Merged

zackees merged 11 commits into
masterfrom
ci/966-tier2-native

Conversation

@zackees

@zackees zackees commented Oct 16, 2026

Copy link
Copy Markdown
Member

Fixes #966. Part of #930 / #937.

Every Tier 2 Linux job built rust/tools/linux-validate/Dockerfile from 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/EXPORTS come from OBS_TIER2_SRC/OBS_TIER2_BUILD/OBS_TIER2_EXPORTS, defaulting to /src, /build, /exports. With OBS_TIER2_SRC set it builds the checkout in place (no rsync). run.sh and the local gate are unchanged.
  • rust-linux-tier2: apt-get install of the list (through .github/scripts/retry), setup-soldr 0.9.33 with shims (cargo/rustc for Corrosion), then bash rust/tools/linux-validate/validate.sh per matrix mode. No docker build.
  • docs/ci-tooling.md: bosn ci run --workflow build-project.yaml --job rust-linux-tier2 --trigger pr --wait runs the CI job locally.

Local: bosn ci run … --job rust-linux-tier2 --matrix mode:ON is in progress; results will follow in a comment.

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.
@zackees

zackees commented Oct 16, 2026

Copy link
Copy Markdown
Member Author

Local check: bosn ci run --workflow build-project.yaml --job rust-linux-tier2 --trigger pr --matrix mode:ON --wait did not run the job. bosn reported check-event and ci-mode as unsupported (act2 has no ubuntu-26.04 runner), so it skipped rust-linux-tier2: some jobs need runners bosn cannot supervise. I've corrected the docs/ci-tooling.md text to say so. This PR's own CI is the validation; the ci/ suite (364 tests) passes locally.

…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.
@zackees
zackees merged commit 4f270ee into master Oct 16, 2026
27 checks passed
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.
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
@zackees
zackees deleted the ci/966-tier2-native branch October 26, 2026 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

ci: Run Tier 2 Linux natively on the runner, not in a Docker image built per job (step 1 of #937)

1 participant