Closed
Bug 1259423
Opened 9 years ago
Closed 9 years ago
freshclam fails to update the DB
Categories
(Release Engineering :: Release Automation, defect)
Release Engineering
Release Automation
Tracking
(firefox48 fixed)
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
firefox48 | --- | fixed |
People
(Reporter: rail, Assigned: kmoir)
References
Details
Attachments
(2 files)
4.26 KB,
patch
|
rail
:
review+
kmoir
:
checked-in+
|
Details | Diff | Splinter Review |
37.80 KB,
patch
|
Details | Diff | Splinter Review |
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → kmoir
Assignee | ||
Comment 1•9 years ago
|
||
I pulled down the image locally and was able to run the command to update the db. Perhaps a intermittent network issue? Or we can't connect to this db address from the container when it runs in the build.
Reporter | ||
Comment 2•9 years ago
|
||
Yeah, it's intermittent. Probably related to the load on the clamav mirrors.
Some ideas:
1) we can regenerate the images regularly
* pros: no need to run freshclam
* cons: need to use ":latest" in the tasks or use some service to tell the last good sha256; need to schedule this
2) don't fail if freshclam fails. Probably the easiest way to go. Failures are not frequent, so it won't probably hurt.
Reporter | ||
Comment 3•9 years ago
|
||
We can probably refresh the images as a separate task and publish the images as artifacts, but I'm not sure how to use them
Assignee | ||
Comment 4•9 years ago
|
||
Yeah, I looked at how to run a commmand in docker (freshclam) and not fail starting the image if it failed but didn't find a way to do that.
Reporter | ||
Comment 5•9 years ago
|
||
another idea:
1) create a task to generate an image and use dockerSave feature (see http://docs.taskcluster.net/workers/docker-worker/)
2) reference the image as in https://dxr.mozilla.org/mozilla-central/source/testing/taskcluster/tasks/tests/eslint-gecko.yml#11-14. Not sure if the dependencies are tracked automatically
Reporter | ||
Comment 6•9 years ago
|
||
https://gist.github.com/rail/fae3cf4b1eccee3d8ecd may be something that would address the "don't fail if freshclam fails". I haven't tested it though.
Assignee | ||
Comment 7•9 years ago
|
||
I tested it and it works
Attachment #8735490 -
Flags: review?(rail)
Reporter | ||
Comment 8•9 years ago
|
||
Comment on attachment 8735490 [details] [diff] [review]
bug1259423.patch
I think we also need to update all beetmover calls in releasetasks and add "--refresh-antivirus". Would be great to have add a test to catch beetmover tasks without "--refresh-antivirus" passed
Attachment #8735490 -
Flags: review?(rail) → review+
Assignee | ||
Comment 9•9 years ago
|
||
We don't need to update the beetmover calls in releasetasks. When I tested it, I just used an existing taskid and the same call to mh (with a bogus bucket/credentials). Beetmover is just called like this via releasetasks:
python scripts/release/beet_mover.py --template configs/beetmover/source.yml.tmpl --platform linux64 --version {{ version }} --locale en-US --taskid {{ stableSlugId(buildername) }} --build-num build{{ buildNumber }} --bucket {{ beetmover_candidates_bucket }}
The specific mh actions aren't referenced in the call.
Assignee | ||
Updated•9 years ago
|
Attachment #8735490 -
Flags: checked-in+
Comment 10•9 years ago
|
||
Assignee | ||
Comment 11•9 years ago
|
||
We need a new image for rail/funsize-update-generator too but perhaps this should be part of bug 1259425
Reporter | ||
Comment 12•9 years ago
|
||
(In reply to Pulsebot from comment #10)
> https://hg.mozilla.org/integration/mozilla-inbound/rev/2f84b90500fe
Can you uplift this patch also to aurora, beta, and esr45?
(In reply to Kim Moir [:kmoir] from comment #11)
> We need a new image for rail/funsize-update-generator too but perhaps this
> should be part of bug 1259425
We can tackle that separately. Updated the image:
Digest: sha256:d1c88af7f13d124e08a37d10203e9e60655a231301123e5f2127fab5468ef5dd
Comment 13•9 years ago
|
||
bugherder |
Reporter | ||
Comment 14•9 years ago
|
||
keeping open to address the remaining issues.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 15•9 years ago
|
||
other changes were needed to be added for beta and esr45 since funsize files were missing there.
I landed the relevant changes on m-a and m-b but m-esr45 is closed now so will try again later
Assignee | ||
Comment 16•9 years ago
|
||
merged this pull request and landed changes on mozilla-esr45 too now that it is open
Status: REOPENED → RESOLVED
Closed: 9 years ago → 9 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•