Run both GTK tests and give them a display in CI; two small fixes #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "gtk-tests-ci-display"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Three small, independent commits.
Name the maintainer and the Forgejo repository in the PKGBUILD
Replaces the placeholder maintainer line and the placeholder GitHub URL, and ticks the item off the roadmap.
Let the analyze test pass on btrfs mounted with compression
analyze::tests::analyzes_directoryexpected more than 900 KiB of savings for 1 MiB of zeros. Where the temporary directory is on btrfs mounted withcompress=, the zeros are compressed as they are written,analyzecorrectly reports hardly any savings, and the test failed. That is the case forTMPDIRon such a drive and for containers whose storage is on one. Only the assertion changes: data in compressed extents counts towards the expected total.Run both GTK tests, and give them a display in CI
GTK can only be initialised on one thread, but every test runs on its own. Of the two tests of the confirmation step (the data-loss confirmation and the START button regression), the one that came second failed to initialise GTK, printed "skipping: no display" and passed without checking anything; with
--test-threads=1it panicked instead. Both now run their body on one shared thread.CI starts a headless Broadway display for the test step. With
OGC_TEST_REQUIRE_DISPLAYset, a missing display is a failure, so the GTK tests cannot silently skip there.Testing
cargo fmt --check,cargo clippy --all-targets --locked -- -D warnings,cargo test --locked: green locally.checkjob ofci.ymlwas run step by step in a fresharchlinux:latestcontainer: all four steps exit 0, and both GTK tests ran on Broadway there.packagejob, and the real Forgejo runner. This pull request is the first run of the changed workflow there.