Closed
Bug 1312518
Opened 8 years ago
Closed 8 years ago
XML header not detected correctly in periodic file update script
Categories
(Release Engineering :: General, defect)
Release Engineering
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: coop, Assigned: coop)
References
Details
Attachments
(1 file)
5.46 KB,
patch
|
u429623
:
review+
|
Details | Diff | Splinter Review |
philor noticed this was broken. At some point the header of the AMO version started including encoding information, and our script fails on that.
Patch incoming.
Assignee | ||
Comment 1•8 years ago
|
||
I checked, and we have xmllint available on the linux spot instances, so we might as well use it to give us more confidence about the state of the downloaded XML artifacts. Broke the check out into its own function should we need to change it in the future.
It's a shell patch, so tagging Hal for review.
Comment on attachment 8804051 [details] [diff] [review]
[tools] Use xmllint to vlid downloaded xml artifacts
Review of attachment 8804051 [details] [diff] [review]:
-----------------------------------------------------------------
lgtm functionally. One minor suggestion, but okay to land without taking.
::: scripts/periodic_file_updates/periodic_file_updates.sh
@@ +388,5 @@
> + if [ ! -e ${XMLLINT} ]; then
> + echo "ERROR: xmllint not found in PATH"
> + exit 60
> + fi
> + ${XMLLINT} --format ${xmlfile} 1>/dev/null
No functional issue, but you might consider replacing '--format' with '--nonet --noout' - the first to preclude any entity-expansion-attack, the 2nd to save cpu cycles.
Attachment #8804051 -
Flags: review?(hwine) → review+
Assignee | ||
Comment 3•8 years ago
|
||
https://hg.mozilla.org/build/tools/rev/92c3837580e05636185f7b7e7f104f8f57cf60f4
Bug 1312518 - Use xmllint to validate downloaded xml artifacts - r=hwine
Assignee | ||
Comment 4•8 years ago
|
||
(In reply to Hal Wine [:hwine] (use NI) from comment #2)
> No functional issue, but you might consider replacing '--format' with
> '--nonet --noout' - the first to preclude any entity-expansion-attack, the
> 2nd to save cpu cycles.
Landed with the above suggestion, thanks!
Comment 5•8 years ago
|
||
"warning: failed to load external entity "blocklist_hg.xml""
Assignee | ||
Comment 6•8 years ago
|
||
https://hg.mozilla.org/build/tools/rev/91da3cc1621029fa08aca4da55c9e0f085804ed2
Bug 1312518 - fix variable substitution error - r=bustage
Assignee | ||
Comment 7•8 years ago
|
||
Success:
http://archive.mozilla.org/pub/firefox/tinderbox-builds/mozilla-central-linux64/mozilla-central-linux64-periodicupdate-bm70-build1-build1.txt.gz
https://treeherder.mozilla.org/#/jobs?repo=mozilla-central&revision=ca5956d3e4de98ec9e1aff413c7a651757b3c300
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Updated•8 years ago
|
Component: Tools → General
You need to log in
before you can comment on or make changes to this bug.
Description
•