Closed Bug 1603988 Opened 4 years ago Closed 3 years ago

Categories

(Socorro :: Symbols, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bogdan_tara, Assigned: calixte)

References

Details

Attachments

(2 files)

https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=281219990&repo=mozilla-central&lineNumber=158

https://firefoxci.taskcluster-artifacts.net/EeeCYPkVQ029JV67hYePBw/1/public/logs/live_backing.log

[task 2019-12-15T01:05:57.591Z] executing ['bash', '-cx', './mach python toolkit/crashreporter/tools/upload_symbols.py https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/YNhHOTooRCO6mHjSgdRWRw/artifacts/public/build/target.crashreporter-symbols.zip']in /builds/worker/checkouts/gecko
[task 2019-12-15T01:05:57.592Z] + ./mach python toolkit/crashreporter/tools/upload_symbols.py https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/YNhHOTooRCO6mHjSgdRWRw/artifacts/public/build/target.crashreporter-symbols.zip
[task 2019-12-15T01:05:58.367Z] New python executable in /builds/worker/checkouts/gecko/obj-x86_64-pc-linux-gnu/_virtualenvs/init/bin/python2.7
[task 2019-12-15T01:05:58.367Z] Also creating executable in /builds/worker/checkouts/gecko/obj-x86_64-pc-linux-gnu/_virtualenvs/init/bin/python
[task 2019-12-15T01:05:58.367Z] Installing setuptools, pip, wheel...
[task 2019-12-15T01:05:59.590Z] done.
[task 2019-12-15T01:06:00.302Z] running build_ext
[task 2019-12-15T01:06:00.303Z] building 'psutil._psutil_linux' extension
[task 2019-12-15T01:06:00.303Z] creating build
[task 2019-12-15T01:06:00.303Z] creating build/temp.linux-x86_64-2.7
[task 2019-12-15T01:06:00.303Z] creating build/temp.linux-x86_64-2.7/psutil
[task 2019-12-15T01:06:00.303Z] x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_VERSION=563 -DPSUTIL_LINUX=1 -I/usr/include/python2.7 -c psutil/_psutil_common.c -o build/temp.linux-x86_64-2.7/psutil/_psutil_common.o
[task 2019-12-15T01:06:00.303Z] x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_VERSION=563 -DPSUTIL_LINUX=1 -I/usr/include/python2.7 -c psutil/_psutil_posix.c -o build/temp.linux-x86_64-2.7/psutil/_psutil_posix.o
[task 2019-12-15T01:06:00.303Z] x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_VERSION=563 -DPSUTIL_LINUX=1 -I/usr/include/python2.7 -c psutil/_psutil_linux.c -o build/temp.linux-x86_64-2.7/psutil/_psutil_linux.o
[task 2019-12-15T01:06:00.303Z] creating build/lib.linux-x86_64-2.7
[task 2019-12-15T01:06:00.303Z] creating build/lib.linux-x86_64-2.7/psutil
[task 2019-12-15T01:06:00.303Z] x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wl,-Bsymbolic-functions -Wl,-z,relro -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/psutil/_psutil_common.o build/temp.linux-x86_64-2.7/psutil/_psutil_posix.o build/temp.linux-x86_64-2.7/psutil/_psutil_linux.o -o build/lib.linux-x86_64-2.7/psutil/_psutil_linux.so
[task 2019-12-15T01:06:00.303Z] building 'psutil._psutil_posix' extension
[task 2019-12-15T01:06:00.303Z] x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_VERSION=563 -DPSUTIL_LINUX=1 -I/usr/include/python2.7 -c psutil/_psutil_common.c -o build/temp.linux-x86_64-2.7/psutil/_psutil_common.o
[task 2019-12-15T01:06:00.303Z] x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_VERSION=563 -DPSUTIL_LINUX=1 -I/usr/include/python2.7 -c psutil/_psutil_posix.c -o build/temp.linux-x86_64-2.7/psutil/_psutil_posix.o
[task 2019-12-15T01:06:00.303Z] x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wl,-Bsymbolic-functions -Wl,-z,relro -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/psutil/_psutil_common.o build/temp.linux-x86_64-2.7/psutil/_psutil_posix.o -o build/lib.linux-x86_64-2.7/psutil/_psutil_posix.so
[task 2019-12-15T01:06:00.303Z] copying build/lib.linux-x86_64-2.7/psutil/_psutil_linux.so -> psutil
[task 2019-12-15T01:06:00.303Z] copying build/lib.linux-x86_64-2.7/psutil/_psutil_posix.so -> psutil
[task 2019-12-15T01:06:00.303Z]
[task 2019-12-15T01:06:00.303Z] Error processing command. Ignoring because optional. (optional:packages.txt:comm/build/virtualenv_packages.txt)
[task 2019-12-15T01:06:00.635Z] INFO:upload-symbols:Using symbol upload token from the secrets service: "http://taskcluster/secrets/v1/secret/project/releng/gecko/build/level-3/gecko-symbol-upload"
[task 2019-12-15T01:06:00.731Z] INFO:upload-symbols:Uploading symbol file "https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/YNhHOTooRCO6mHjSgdRWRw/artifacts/public/build/target.crashreporter-symbols.zip" to "https://symbols.mozilla.org/upload/"
[task 2019-12-15T01:06:00.731Z] INFO:upload-symbols:Attempt 1 of 5...
[task 2019-12-15T01:06:01.294Z] ERROR:upload-symbols:Error: got HTTP response 400: Bad Request
[task 2019-12-15T01:06:01.380Z] ERROR:upload-symbols:Response body:
[task 2019-12-15T01:06:01.380Z] ====================
[task 2019-12-15T01:06:01.380Z] {"error": "https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/YNhHOTooRCO6mHjSgdRWRw/artifacts/public/build/target.crashreporter-symbols.zip can't be found (404)"}
[task 2019-12-15T01:06:01.380Z] ====================
[task 2019-12-15T01:06:01.380Z]
[taskcluster 2019-12-15 01:06:01.750Z] === Task Finished ===
[taskcluster 2019-12-15 01:06:01.751Z] Unsuccessful task run with exit code: 1 completed in 112.998 seconds

