Repository navigation
Name the encoding on two more diffusion.py reads in test_diffusion_zimage_cfg_split - #15040
Merged
Merged
Conversation
…diffusion_zimage_cfg_split
Member
Author
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Can't wait for the next one! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
This was referenced Oct 23, 2026
danielhanchen
added a commit
that referenced
this pull request
Oct 26, 2026
…apt steps (#15350) ## Why apt steps started timing out Since about Oct 22, `azure.archive.ubuntu.com` on GitHub-hosted Ubuntu runners has been serving some runners at a few tens of KB/s for hours at a time (actions/runner-images#14823, #15040). The images send apt through `mirror+file:/etc/apt/apt-mirrors.txt` with the Azure mirror first, and apt only fails over to the next entry on an error. A slow transfer is still a live transfer, so `Acquire::http::Timeout` never fires and every retry in `retry-with-apt-lock.sh` downloads from the same slow node. That is what killed the Tauri smoke build on staging: the 55 MB WebKitGTK install fetched at roughly 35 KB/s, both 360 s attempts were cut off, and the 15 minute step limit ended the job. A timed-out attempt also left its `apt-get` running under `sudo`, still holding the dpkg lock, so the second attempt opened with `Could not get lock /var/lib/dpkg/lock-frontend`. ## Fix All in `.github/scripts/retry-with-apt-lock.sh`, so every workflow that already goes through the helper picks it up: - Once per job, each mirror in `apt-mirrors.txt` is timed on a 5 s fetch of `dists/<codename>/main/binary-<arch>/Packages.gz`, and the file is rewritten fastest first. `http://archive.ubuntu.com/ubuntu/` is added as a candidate beside an `*.archive.ubuntu.com` mirror; `ports.ubuntu.com` (arm64) is left alone. A healthy Azure mirror stays first, since it is normally the fastest. - After a failed attempt the leading mirror is moved last, so the retry goes somewhere else. - After a timed-out attempt, leftover `apt-get` / `apt` processes are stopped and `dpkg --configure -a` runs before the lock wait, so the retry does not start against a lock held by the previous attempt. - `APT_PREFER_FAST_MIRROR=0` turns the mirror handling off. Without `/etc/apt/apt-mirrors.txt` or `curl` the helper behaves exactly as before. ## Tests - New `tests/studio/test_apt_mirror_preference.py` runs the real helper against a temporary mirror file with `sudo`, `curl`, `pkill`, `dpkg` and `fuser` stubbed on `PATH`: fastest mirror first, a fast Azure mirror keeps its place, a failed attempt demotes the leader, ranking happens once per job, ports mirrors get no global archive, the opt-out and a missing mirror file leave things untouched. - `test_apt_steps_are_bounded.py` now counts the probe (up to 4 x 5 s per job) and the 2 s orphan stop in each step's worst case; every existing step budget still fits. - The probe URL returns 200 with the same 1.79 MB file on `azure.archive.ubuntu.com`, `archive.ubuntu.com` and `security.ubuntu.com`.
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.
tests/test_source_read_encoding.py::test_checked_in_file_reads_name_an_encodingfails onmainagain, for example inRepo tests (CPU, rest)on #15033:#14955 added two more reads of
diffusion.pywith the platform default encoding to the same test file #15003 fixed earlier. Both now passencoding = "utf-8".Verification
main:-k checked_in_file_readsgives 1 failed, 15 passed.studio/backend/tests/test_diffusion_zimage_cfg_split.py: 35 passed.