Refactor git descriptors #913
Build #20240827.1 had test failures
Details
- Failed: 22 (0.17%)
- Passed: 12,613 (99.71%)
- Other: 15 (0.12%)
- Total: 12,650
- 15504 of 21290 lines covered (72.82%)
Annotations
Check failure on line 41 in Build log
azure-pipelines / tk-core
Build log #L41
Bash exited with code '1'.
Check failure on line 1186 in Build log
azure-pipelines / tk-core
Build log #L1186
2 test(s) failed, 1150 test(s) collected.
Check failure on line 1531 in Build log
azure-pipelines / tk-core
Build log #L1531
Bash exited with code '1'.
Check failure on line 1177 in Build log
azure-pipelines / tk-core
Build log #L1177
2 test(s) failed, 1150 test(s) collected.
Check failure on line 1 in tests/descriptor_tests/test_git.py::TestGitIODescriptor::test_branch
azure-pipelines / tk-core
tests/descriptor_tests/test_git.py::TestGitIODescriptor::test_branch
self = <tests.descriptor_tests.test_git.TestGitIODescriptor testMethod=test_branch>
@skip_if_git_missing
def test_branch(self):
location_dict = {
"type": "git_branch",
"path": self.git_repo_uri,
"branch": "master",
"version": "3e6a681234a02237e8bf35861b6439e7df73e05d",
}
desc = self._create_desc(location_dict)
self.assertEqual(desc.get_path(), None)
desc.ensure_local()
self.assertEqual(
desc.get_path(),
os.path.join(
self.bundle_cache, "gitbranch", "tk-config-default.git", "3e6a681"
),
)
latest_desc = desc.find_latest_version()
> self.assertEqual(
latest_desc.version, "ac71eac21baa8b5d26b44d3deb554110ae879d61"
)
E AssertionError: 'dac945d50d2bd0a828181dc3e1d31cfea2c64065' != 'ac71eac21baa8b5d26b44d3deb554110ae879d61'
E - dac945d50d2bd0a828181dc3e1d31cfea2c64065
E + ac71eac21baa8b5d26b44d3deb554110ae879d61
tests/descriptor_tests/test_git.py:178: AssertionError
Raw output
/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/unittest/case.py:703: AssertionError: 'dac945d50d2bd0a828181dc3e1d31cfea2c64065' != 'ac71eac21baa8b5d26b44d3deb554110ae879d61'
Check failure on line 1 in tests/descriptor_tests/test_git.py::TestGitIODescriptor::test_latest
azure-pipelines / tk-core
tests/descriptor_tests/test_git.py::TestGitIODescriptor::test_latest
self = <tests.descriptor_tests.test_git.TestGitIODescriptor testMethod=test_latest>
@skip_if_git_missing
def test_latest(self):
location_dict = {
"type": "git_branch",
"path": self.git_repo_uri,
"branch": "master",
}
desc = self._create_desc(location_dict, True)
> self.assertEqual(desc.version, "ac71eac21baa8b5d26b44d3deb554110ae879d61")
E AssertionError: 'dac945d50d2bd0a828181dc3e1d31cfea2c64065' != 'ac71eac21baa8b5d26b44d3deb554110ae879d61'
E - dac945d50d2bd0a828181dc3e1d31cfea2c64065
E + ac71eac21baa8b5d26b44d3deb554110ae879d61
tests/descriptor_tests/test_git.py:65: AssertionError
Raw output
/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/unittest/case.py:703: AssertionError: 'dac945d50d2bd0a828181dc3e1d31cfea2c64065' != 'ac71eac21baa8b5d26b44d3deb554110ae879d61'
Check failure on line 1 in tests/descriptor_tests/test_git.py::TestGitIODescriptor::test_branch
azure-pipelines / tk-core
tests/descriptor_tests/test_git.py::TestGitIODescriptor::test_branch
self = <tests.descriptor_tests.test_git.TestGitIODescriptor testMethod=test_branch>
@skip_if_git_missing
def test_branch(self):
location_dict = {
"type": "git_branch",
"path": self.git_repo_uri,
"branch": "master",
"version": "3e6a681234a02237e8bf35861b6439e7df73e05d",
}
desc = self._create_desc(location_dict)
self.assertEqual(desc.get_path(), None)
desc.ensure_local()
self.assertEqual(
desc.get_path(),
os.path.join(
self.bundle_cache, "gitbranch", "tk-config-default.git", "3e6a681"
),
)
latest_desc = desc.find_latest_version()
self.assertEqual(
> latest_desc.version, "ac71eac21baa8b5d26b44d3deb554110ae879d61"
)
E AssertionError: 'dac945d50d2bd0a828181dc3e1d31cfea2c64065' != 'ac71eac21baa8b5d26b44d3deb554110ae879d61'
E - dac945d50d2bd0a828181dc3e1d31cfea2c64065
E + ac71eac21baa8b5d26b44d3deb554110ae879d61
tests/descriptor_tests/test_git.py:179: AssertionError
Raw output
/Users/runner/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/unittest/case.py:693: AssertionError: 'dac945d50d2bd0a828181dc3e1d31cfea2c64065' != 'ac71eac21baa8b5d26b44d3deb554110ae879d61'
Check failure on line 1 in tests/descriptor_tests/test_git.py::TestGitIODescriptor::test_latest
azure-pipelines / tk-core
tests/descriptor_tests/test_git.py::TestGitIODescriptor::test_latest
self = <tests.descriptor_tests.test_git.TestGitIODescriptor testMethod=test_latest>
@skip_if_git_missing
def test_latest(self):
location_dict = {
"type": "git_branch",
"path": self.git_repo_uri,
"branch": "master",
}
desc = self._create_desc(location_dict, True)
> self.assertEqual(desc.version, "ac71eac21baa8b5d26b44d3deb554110ae879d61")
E AssertionError: 'dac945d50d2bd0a828181dc3e1d31cfea2c64065' != 'ac71eac21baa8b5d26b44d3deb554110ae879d61'
E - dac945d50d2bd0a828181dc3e1d31cfea2c64065
E + ac71eac21baa8b5d26b44d3deb554110ae879d61
tests/descriptor_tests/test_git.py:65: AssertionError
Raw output
/Users/runner/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/unittest/case.py:693: AssertionError: 'dac945d50d2bd0a828181dc3e1d31cfea2c64065' != 'ac71eac21baa8b5d26b44d3deb554110ae879d61'