Closed Bug 1669998 Opened 5 years ago Closed 2 years ago

Try runs are not using correct fetch task artifact

Categories

(Firefox Build System :: Task Configuration, defect)

defect

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: sparky, Unassigned)

Details

When I modify the fetch-task for chromium in a new patch that is pushed to try, I am able to get the fetch task triggered and everything works fine: https://treeherder.mozilla.org/#/jobs?repo=try&tier=1%2C2%2C3&revision=26e86e7e8ce654dde69287c3d41cda5126abe2ec&searchStr=chromium%2Cosx

Fetch task job: https://treeherder.mozilla.org/#/jobs?repo=try&tier=1%2C2%2C3&revision=26e86e7e8ce654dde69287c3d41cda5126abe2ec&searchStr=chromium%2Cfetch

But when I push this patch in a stack of patches and it isn't modified from the last time I pushed it to try, it doesn't trigger a new fetch task or use the artifact created in the last push (above). It resorts to using the artifact from mozilla-central when it certainly shouldn't since the fetch task was modified: https://treeherder.mozilla.org/#/jobs?repo=try&tier=1%2C2%2C3&revision=67bc15c07ab542feb2415619b2b0e2707d888f61&searchStr=chromium

Could someone look into this please?

It doesn't look like your 2nd push is based on top of your 1st push. You probably want to do that (i.e., rebase your 2nd push on top of 38617f70135677acfd7c93c47a5fa555d062b3e0 )

The digest data doesn't contain anything that would vary based on the changes you made, so as far as the decision task is concerned, you didn't change anything that would matter for the resulting artifact.
https://searchfox.org/mozilla-central/rev/919607a3610222099fbfb0113c98b77888ebcbfb/taskcluster/taskgraph/transforms/fetch.py#379-383

OTOH, none of the definitions for those fetches actually have a revision, so they're not deterministic in the first place... It seems like what you'd really want is to either make them deterministic or make them never cached. If the former, you'd need to add a revision to taskcluster/ci/fetch/chromium-fetch.yml. If the latter, remove the digest data and adapt make_task to not call add_optimization when there isn't a digest_data.

Oh I see, thanks a lot!

:glandium, do you think I could add the contents of the fetch script into the digest data to get the behaviour I'm expecting?

Flags: needinfo?(mh+mozilla)

(In reply to Greg Mierzwinski [:sparky] from comment #3)

Oh I see, thanks a lot!

:glandium, do you think I could add the contents of the fetch script into the digest data to get the behaviour I'm expecting?

I think you either want a fixed revision or no optimization at all.

Flags: needinfo?(mh+mozilla)

From reading the comments here, it seems like this was a task configuration issue. I'm assuming it's not still a problem.

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.