Closed Bug 1524269 Opened 5 years ago Closed 5 years ago

testing/mochitest/tests/python/conftest.py:102: OSError: [Errno 17] File exists | Unsuccessful task run with exit code: 1 completed in 754.633 seconds

Categories

(Testing :: Mochitest, defect, P3)

Version 3
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1503063

People

(Reporter: rmaries, Unassigned)

Details

[Tracking Requested - why for this release]:

https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&resultStatus=success%2Cpending%2Crunning%2Ctestfailed%2Cbusted%2Cexception&classifiedState=unclassified&searchStr=linux%2Cx64%2Casan%2Copt%2Cpython%2C2%2Cunit%2Ctests%2Csource-test-python-mochitest-harness-linux64-asan%2Fopt%2Cpy2%28mch%29&revision=bff6b288fe3ed9ce41dd8c0c8e3b87349ae7c0a3&selectedJob=225149221

https://treeherder.mozilla.org/logviewer.html#?job_id=225149221&repo=mozilla-inbound&lineNumber=489

[task 2019-01-31T05:26:46.814Z] 0:23.98 ==================================== ERRORS ====================================
[task 2019-01-31T05:26:46.814Z] 0:23.98 ___________________ ERROR at setup of test_prefs_validation ____________________
[task 2019-01-31T05:26:46.814Z] 0:23.98
[task 2019-01-31T05:26:46.814Z] 0:23.98 request = <SubRequest 'skip_using_mozinfo' for <Function 'test_prefs_validation'>>
[task 2019-01-31T05:26:46.815Z] 0:23.98 setup_test_harness = <function inner at 0x7f58c9322cf8>
[task 2019-01-31T05:26:46.815Z] 0:23.98
[task 2019-01-31T05:26:46.815Z] 0:23.98 @pytest.fixture(autouse=True) # noqa: F811
[task 2019-01-31T05:26:46.816Z] 0:23.98 def skip_using_mozinfo(request, setup_test_harness):
[task 2019-01-31T05:26:46.816Z] 0:23.98 """Gives tests the ability to skip based on values from mozinfo.
[task 2019-01-31T05:26:46.816Z] 0:23.98
[task 2019-01-31T05:26:46.817Z] 0:23.98 Example:
[task 2019-01-31T05:26:46.817Z] 0:23.98 @pytest.mark.skip_mozinfo("!e10s || os == 'linux'")
[task 2019-01-31T05:26:46.817Z] 0:23.98 def test_foo():
[task 2019-01-31T05:26:46.817Z] 0:23.98 pass
[task 2019-01-31T05:26:46.817Z] 0:23.98 """
[task 2019-01-31T05:26:46.818Z] 0:23.98
[task 2019-01-31T05:26:46.818Z] 0:23.98 > setup_test_harness(*setup_args)
[task 2019-01-31T05:26:46.818Z] 0:23.98
[task 2019-01-31T05:26:46.818Z] 0:23.98 testing/mochitest/tests/python/conftest.py:102:
[task 2019-01-31T05:26:46.819Z] 0:23.98 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[task 2019-01-31T05:26:46.819Z] 0:23.98
[task 2019-01-31T05:26:46.819Z] 0:23.98 files_dir = '/builds/worker/checkouts/gecko/testing/mochitest/tests/python/files'
[task 2019-01-31T05:26:46.819Z] 0:23.98 args = ('mochitest', 'testing/mochitest'), kwargs = {}
[task 2019-01-31T05:26:46.819Z] 0:23.98 harness_root = '/builds/worker/fetches/tests/mochitest'
[task 2019-01-31T05:26:46.819Z] 0:23.98 test_root = '/builds/worker/fetches/tests/mochitest/tests/selftests'
[task 2019-01-31T05:26:46.819Z] 0:23.98
[task 2019-01-31T05:26:46.819Z] 0:23.98 def inner(files_dir, *args, **kwargs):
[task 2019-01-31T05:26:46.819Z] 0:23.98 harness_root = _get_test_harness(*args, **kwargs)
[task 2019-01-31T05:26:46.819Z] 0:23.98 if harness_root:
[task 2019-01-31T05:26:46.819Z] 0:23.98 sys.path.insert(0, harness_root)
[task 2019-01-31T05:26:46.819Z] 0:23.98
[task 2019-01-31T05:26:46.819Z] 0:23.99 # Link the test files to the test package so updates are automatically
[task 2019-01-31T05:26:46.820Z] 0:23.99 # picked up. Fallback to copy on Windows.
[task 2019-01-31T05:26:46.820Z] 0:23.99 if files_dir:
[task 2019-01-31T05:26:46.820Z] 0:23.99 test_root = os.path.join(harness_root, 'tests', 'selftests')
[task 2019-01-31T05:26:46.820Z] 0:23.99 if not os.path.exists(test_root):
[task 2019-01-31T05:26:46.820Z] 0:23.99 if os.path.lexists(test_root):
[task 2019-01-31T05:26:46.820Z] 0:23.99 os.remove(test_root)
[task 2019-01-31T05:26:46.820Z] 0:23.99
[task 2019-01-31T05:26:46.820Z] 0:23.99 if hasattr(os, 'symlink'):
[task 2019-01-31T05:26:46.820Z] 0:23.99 > os.symlink(files_dir, test_root)
[task 2019-01-31T05:26:46.820Z] 0:23.99 E OSError: [Errno 17] File exists
[task 2019-01-31T05:26:46.820Z] 0:23.99
[task 2019-01-31T05:26:46.820Z] 0:23.99 testing/mozbase/moztest/moztest/selftest/fixtures.py:66: OSError
[task 2019-01-31T05:26:46.820Z] 0:23.99 ------------------------------ Captured log setup ------------------------------
[task 2019-01-31T05:26:46.820Z] 0:23.99 init.py 367 INFO checking for vcs source checkout...
[task 2019-01-31T05:26:46.820Z] 0:23.99 init.py 367 INFO hg
[task 2019-01-31T05:26:46.820Z] 0:23.99 init.py 367 INFO checking for host system type...
[task 2019-01-31T05:26:46.820Z] 0:23.99 init.py 367 INFO x86_64-pc-linux-gnu
[task 2019-01-31T05:26:46.820Z] 0:23.99 init.py 367 INFO checking for target system type...
[task 2019-01-31T05:26:46.820Z] 0:23.99 init.py 367 INFO x86_64-pc-linux-gnu
[task 2019-01-31T05:26:46.821Z] 0:23.99 =========================== 1 error in 0.13 seconds ============================
[task 2019-01-31T05:26:46.821Z] 0:23.99 Setting retcode to 1 from /builds/worker/checkouts/gecko/testing/mochitest/tests/python/test_get_active_tests.py
[task 2019-01-31T05:26:47.156Z] 0:24.33 /builds/worker/checkouts/gecko/testing/mochitest/tests/python/test_build_profile.py
[task 2019-01-31T05:26:47.156Z] 0:24.33 ============================= test session starts ==============================
[task 2019-01-31T05:26:47.156Z] 0:24.33 platform linux2 -- Python 2.7.12, pytest-3.6.2, py-1.5.4, pluggy-0.6.0 -- /builds/worker/checkouts/gecko/obj-x86_64-pc-linux-gnu/_virtualenvs/gecko-QUm8IANb-2/bin/python
[task 2019-01-31T05:26:47.156Z] 0:24.33 rootdir: /builds/worker/checkouts/gecko, inifile: /builds/worker/checkouts/gecko/config/mozunit/mozunit/pytest.ini
[task 2019-01-31T05:26:47.157Z] 0:24.33 collecting ... collected 1 item
[task 2019-01-31T05:26:47.157Z] 0:24.33
[task 2019-01-31T05:26:47.157Z] 0:24.33 testing/mochitest/tests/python/test_build_profile.py::test_common_prefs_are_all_set PASSED
[task 2019-01-31T05:26:47.157Z] 0:24.33
[task 2019-01-31T05:26:47.157Z] 0:24.33 =========================== 1 passed in 0.49 seconds ===========================
[task 2019-01-31T05:27:32.789Z] 1:09.96 /builds/worker/checkouts/gecko/testing/mochitest/tests/python/test_basic_mochitest_plain.py
[task 2019-01-31T05:27:32.790Z] 1:09.96 ============================= test session starts ==============================
[task 2019-01-31T05:27:32.790Z] 1:09.96 platform linux2 -- Python 2.7.12, pytest-3.6.2, py-1.5.4, pluggy-0.6.0 -- /builds/worker/checkouts/gecko/obj-x86_64-pc-linux-gnu/_virtualenvs/gecko-QUm8IANb-2/bin/python
[task 2019-01-31T05:27:32.790Z] 1:09.96 rootdir: /builds/worker/checkouts/gecko, inifile: /builds/worker/checkouts/gecko/config/mozunit/mozunit/pytest.ini
[task 2019-01-31T05:27:32.790Z] 1:09.96 collecting ... collected 6 items
[task 2019-01-31T05:27:32.790Z] 1:09.96
[task 2019-01-31T05:27:32.790Z] 1:09.96 testing/mochitest/tests/python/test_basic_mochitest_plain.py::test_output_pass PASSED
[task 2019-01-31T05:27:32.790Z] 1:09.96 testing/mochitest/tests/python/test_basic_mochitest_plain.py::test_output_fail PASSED
[task 2019-01-31T05:27:32.790Z] 1:09.96 testing/mochitest/tests/python/test_basic_mochitest_plain.py::test_output_crash SKIPPED
[task 2019-01-31T05:27:32.791Z] 1:09.96 testing/mochitest/tests/python/test_basic_mochitest_plain.py::test_output_asan PASSED
[task 2019-01-31T05:27:32.791Z] 1:09.96 testing/mochitest/tests/python/test_basic_mochitest_plain.py::test_output_assertion SKIPPED
[task 2019-01-31T05:27:32.791Z] 1:09.96 testing/mochitest/tests/python/test_basic_mochitest_plain.py::test_output_leak SKIPPED
[task 2019-01-31T05:27:32.791Z] 1:09.96
[task 2019-01-31T05:27:32.792Z] 1:09.96 ===================== 3 passed, 3 skipped in 44.96 seconds =====================
[task 2019-01-31T05:27:32.792Z] 1:09.96 Return code from mach python-test: 1
[fetches 2019-01-31T05:27:32.927Z] removing /builds/worker/fetches
[fetches 2019-01-31T05:27:36.239Z] finished
[taskcluster 2019-01-31 05:27:36.743Z] === Task Finished ===
[taskcluster 2019-01-31 05:27:36.744Z] Unsuccessful task run with exit code: 1 completed in 754.633 seconds

Priority: -- → P3
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.