Tom, could you, please, take a look?

Flags: needinfo?(mozilla)

The failure was happening because the system-symbols task failed (due to disk full) silently, thus there being no zip file to upload. I suspect this may also be an issue if there are no new symboles to upload.

Component: Task Configuration → Symbols
Flags: needinfo?(mozilla) → needinfo?(mcastelluccio)
Product: Firefox Build System → Socorro

This was caused by the migration of the OS symbols task from bug 1596775. The job was previously not failing when there were no symbols to upload (https://github.com/marco-c/breakpad-mac-update-symbols/blob/21221733edfbcac49d40e50fc219fab7d17437a0/upload.sh#L10-L12).

Blocks: 1596775

So we need to do two things:

  1. Increase the disk space available for the symbol fetching tasks (and make them fail loudly when the disk space is exhausted);
  2. Don't fail in the upload task if there are no symbols to upload.
Type: task → defect
Flags: needinfo?(mcastelluccio)
Priority: -- → P1
Summary: Perma Tier 2 bustage on symbols opt "error": "https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/YNhHOTooRCO6mHjSgdRWRw/artifacts/public/build/target.crashreporter-symbols.zip can't be found (404) → Intermittent [tier 2] bustage on symbols opt "error": "https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/YNhHOTooRCO6mHjSgdRWRw/artifacts/public/build/target.crashreporter-symbols.zip can't be found (404)
Summary: Intermittent [tier 2] bustage on symbols opt "error": "https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/YNhHOTooRCO6mHjSgdRWRw/artifacts/public/build/target.crashreporter-symbols.zip can't be found (404) → Perma [tier 2] bustage on symbols opt "error": "https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/YNhHOTooRCO6mHjSgdRWRw/artifacts/public/build/target.crashreporter-symbols.zip can't be found (404)
Assignee: nobody → cdenizet

The "No space left on device" error is a bit strange. The worker types we were using in the previous hook, which was not failing, had VolumeSize: 100, the new ones have VolumeSize: 120.

Currently, when task system-symbols-mac doesn't produce artifacts because of no data or failure, then the task system-symbols-mac-upload-symbols is failing too.
So this patch aims to not fail the task in such a case.

Regarding the disk space issue, we'll need to create a new worker type for these tasks with larger disks. We can also use smaller instance types, 4xlarge are larger than what we need.

We should also bring back the cache of processed artifacts that was dropped as part of the migration, to make the Mac task finish earlier.

(In reply to Marco Castelluccio [:marco] from comment #15)

We should also bring back the cache of processed artifacts that was dropped as part of the migration, to make the Mac task finish earlier.

I've filed bug 1609130 for this.

Pushed by cdenizet@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/2c381bb89f53
Avoid to fail system-symbols-mac-upload-symbols when no symbols to upload r=marco
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED

Only half of it has been fixed.

Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Depends on: 1609357
Backout by csabou@mozilla.com:
https://hg.mozilla.org/mozilla-central/rev/96793d65cdd5
Backed out changeset 2c381bb89f53 for causing symbols build bustages. a=backout
Attachment #9120723 - Attachment description: Bug 1603988 - Avoid to fail system-symbols-mac-upload-symbols when no symbols to upload → Bug 1603988 - Part 1: Avoid to fail system-symbols-mac-upload-symbols when no symbols to upload

To avoid to process again and again the same packages, we can use a cache.
So this patch add a TC index for the artifacts generated in a run and then we can reuse it in the next run.

I made a try to use the cache generated in a previous run:
https://treeherder.mozilla.org/#/jobs?repo=try&selectedJob=286152719&revision=8bdb489826ff185b1710f9dfc08d7e090cb3fab9
Everything is green and the task took only few minutes instead of 3 hours !

(In reply to Calixte Denizet (:calixte) from comment #25)

Created attachment 9122657 [details]
Bug 1603988 - Part 2: Add a TC index for generated artifacts for mac symbols and reuse them in the next run

To avoid to process again and again the same packages, we can use a cache.
So this patch add a TC index for the artifacts generated in a run and then we can reuse it in the next run.

This patch is going to fix bug 1609130.

See Also: → 1609130
Pushed by cdenizet@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/84ed6a978242
Part 1: Avoid to fail system-symbols-mac-upload-symbols when no symbols to upload r=marco,gsvelto
Pushed by cdenizet@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1091ce1d58ec
Part 2: Add a TC index for generated artifacts for mac symbols and reuse them in the next run r=tomprince

The bug won't be fully fixed until we switch to a new worker type with a larger disk.

Keywords: leave-open

Is this still an issue?

Flags: needinfo?(cdenizet)

:apavel, thank you.
If the issue appears again we could then change the worker.

Flags: needinfo?(cdenizet)
Keywords: leave-open
Status: REOPENED → RESOLVED
Closed: 4 years ago3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: