Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor git descriptors #913

Open
wants to merge 40 commits into
base: master
Choose a base branch
from

Merge branch 'master' into feature/git_descriptor

608c0c0
Select commit
Loading
Failed to load commit list.
Open

Refactor git descriptors #913

Merge branch 'master' into feature/git_descriptor
608c0c0
Select commit
Loading
Failed to load commit list.
Azure Pipelines / tk-core failed Aug 27, 2024 in 9m 38s

Build #20240827.1 had test failures

Details

Tests

  • Failed: 22 (0.17%)
  • Passed: 12,613 (99.71%)
  • Other: 15 (0.12%)
  • Total: 12,650
Code coverage

  • 15504 of 21290 lines covered (72.82%)

Annotations

Check failure on line 41 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / tk-core

Build log #L41

Bash exited with code '1'.

Check failure on line 1186 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / tk-core

Build log #L1186

2 test(s) failed, 1150 test(s) collected.

Check failure on line 1531 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / tk-core

Build log #L1531

Bash exited with code '1'.

Check failure on line 1177 in Build log

See this annotation in the file changed.

@azure-pipelines 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

See this annotation in the file changed.

@azure-pipelines 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

See this annotation in the file changed.

@azure-pipelines 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

See this annotation in the file changed.

@azure-pipelines 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

See this annotation in the file changed.

@azure-pipelines 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'