Skip to content

test(mutagen): Minor test cleaup [skip ci] - #8719

Merged
rfay merged 1 commit into
ddev:mainfrom
rfay:20260818_rfay_test_improvement
Aug 19, 2026
Merged

rfay merged 1 commit into
ddev:mainfrom
rfay:20260818_rfay_test_improvement

Conversation

@rfay

@rfay rfay commented Aug 19, 2026

Copy link
Copy Markdown
Member

Short Summary (TL;DR)

TestMutagenSimple had some failures with no info provided. Provide it.

The Issue

https://github.com/ddev/ddev/actions/runs/32195276885

@rfay
rfay requested a review from a team as a code owner August 19, 2026 03:46
@rfay

rfay commented Aug 19, 2026

Copy link
Copy Markdown
Member Author

Traced this further: it's not a one-off. Five separate jobs, across four different workflows and three different branches, all failed with the identical signature (composer command failed: exit status 100, empty stdout/stderr, at mutagen_test.go:105) within about an hour on 2026-08-18 night UTC.

Time (UTC) Workflow Branch Job
23:39:02 Test Nginx-FPM 20260814_rfay_seed_snapshot_reset_database run 32195276931
23:39:04 Test Apache-FPM 20260814_rfay_seed_snapshot_reset_database run 32195276949
23:41:38 Test Mutagen 20260814_rfay_seed_snapshot_reset_database run 32195276885
23:42:43 Test Apache-FPM 20260818_rfay_addon_update run 32195599959, job
00:35:01 (8/19) Test Race Detection 20260818_rfay_amplitude_addon_repository run 32198476945, job

Three unrelated branches and four different workflow configs all breaking the same way at the same composer install step in the same hour points to a transient outage reaching packagist/GitHub for package downloads (or runner-pool DNS/network flakiness) rather than a bug in any of those PRs. Checked ~150 runs back on both "Test Mutagen" and "Test Race Detection" and found no other occurrence of this signature in the last 3 weeks besides this cluster, and nothing since 00:35 shows it recurring.

Buildkite's active Mutagen pipelines (macOS arm64, Windows) show nothing matching this either — macOS had zero failures in 30 days, and Windows' recent failures are from an unrelated "waiting for maintainer image-push approval" timeout.

All five runs have been restarted to confirm.

@rfay
rfay merged commit 678fad5 into ddev:main Aug 19, 2026
4 of 5 checks passed
@rfay
rfay deleted the 20260818_rfay_test_improvement branch August 19, 2026 04:01
rfay added a commit to ddev-test/ddev that referenced this pull request Aug 24, 2026
* fix(ci): wait for pushed images reliably, fixes ddev#8609 (ddev#8712)

Co-authored-by: Claude Sonnet 5 <[email protected]>

* test(mutagen): Minor test cleaup (ddev#8719)

* fix(images): gate fork image builds on approval earlier, skip it for authorized authors [skip ci]

Moves the maintainer approval for a fork PR's image build/push from after the build finishes to right after detect knows a build is needed, and skips it entirely when the PR author already has push access to the repo.

Follow-up to ddev#8707. Two rough edges in the fork-PR image build/push flow:

1. The approval gate lived in image-push.yml, triggered via workflow_run only after the entire (often multi-minute, multi-arch) fork build finished. A maintainer had no visibility into the pending approval until well after it was actually knowable.
2. A maintainer's own fork PR (author_association OWNER/MEMBER/COLLABORATOR) still had to wait on the same approval as an unknown external contributor, even though they already have push access.

- image-build-push.yml's detect job gains an `is_authorized` output (from `github.event.pull_request.author_association`) alongside the existing `is_fork`.
- A new `approve` job runs right after detect, gated on the `image-push` environment, only when the PR is from a fork and the author is not authorized. The `build` job now depends on it.
- image-push.yml no longer has its own approval gate — by the time an artifact exists to push, image-build-push.yml's `approve` job already required sign-off.
- Updated the workflow header comments and the two docs pages (building-contributing.md, release-management.md) that described the old flow.
- Added a bullet to CLAUDE.md's Comments section: write comments as a plain description of the current design, not framed relative to what changed.

- `actionlint .github/workflows/image-build-push.yml .github/workflows/image-push.yml` passes clean.
- Open a PR from an external fork that touches `containers/**`: confirm the `image-push` environment approval request appears as soon as the "Image build" workflow's `detect` job completes, not after `build` finishes.
- Open a PR from a maintainer's own fork: confirm no approval is requested and the image still builds and pushes via the existing fork-safe split.
- Open a same-repo PR or push to main: confirm behavior is unchanged (no gate, direct build-and-push).

No new automated tests — this is GitHub Actions workflow orchestration, validated with actionlint and manual PR runs as described above.

No user-facing behavior change. Affects only the internal container image build/push CI flow for ddev/ddev.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

* Emit some info about auth choice [skip ci]

* don't skip the push when authorized [skip ci]

* first try pr as rfay

* build(ci): Try it again, but this time rebased

* try it again

---------

Co-authored-by: Randy Fay <[email protected]>
Co-authored-by: Claude Sonnet 5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant