Closed
Bug 1639949
Opened 6 years ago
Closed 6 years ago
Toolchain build support with scripts in comm repos
Categories
(Thunderbird :: Build Config, task)
Thunderbird
Build Config
Tracking
(thunderbird78 fixed)
RESOLVED
FIXED
Thunderbird 79.0
| Tracking | Status | |
|---|---|---|
| thunderbird78 | --- | fixed |
People
(Reporter: rjl, Assigned: rjl)
Details
Attachments
(2 files, 2 obsolete files)
|
2.43 KB,
patch
|
darktrojan
:
review+
rjl
:
approval-comm-beta+
|
Details | Diff | Splinter Review |
|
6.13 KB,
patch
|
rjl
:
review+
|
Details | Diff | Splinter Review |
This keeps coming up.
We need the ability to create build toolchains that are specific to Thunderbird and have the scripts be in our repository.
Examples where this can be used:
- libotr libraries - building these as a toolchain makes sense since the code really does not change much and we want to make use of the artifact caching. The "thirdparty" kind tries to do this but doesn't manage very well.
- A MinGW based toolchain for building libotr for Windows. Currently this is accomplished in a Docker image specific to this task but a having a toolchain would be better. The Docker image setup is in M-C and it would be nice if it wasn't. It's presence is "tolerated".
- For RNP on linux32 we'll need to build libc++.a ourselves, a toolchain job is most appropriate.
| Assignee | ||
Comment 1•6 years ago
|
||
There's some verification that happens in the Decision task that checks that
documentation exists. In this case we need to make sure that the "comm-toolchain-script"
run-as function passes such verification.
Other updates for existing functionality included as well.
Attachment #9150816 -
Flags: review?(geoff)
| Assignee | ||
Updated•6 years ago
|
Assignee: nobody → rob
Status: NEW → ASSIGNED
| Assignee | ||
Comment 2•6 years ago
|
||
The original plan for libotr was to build it as a toolchain dependency. That
was not possible at the time, but can be done now. The biggest advantage to
switching is going to be improved artifact indexing.
This will also be used for some RNP work.
Most of this code is copied from taskgraph with modifications made to fix
some hardcoded paths. There are no plans to update the code in M-C.
Attachment #9150817 -
Flags: review?(geoff)
| Assignee | ||
Comment 3•6 years ago
|
||
Either bug 1625806 or bug 1634209 is going to make use of this toolchain work first. Which ever one does, will need to update toolchain/kind.yml with this patch.
Just putting it here so it doesn't get lost in the meantime.
Updated•6 years ago
|
Attachment #9150816 -
Flags: review?(geoff) → review+
Comment 4•6 years ago
|
||
Comment on attachment 9150817 [details] [diff] [review]
Support toolchain build script in Thunderbird repos
Review of attachment 9150817 [details] [diff] [review]:
-----------------------------------------------------------------
::: taskcluster/comm_taskgraph/transforms/job/toolchain.py
@@ +116,5 @@
> + # Use `mach` to invoke python scripts so in-tree libraries are available.
> + if run['script'].endswith('.py'):
> + wrapper = [path.join(gecko_path, 'mach'), 'python']
> + else:
> + wrapper = []
This bit's just disappeared from m-c: https://hg.mozilla.org/mozilla-central/rev/fecf02b98dd7
Attachment #9150817 -
Flags: review?(geoff) → review+
| Assignee | ||
Comment 5•6 years ago
|
||
The original plan for libotr was to build it as a toolchain dependency. That
was not possible at the time, but can be done now. The biggest advantage to
switching is going to be improved artifact indexing.
This will also be used for some RNP work.
Most of this code is copied from taskgraph with modifications made to fix
some hardcoded paths. There are no plans to update the code in M-C.
| Assignee | ||
Updated•6 years ago
|
Attachment #9150817 -
Attachment is obsolete: true
| Assignee | ||
Comment 6•6 years ago
|
||
Comment on attachment 9154048 [details] [diff] [review]
Support toolchain build script in Thunderbird repos
Removed code referred to in comment 4, setting previous review state +.
Attachment #9154048 -
Attachment filename: base-41ca56110e2f → Bug1639949_code_part2.patch
Attachment #9154048 -
Flags: review+
| Assignee | ||
Comment 7•6 years ago
|
||
Comment on attachment 9150818 [details]
toolchain/kind.yml changes to use the functionality in the other patches on this bug
Moved to bug 1625806.
Attachment #9150818 -
Attachment is obsolete: true
Pushed by thunderbird@calypsoblue.org:
https://hg.mozilla.org/comm-central/rev/20fa6cd5d78a
Update comm_taskgraph documentation for toolchain building functionality. r=darktrojan
https://hg.mozilla.org/comm-central/rev/6ef6741b3bd3
Support toolchain build script in Thunderbird repos. r=darktrojan DONTBUILD
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
| Assignee | ||
Updated•6 years ago
|
Target Milestone: --- → Thunderbird 79.0
| Assignee | ||
Comment 9•6 years ago
|
||
Comment on attachment 9150816 [details] [diff] [review]
Update comm_taskgraph documentation for toolchain building functionality
[Triage Comment]
Both commits on this bug are needed for bug 1634209.
Attachment #9150816 -
Flags: approval-comm-beta+
| Assignee | ||
Comment 10•6 years ago
|
||
| bugherder uplift | ||
| Assignee | ||
Updated•6 years ago
|
status-thunderbird78:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•