Commit 781f4b2
authored
[build]
The "log packages" produced by `make package-build-status` (a2a970f)
and `make package-test-errors` (0435a91) have one usability problem:
they aren't compatible with [`make dist`][make-dist].
Specifically, `make dist`-style packages are packages which have a
root directory that is the same as the basename of the package name.
For example, if a package is named `foo.zip`, then the contents of
`foo.zip` would all be within a `foo` directory.
Additionally, `make dist`-style files usually have a "version number"
of some form encoded in the filename, with `foo-1.zip` having all
files within it nested under the `foo-1` directory.
This has two wonderful benefits:
1. When downloading such files, they won't "collide" with each other,
because they have unique values within the filename.
2. When extracting such files, the extracted contents won't collide
with each other, as they're extracted into unique "toplevel" dirs.
Compare to e.g. `make package-build-status`, which creates a
`build-status-$(GIT_COMMIT).zip` file (thus fulfilling benefit (1)),
but when you *extract* `build-status-$(GIT_COMMIT).zip`, it extracts
"on top of" a previous extraction:
$ unzip build-status-0636fcc.zip
Archive: build-status-0636fcc.zip
inflating: Configuration.OperatingSystem.props
inflating: bin/BuildDebug/msbuild-20180716T144550-prepare-deps.binlog
...
$ unzip build-status-0d81a6b7.zip
Archive: build-status-0d81a6b7.zip
replace Configuration.OperatingSystem.props? [y]es, [n]o, [A]ll, [N]one, [r]ename:
# ARGH!
This Is Madness™!
Update the `make package-build-status` and `make package-test-errors`
targets so that the files they produce are consistent with
`make dist` convention, e.g. `make package-build-status` will create a
file named `xa-build-status-vVERSION_OS-OS_ARCH_BRANCH_HASH.zip` --
which is consistent with the `make package-oss` filename -- and the
*contents* of `xa-build-status-vVERSION_OS-OS_ARCH_BRANCH_HASH.zip`
are within a `xa-build-status-vVERSION_OS-OS_ARCH_BRANCH_HASH` path.
This allows these files to be extracted without overwriting previous
extractions.
Similarly, `make package-test-errors` will now create a file named
`xa-test-errors-vVERSION_OS-OS_ARCH_BRANCH_HASH.zip`.
[make-dist]: https://www.gnu.org/prep/standards/html_node/Standard-Targets.htmlmake dist-compatible log packages (#1993)1 parent 90e3155 commit 781f4b2
2 files changed
+92
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
67 | 69 | | |
68 | | - | |
| 70 | + | |
| 71 | + | |
69 | 72 | | |
70 | 73 | | |
71 | 74 | | |
| |||
79 | 82 | | |
80 | 83 | | |
81 | 84 | | |
82 | | - | |
| 85 | + | |
| 86 | + | |
83 | 87 | | |
84 | 88 | | |
85 | 89 | | |
86 | 90 | | |
87 | 91 | | |
88 | 92 | | |
89 | | - | |
| 93 | + | |
| 94 | + | |
90 | 95 | | |
91 | | - | |
| 96 | + | |
92 | 97 | | |
93 | | - | |
| 98 | + | |
94 | 99 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
0 commit comments