Closed Bug 1315657 Opened 8 years ago Closed 8 years ago

Linux webplatform tests are broken on Taskcluster

Categories

(Release Engineering :: Applications: MozharnessCore, defect, P1)

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: wcosta, Assigned: wcosta)

Details

Attachments

(1 file)

Comment on attachment 8808147 [details]
Bug 1315657: Fix web-platform tests for Linux o Taskcluster.

https://reviewboard.mozilla.org/r/91058/#review90792

hijacking
Attachment #8808147 - Flags: review+
Pushed by cbook@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d89783fd81e5
Fix web-platform tests for Linux o Taskcluster. r=rail
Comment on attachment 8808147 [details]
Bug 1315657: Fix web-platform tests for Linux o Taskcluster.

https://reviewboard.mozilla.org/r/91058/#review90798

::: testing/mozharness/mozharness/mozilla/testing/testbase.py:769
(Diff revision 1)
> +                    # docker image for Linux tests on Taskcluster already
> +                    # ship minidump stackwalk. If mozharness finds it, it
> +                    # won't have permission to modify bits. It is harmless,
> +                    # however, because it already has executable permission.
> +                    if e.errno != errno.EPERM:
> +                        raise

Hey Wander,

I think it would be better to check if it is executable, rather than checking the error condition afterwards, and assuming error permission => previously installed *and* exectuable.

The reason for this is, maybe it exists on the environment, the user does not have permission to chmod it, but it is also not executable - then we would not be covered. The assumption that if it exists but we couldn't change the permissions means that it was already executable could be wrong (maybe it exists but isn't executable) - therefore I think it would be better to explicitly check whether it is executable.

It is up to you if you want to chmod proactively before checking, or check whether it is not executable, and then only chmod if needed. The advantage of the first is it probably is atomic, however the second is perhaps cheaper as it doesn't require a filesystem write in the case it is already executable(?). Either way, at the end you want to be sure it is executable, so we should check that.

Thanks Wander!
Attachment #8808147 - Flags: review?(pmoore)
Backed for taskcluster marionette bustage, see bug 1274980 comment 135.
Flags: needinfo?(wcosta)
Closing this because it should be fixed with reworked patches on bug 1274980
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Flags: needinfo?(wcosta)
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: