Closed Bug 2088762 Opened 22 days ago Closed 16 days ago

Artifact builds on git backed try pushes stall for 30 minutes or more in download_wpt_manifest

Categories

(Testing :: web-platform-tests, defect)

defect

Tracking

(firefox-esr115 unaffected, firefox-esr153 unaffected, firefox159 unaffected, firefox160 wontfix, firefox161 wontfix, firefox162 fixed)

RESOLVED FIXED
162 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr153 --- unaffected
firefox159 --- unaffected
firefox160 --- wontfix
firefox161 --- wontfix
firefox162 --- fixed

People

(Reporter: ahochheiden, Assigned: ahochheiden)

References

(Regression)

Details

(Keywords: regression)

Attachments

(4 external files)

On git backed try pushes, Android artifact builds spend 30 to 40 minutes in download_wpt_manifest during package-tests, often long enough for mozharness to kill the build:

Automation Error: mozharness timed out after 2400 seconds running [..., 'mach', '--log-no-times', 'build', '-v']

Example: https://firefox-ci-tc.services.mozilla.com/tasks/QCtxH69xTTel_P68IWnGMw

The artifact install deepens the shallow clone with git fetch --deepen=500 --filter=tree:0, so the clone has no trees. get_commits then runs a path limited git log, and git fetches every missing tree from GitHub one at a time:
https://searchfox.org/firefox-main/rev/2b71df5bf2e07525d1129be46e0ee02ec70d34d8/testing/web-platform/manifestdownload.py#31-44

Workaround: push with GIT_BACKING_ENABLED=0.

Set release status flags based on info from the regressing bug 2082597

Differences defined __nonzero__, which Python 3 ignores, so tests
deleted from the current metadata came back whenever the new metadata
left them unchanged. test_metamerge.py would have caught this, but it
has never run in CI.

The wpt Python unit tests were registered in
testing/web-platform/moz.build, which is only read when a build
enables tests. The source-test tasks run mach python-test without a
build, so these tests never ran. testing/moz.build is always read, so
they are registered there now. The mozbase tasks also run when the
Python files in testing/web-platform change.

Both kept their own list of the mozilla-central, autoland and ESR trees,
so every new ESR had to be added in two places.

On git checkouts the commit specific wpt manifest lookup never worked,
because it sent git SHAs to the hg.mozilla.org pushlog (json-pushes),
which only knows Mercurial changesets. Collecting those SHAs with a
git log limited to the wpt test directories also stalled git backed
try artifact builds for 30 minutes or more. Filtering by path needs
each commit's tree, and the deepened history has none, so git
downloaded the trees one at a time.

Git checkouts now look up the 20 most recent commits from
git rev-list directly in the taskcluster index, which is keyed by git
SHA, and use the first match. git rev-list needs no trees. Only
pushes that change the wpt tests are indexed, but the manifest does not
change in between, so the first match is usually the right manifest.
With no match, the latest manifest is used as before.

Index requests now go through get_root_url(), which uses the
taskcluster proxy in CI, and every request now has a 30 second connect
and read timeout.

Set release status flags based on info from the regressing bug 2082597

Pushed by smolnar@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/2abcc74250ef https://hg.mozilla.org/integration/autoland/rev/3b94b6cc3d08 Revert "Bug 2088762 - Part 2 - Run the wpt python unit tests without a build r=taskgraph-reviewers,jcristau" for causing SM failures @ testing/web-platform/python.toml
Flags: needinfo?(ahochheiden)

Will fix, sorry.

Pushed by ahochheiden@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/d664d2fa262c https://hg.mozilla.org/integration/autoland/rev/3bb6cb0d2d93 Part 1 - Make mach wpt-metadata-merge work with Python 3 r=jgraham https://github.com/mozilla-firefox/firefox/commit/c14375edb84d https://hg.mozilla.org/integration/autoland/rev/5de18ab433fc Part 2 - Run the wpt python unit tests without a build r=taskgraph-reviewers,jcristau https://github.com/mozilla-firefox/firefox/commit/c215e4c8dac5 https://hg.mozilla.org/integration/autoland/rev/f6299d6c2df5 Part 3 - Share the Gecko tree list between artifact builds and the wpt manifest download r=ahal https://github.com/mozilla-firefox/firefox/commit/c8dda8c7b957 https://hg.mozilla.org/integration/autoland/rev/d519be4c8b57 Part 4 - Look up commit specific wpt manifests by git SHA on git checkouts r=ahal

The patch landed in nightly and beta is affected.

:ahochheiden, please make an uplift decision for beta:

  • For beta, nominate the patch for beta uplift approval if the fix should be included in this release, or set status-firefox161 to wontfix if the fix can wait for the next release.

Uplift requests can be submitted from Lando: D339402, D339403, D339404, D339405.

See Requesting an Uplift for documentation on how to request an uplift.

For more information, please visit BugBot documentation.

Flags: needinfo?(ahochheiden)
Regressions: 2091266
No longer regressions: 2091266

I don't think an uplift is necessary. Very niche scenario.

Flags: needinfo?(ahochheiden)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: