Skip to content

Tests pass as root; CI runs once per commit, translation job only in biglinux - #63

Merged
ruscher merged 4 commits into
biglinux:mainfrom
ruscher:main
Oct 9, 2026
Merged

ruscher merged 4 commits into
biglinux:mainfrom
ruscher:main

Conversation

@ruscher

@ruscher ruscher commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

Tests as root

CI (archlinux container) runs the tests as root, and root ignores the chmod 0o500 the tests used to make the Music folder read-only. So test_unwritable_folder_is_reported_not_raised failed: the history was saved.

That test, and test_history_folder_without_permission_never_breaks_reading, now give the history folder a regular file as its parent, which stops root too.

Workflows

  • CI ran every pull request twice, once for the push and once for pull_request. Push now triggers it only on main, and a newer commit cancels the run it replaces.
  • Translate and Build Package runs only when github.repository_owner == 'biglinux'. In forks, which have no translation keys or builder token, it hung until the 6-hour limit. Upstream behavior is unchanged, plus a 90-minute timeout and one run per branch at a time.

Verified:

  • full suite as namespaced root (podman unshare, LC_ALL=C): 265 passed;
  • in the fork: a PR gets a single CI run (python, rust and pkgbuild all succeed), and a push to main gets one CI run with the translation job skipped.

CI runs in an archlinux container as root, and root ignores a read-only
folder: the history was saved and test_unwritable_folder_is_reported_not_raised
failed. The folder is now made impossible by giving it a regular file as
parent, which stops root too.
test: unwritable history folder also when tests run as root
- CI ran every pull request twice: once for the push to its branch and
  once for the pull_request event. Pushes now trigger it only on main;
  a newer commit cancels the run it replaces.
- Translate and Build Package runs only in the biglinux organization.
  Forks lack the translation keys and the builder token: the translation
  step hung until GitHub's 6-hour limit. It now has a 90-minute timeout,
  and runs on the same branch queue instead of pushing over each other.
ci: one run per commit, no translation/build jobs in forks
@ruscher ruscher changed the title test: unwritable history folder also when tests run as root Tests pass as root; CI runs once per commit, translation job only in biglinux Oct 9, 2026
@ruscher
ruscher merged commit b202948 into biglinux:main Oct 9, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant