Open Bug 1503063 Opened Last year Updated 2 days ago

Intermittent: OSError: [Errno 17] File exists, testing/mozbase/moztest/moztest/selftest/fixtures.py:66 | Unsuccessful task run with exit code: 1 completed in X seconds

Categories

(Testing :: Mozbase, defect, P5)

Version 3
defect

Tracking

(Not tracked)

People

(Reporter: RaulG, Unassigned)

References

Details

(Keywords: intermittent-failure)

https://treeherder.mozilla.org/logviewer.html#?job_id=208498352&repo=mozilla-central

https://taskcluster-artifacts.net/VnJqFbJyT_ymBuVit-dXgw/0/public/logs/live_backing.log

task 2018-10-29T23:15:53.372Z]  0:44.15 ==================================== ERRORS ====================================
[task 2018-10-29T23:15:53.372Z]  0:44.15 _______________ ERROR at setup of test_common_prefs_are_all_set ________________
[task 2018-10-29T23:15:53.372Z]  0:44.15 
[task 2018-10-29T23:15:53.372Z]  0:44.15 request = <SubRequest 'skip_using_mozinfo' for <Function 'test_common_prefs_are_all_set'>>
[task 2018-10-29T23:15:53.373Z]  0:44.15 setup_test_harness = <function inner at 0x7fbd8a0c5758>
[task 2018-10-29T23:15:53.373Z]  0:44.15 
[task 2018-10-29T23:15:53.373Z]  0:44.15     @pytest.fixture(autouse=True)  # noqa: F811
[task 2018-10-29T23:15:53.373Z]  0:44.15     def skip_using_mozinfo(request, setup_test_harness):
[task 2018-10-29T23:15:53.373Z]  0:44.15         """Gives tests the ability to skip based on values from mozinfo.
[task 2018-10-29T23:15:53.373Z]  0:44.15 
[task 2018-10-29T23:15:53.373Z]  0:44.15         Example:
[task 2018-10-29T23:15:53.374Z]  0:44.15             @pytest.mark.skip_mozinfo("!e10s || os == 'linux'")
[task 2018-10-29T23:15:53.374Z]  0:44.15             def test_foo():
[task 2018-10-29T23:15:53.375Z]  0:44.15                 pass
[task 2018-10-29T23:15:53.375Z]  0:44.15         """
[task 2018-10-29T23:15:53.376Z]  0:44.15 
[task 2018-10-29T23:15:53.376Z]  0:44.15 >       setup_test_harness(*setup_args)
[task 2018-10-29T23:15:53.376Z]  0:44.15 
[task 2018-10-29T23:15:53.376Z]  0:44.15 testing/mochitest/tests/python/conftest.py:102:
[task 2018-10-29T23:15:53.377Z]  0:44.15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[task 2018-10-29T23:15:53.377Z]  0:44.15 
[task 2018-10-29T23:15:53.377Z]  0:44.15 files_dir = '/builds/worker/checkouts/gecko/testing/mochitest/tests/python/files'
[task 2018-10-29T23:15:53.377Z]  0:44.15 args = ('mochitest', 'testing/mochitest'), kwargs = {}
[task 2018-10-29T23:15:53.378Z]  0:44.15 harness_root = '/builds/worker/fetches/tests/mochitest'
[task 2018-10-29T23:15:53.378Z]  0:44.15 test_root = '/builds/worker/fetches/tests/mochitest/tests/selftests'
[task 2018-10-29T23:15:53.378Z]  0:44.15 
[task 2018-10-29T23:15:53.379Z]  0:44.15     def inner(files_dir, *args, **kwargs):
[task 2018-10-29T23:15:53.379Z]  0:44.15         harness_root = _get_test_harness(*args, **kwargs)
[task 2018-10-29T23:15:53.379Z]  0:44.15         if harness_root:
[task 2018-10-29T23:15:53.379Z]  0:44.15             sys.path.insert(0, harness_root)
[task 2018-10-29T23:15:53.379Z]  0:44.15 
[task 2018-10-29T23:15:53.379Z]  0:44.15             # Link the test files to the test package so updates are automatically
[task 2018-10-29T23:15:53.380Z]  0:44.15             # picked up. Fallback to copy on Windows.
[task 2018-10-29T23:15:53.380Z]  0:44.15             if files_dir:
[task 2018-10-29T23:15:53.380Z]  0:44.15                 test_root = os.path.join(harness_root, 'tests', 'selftests')
[task 2018-10-29T23:15:53.380Z]  0:44.15                 if not os.path.exists(test_root):
[task 2018-10-29T23:15:53.380Z]  0:44.15                     if os.path.lexists(test_root):
[task 2018-10-29T23:15:53.380Z]  0:44.15                         os.remove(test_root)
[task 2018-10-29T23:15:53.381Z]  0:44.15 
[task 2018-10-29T23:15:53.381Z]  0:44.15                     if hasattr(os, 'symlink'):
[task 2018-10-29T23:15:53.381Z]  0:44.15 >                       os.symlink(files_dir, test_root)
[task 2018-10-29T23:15:53.381Z]  0:44.15 E                       OSError: [Errno 17] File exists
[task 2018-10-29T23:15:53.381Z]  0:44.15 
[task 2018-10-29T23:15:53.382Z]  0:44.15 testing/mozbase/moztest/moztest/selftest/fixtures.py:66: OSError
[task 2018-10-29T23:15:53.382Z]  0:44.15 =========================== 1 error in 0.09 seconds ============================
[task 2018-10-29T23:15:53.382Z]  0:44.15 Setting retcode to 1 from /builds/worker/checkouts/gecko/testing/mochitest/tests/python/test_build_profile.py
[task 2018-10-29T23:15:53.608Z]  0:44.39 /builds/worker/checkouts/gecko/testing/mochitest/tests/python/test_get_active_tests.py
Priority: -- → P5
Summary: Intermittent: OSError: [Errno 17] File exists, testing/mozbase/moztest/moztest/selftest/fixtures.py:66: OSError → Intermittent: OSError: [Errno 17] File exists, testing/mozbase/moztest/moztest/selftest/fixtures.py:66 | Unsuccessful task run with exit code: 1 completed in X seconds
Duplicate of this bug: 1581736
Duplicate of this bug: 1478050
Duplicate of this bug: 1524269
Duplicate of this bug: 1529185
You need to log in before you can comment on or make changes to this bug.