Closed Bug 1529185 Opened 5 years ago Closed 4 years ago

Intermittent tier2 testing/mochitest/tests/python/test_get_active_tests.py::test_prefs_validation ERROR

Categories

(Testing :: Mochitest, defect, P3)

Version 3
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1503063

People

(Reporter: rmaries, Unassigned)

Details

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

[task 2019-02-20T05:52:52.024Z] 0:23.12 /builds/worker/checkouts/gecko/testing/mochitest/tests/python/test_get_active_tests.py
[task 2019-02-20T05:52:52.024Z] 0:23.12 ============================= test session starts ==============================
[task 2019-02-20T05:52:52.024Z] 0:23.12 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-02-20T05:52:52.024Z] 0:23.12 rootdir: /builds/worker/checkouts/gecko, inifile: /builds/worker/checkouts/gecko/config/mozunit/mozunit/pytest.ini
[task 2019-02-20T05:52:52.024Z] 0:23.12 collecting ... collected 1 item
[task 2019-02-20T05:52:52.025Z] 0:23.12
[task 2019-02-20T05:52:52.025Z] 0:23.12 testing/mochitest/tests/python/test_get_active_tests.py::test_prefs_validation ERROR
[task 2019-02-20T05:52:52.025Z] 0:23.12
[task 2019-02-20T05:52:52.025Z] 0:23.12 ==================================== ERRORS ====================================
[task 2019-02-20T05:52:52.025Z] 0:23.12 ___________________ ERROR at setup of test_prefs_validation ____________________
[task 2019-02-20T05:52:52.025Z] 0:23.12
[task 2019-02-20T05:52:52.025Z] 0:23.12 request = <SubRequest 'skip_using_mozinfo' for <Function 'test_prefs_validation'>>
[task 2019-02-20T05:52:52.025Z] 0:23.12 setup_test_harness = <function inner at 0x7facbb38eb90>
[task 2019-02-20T05:52:52.026Z] 0:23.12
[task 2019-02-20T05:52:52.026Z] 0:23.12 @pytest.fixture(autouse=True) # noqa: F811
[task 2019-02-20T05:52:52.026Z] 0:23.12 def skip_using_mozinfo(request, setup_test_harness):
[task 2019-02-20T05:52:52.026Z] 0:23.12 """Gives tests the ability to skip based on values from mozinfo.
[task 2019-02-20T05:52:52.026Z] 0:23.12
[task 2019-02-20T05:52:52.026Z] 0:23.12 Example:
[task 2019-02-20T05:52:52.026Z] 0:23.12 @pytest.mark.skip_mozinfo("!e10s || os == 'linux'")
[task 2019-02-20T05:52:52.026Z] 0:23.12 def test_foo():
[task 2019-02-20T05:52:52.026Z] 0:23.12 pass
[task 2019-02-20T05:52:52.026Z] 0:23.12 """
[task 2019-02-20T05:52:52.026Z] 0:23.12
[task 2019-02-20T05:52:52.027Z] 0:23.12 > setup_test_harness(*setup_args)
[task 2019-02-20T05:52:52.027Z] 0:23.12
[task 2019-02-20T05:52:52.027Z] 0:23.12 testing/mochitest/tests/python/conftest.py:102:
[task 2019-02-20T05:52:52.027Z] 0:23.12 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[task 2019-02-20T05:52:52.027Z] 0:23.12
[task 2019-02-20T05:52:52.027Z] 0:23.12 files_dir = '/builds/worker/checkouts/gecko/testing/mochitest/tests/python/files'
[task 2019-02-20T05:52:52.027Z] 0:23.12 args = ('mochitest', 'testing/mochitest'), kwargs = {}
[task 2019-02-20T05:52:52.028Z] 0:23.12 harness_root = '/builds/worker/fetches/tests/mochitest'
[task 2019-02-20T05:52:52.028Z] 0:23.12 test_root = '/builds/worker/fetches/tests/mochitest/tests/selftests'
[task 2019-02-20T05:52:52.028Z] 0:23.12
[task 2019-02-20T05:52:52.028Z] 0:23.12 def inner(files_dir, *args, **kwargs):
[task 2019-02-20T05:52:52.028Z] 0:23.12 harness_root = _get_test_harness(*args, **kwargs)
[task 2019-02-20T05:52:52.028Z] 0:23.12 if harness_root:
[task 2019-02-20T05:52:52.028Z] 0:23.12 sys.path.insert(0, harness_root)
[task 2019-02-20T05:52:52.028Z] 0:23.12
[task 2019-02-20T05:52:52.029Z] 0:23.12 # Link the test files to the test package so updates are automatically
[task 2019-02-20T05:52:52.029Z] 0:23.12 # picked up. Fallback to copy on Windows.
[task 2019-02-20T05:52:52.029Z] 0:23.12 if files_dir:
[task 2019-02-20T05:52:52.029Z] 0:23.12 test_root = os.path.join(harness_root, 'tests', 'selftests')
[task 2019-02-20T05:52:52.029Z] 0:23.12 if not os.path.exists(test_root):
[task 2019-02-20T05:52:52.029Z] 0:23.12 if os.path.lexists(test_root):
[task 2019-02-20T05:52:52.029Z] 0:23.12 os.remove(test_root)
[task 2019-02-20T05:52:52.030Z] 0:23.12
[task 2019-02-20T05:52:52.030Z] 0:23.13 if hasattr(os, 'symlink'):
[task 2019-02-20T05:52:52.030Z] 0:23.13 > os.symlink(files_dir, test_root)
[task 2019-02-20T05:52:52.030Z] 0:23.13 E OSError: [Errno 17] File exists
[task 2019-02-20T05:52:52.030Z] 0:23.13
[task 2019-02-20T05:52:52.030Z] 0:23.13 testing/mozbase/moztest/moztest/selftest/fixtures.py:66: OSError
[task 2019-02-20T05:52:52.030Z] 0:23.13 ------------------------------ Captured log setup ------------------------------
[task 2019-02-20T05:52:52.030Z] 0:23.13 init.py 367 INFO checking for vcs source checkout...
[task 2019-02-20T05:52:52.030Z] 0:23.13 init.py 367 INFO hg
[task 2019-02-20T05:52:52.031Z] 0:23.13 init.py 367 INFO checking for host system type...
[task 2019-02-20T05:52:52.031Z] 0:23.13 init.py 367 INFO x86_64-pc-linux-gnu
[task 2019-02-20T05:52:52.031Z] 0:23.13 init.py 367 INFO checking for target system type...
[task 2019-02-20T05:52:52.031Z] 0:23.13 init.py 367 INFO x86_64-pc-linux-gnu
[task 2019-02-20T05:52:52.031Z] 0:23.13 =========================== 1 error in 0.12 seconds ============================
[task 2019-02-20T05:52:52.031Z] 0:23.13 Setting retcode to 1 from /builds/worker/checkouts/gecko/testing/mochitest/tests/python/test_get_active_tests.py
[task 2019-02-20T05:52:52.420Z] 0:23.52 /builds/worker/checkouts/gecko/testing/mochitest/tests/python/test_build_profile.py

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