Closed Bug 1717691 Opened 4 years ago Closed 4 years ago

Caching error when using `--full`

Categories

(Developer Infrastructure :: Try, defect)

defect

Tracking

(firefox-esr78 unaffected, firefox89 unaffected, firefox90 unaffected, firefox91 fixed)

RESOLVED FIXED
91 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox89 --- unaffected
firefox90 --- unaffected
firefox91 --- fixed

People

(Reporter: ahal, Assigned: ahal)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

Looks like there's a bug in the mach try cache. This could be a regression from bug 1714178.

STR:

$ touch taskcluster/mach_commands.py  # invalidates cache
$ ./mach try fuzzy --full --no-push -q "'shippable 'mochitest-browser-chrome"
# lots of tasks displayed
$ ./mach try fuzzy --full --no-push -q "'shippable 'mochitest-browser-chrome"
# no tasks are displayed

Workaround:
Touch any file under the taskcluster directory to invalidate the cache.

Assignee: nobody → ahal
Status: NEW → ASSIGNED
Regressed by: 1714178
Has Regression Range: --- → yes

When a user runs 'mach try --full', we continue computing the target task set
and cache it anyway (since we were already almost there and starting over in
the event they re-run without '--full' is very expensive.

However, when implementing the 'cache_key' function in bug 1714178, I forgot to
recompute the key in this case, causing the contents of 'target_task_set' to
overwrite the 'full_task_set' cache.

This also includes a minor improvement to re-use the 'full_task_set' cache
regardless of 'disable_target_task_filter', as that flag has zero bearing on
the full task graph. This should result in fewer cache misses when using
--full.

Pushed by ahalberstadt@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9209b676c9ea [tryselect] Ensure we re-compute the cache key for target_task_set after '--full', r=mhentges
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 91 Branch

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

Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: