Handle DONTBUILD in commit messages
Categories
(Firefox Build System :: Task Configuration, task)
Tracking
(firefox67 fixed)
Tracking | Status | |
---|---|---|
firefox67 | --- | fixed |
People
(Reporter: dustin, Assigned: dustin)
References
Details
Attachments
(4 files)
I thought this functionality was in the decision task, but it's not!
https://github.com/taskcluster/mozilla-taskcluster/blob/master/src/jobs/treeherder_resultset.js#L68
// Common idom is to include "DONTBUILD" in changes to ammend something in a
// previous commit like code comments or modify something that is not part
// of CI.
if (lastRev.comment.indexOf("DONTBUILD") !== -1) {
console.log(`Commit for project '${repo.alias}' contains DONTBUILD, skipping`);
return;
}
It probably should be, though.
Comment 1•5 years ago
|
||
+1. I was thinking DONTBUILD should result in a green decision task with an empty graph. That would allow for add-task type actions, while still saving us most of the compute time.
Assignee | ||
Comment 2•5 years ago
|
||
I like that solution better, but it does mean that we'll have a small window of DONTBUILD not working on branches where that change hadn't been uplifted. Survivable, I suppose!
Assignee | ||
Comment 3•5 years ago
|
||
Assignee | ||
Comment 4•5 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=cc9fb48b321a84da03b16370187d5c3602b2ec60
Assignee | ||
Comment 5•5 years ago
|
||
Well, I tried to make a try job but try is still using mozilla-central so it just didn't build :)
Comment 6•5 years ago
|
||
You could probably test on try by adding a 2nd magic string that mozilla-taskcluster doesn't know about? :)
Assignee | ||
Comment 7•5 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=da104e7bebd3a645c39634afbcc59dfe903a411f
Assignee | ||
Comment 9•5 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=80f062e6c4a1d7cc3b9c17ecd81eb2f9b6273997
Assignee | ||
Comment 10•5 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=6aad48ccce57b16347aff35898b4903f4cacf5c3
Assignee | ||
Comment 11•5 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=f2a15e0023c368711362fee7e53964f2d9f1ee4f
Assignee | ||
Comment 12•5 years ago
|
||
The last try push has an empty target-tasks.json, yet ran a bunch of tasks.
[task 2019-03-11T23:12:37.901Z] Full task graph contains 14886 tasks and 44757 dependencies
[task 2019-03-11T23:12:41.375Z] writing artifact file `full-task-graph.json`
[task 2019-03-11T23:12:46.316Z] writing artifact file `runnable-jobs.json`
[task 2019-03-11T23:12:46.703Z] Generating empty target task set because dontbuild parameter is set
[task 2019-03-11T23:12:46.703Z] writing artifact file `target-tasks.json`
[task 2019-03-11T23:12:46.703Z] Generating target task graph
[task 2019-03-11T23:12:46.721Z] Adding 35 tasks with `always_target` attribute
[task 2019-03-11T23:12:46.751Z] Generating optimized task graph
[task 2019-03-11T23:12:46.752Z] Querying version control for metadata: https://hg.mozilla.org/try/json-automationrelevance/f2a15e0023c368711362fee7e53964f2d9f1ee4f
[task 2019-03-11T23:12:46.752Z] attempt 1/10
[task 2019-03-11T23:12:46.752Z] retry: calling get_automationrelevance, attempt #1
[task 2019-03-11T23:12:48.836Z] 2 commits influencing task scheduling:
[task 2019-03-11T23:12:48.836Z] bacaa8143a97 Bug 1534283 - don't build when told not to
[task 2019-03-11T23:12:48.836Z] f2a15e0023c3 Bug 1534283 - try: -j somejob DONUTBUILD
so I guess we need to override always target
. Echoes of Buildbot..
Comment 13•5 years ago
|
||
(In reply to Dustin J. Mitchell [:dustin] pronoun: he from comment #12)
The last try push has an empty target-tasks.json, yet ran a bunch of tasks.
so I guess we need to overridealways target
. Echoes of Buildbot..
Or not. All these tasks are cheap lints or tests that only run when the corresponding code changes, so I think it would be reasonable to run them anyway.
(Which isn't to say that we shouldn't have a better story around always-target
, but I don't think we need to worry about it here)
Assignee | ||
Comment 14•5 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=785afce0f53a3753587f2501ad0b5a9a35234776
Assignee | ||
Comment 15•5 years ago
|
||
It was easy enough to move the always-target support into the conditional block, and it kind of fits there better anyway.
Assignee | ||
Comment 16•5 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=dd201dd49198c47b8500af1fef57aded0987e057
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Comment 17•5 years ago
|
||
Depends on D23020
Assignee | ||
Comment 18•5 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=3ab2ff6dafb75e4e5446dd0e28212f9269b96d9d
Assignee | ||
Comment 19•5 years ago
|
||
From that latest try push:
[task 2019-03-12T23:18:05.595Z] Filter filter_no_tasks pruned 14895 tasks (0 remain)
[task 2019-03-12T23:18:05.595Z] writing artifact file target-tasks.json
[task 2019-03-12T23:18:05.595Z] Generating target task graph
[task 2019-03-12T23:18:05.613Z] Adding 35 tasks with always_target
attribute
...
so it seems to work.
Assignee | ||
Comment 21•5 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=84d63951d86b835ed6b5bd736de55a78d90db4f7
Assignee | ||
Comment 22•5 years ago
|
||
Assignee | ||
Comment 23•5 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=6b9d2c2fe3f842773f0f1e041d771be5ae095e6f
Comment 24•5 years ago
|
||
Pushed by dmitchell@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/eb2a987c6ba2 add a 'tasks_for' property; r=tomprince https://hg.mozilla.org/integration/autoland/rev/e44be7f40c6d filter out tasks when DONT-BUILD is in the message r=aki,tomprince https://hg.mozilla.org/integration/autoland/rev/6e05f81a2f8f use default parameters for mach try fuzzy r=tomprince
Comment 25•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/eb2a987c6ba2
https://hg.mozilla.org/mozilla-central/rev/e44be7f40c6d
https://hg.mozilla.org/mozilla-central/rev/6e05f81a2f8f
Comment 26•5 years ago
|
||
Hi, this doesn't appear to be working on comm-central, see:
https://treeherder.mozilla.org/#/jobs?repo=comm-central&revision=6117debc9c8a0680d8774157147565d46fd45641
Looks like this needs porting:
https://hg.mozilla.org/integration/autoland/rev/eb2a987c6ba2#l1.12
Assignee | ||
Comment 27•5 years ago
|
||
Looks like that got ported in https://hg.mozilla.org/comm-central/rev/f2b728425eaf, thanks.
Assignee | ||
Comment 28•5 years ago
|
||
remote: https://hg.mozilla.org/releases/mozilla-release/rev/d5aae246f088e39286bb4360027f670c30e3ede4
remote: https://hg.mozilla.org/releases/mozilla-release/rev/1936822aea92d858b08bfe7f54addcbb54493435
remote: https://hg.mozilla.org/releases/mozilla-release/rev/2f877e90ff57511ad04cb5b40e7fbd04a9ecd820
remote: https://hg.mozilla.org/releases/mozilla-release/rev/98032105900762a69c9ba195ceca5b280bc7315c
Assignee | ||
Comment 29•5 years ago
|
||
remote: https://hg.mozilla.org/releases/mozilla-esr60/rev/b0130d317c5535c6ef0643d4209d103fdbd61cfc
remote: https://hg.mozilla.org/releases/mozilla-esr60/rev/7b8bb76f6afe4bbf191f73ff54faa7efcf55adf3
remote: https://hg.mozilla.org/releases/mozilla-esr60/rev/aecd2582501a57c503f6a02c7577494627115a44
remote: https://hg.mozilla.org/releases/mozilla-esr60/rev/b18ece2f04083a8f38e79dce52933cac074795f1
Assignee | ||
Comment 30•5 years ago
|
||
(note that both of those brought along https://lando.services.mozilla.com/D18748/ as a prereq)
Comment 31•5 years ago
|
||
Comment 32•5 years ago
|
||
Comment on attachment 9052304 [details] [diff] [review] [build/braindump] taskgraph-diff: Add `tasks_for` property r=tomprince Review of attachment 9052304 [details] [diff] [review]: ----------------------------------------------------------------- Sorry for the delay in reviewing this. A bunch of these should have `tasks_for` be either `cron` or `action`. I had a patch locally that did that I hadn't pushed, but have done that now.
Comment 33•5 years ago
|
||
Okay! No problem, I'm glad the fix is pushed :)
Description
•