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

reusable workflow for a single test workflow #11722

Merged
merged 24 commits into from
Jun 3, 2022
Merged

reusable workflow for a single test workflow #11722

merged 24 commits into from
Jun 3, 2022

Conversation

altendky
Copy link
Contributor

@altendky altendky commented Jun 1, 2022

Draft for:

  • Review redundancy between runs configuration and matrix excludes

@altendky
Copy link
Contributor Author

altendky commented Jun 1, 2022

https://github.com/Chia-Network/chia-blockchain/runs/6681164015?check_suite_focus=true

==================================== ERRORS ====================================
____________________ ERROR at setup of test_sync_duplicates ____________________
[gw2] linux -- Python 3.7.13 /home/runner/work/chia-blockchain/chia-blockchain/venv/bin/python
tests/plot_sync/test_plot_sync.py:303: in environment
    await farmer_service.start()
chia/server/start_service.py:163: in start
    await self._server.start_server(self._on_connect_callback)
chia/server/server.py:275: in start_server
    await self.site.start()
venv/lib/python3.7/site-packages/aiohttp/web_runner.py:128: in start
    reuse_port=self._reuse_port,
/opt/hostedtoolcache/Python/3.7.13/x64/lib/python3.7/asyncio/base_events.py:[138](https://github.com/Chia-Network/chia-blockchain/runs/6681164015?check_suite_focus=true#step:16:139)9: in create_server
    % (sa, err.strerror.lower())) from None
E   OSError: [Errno 98] error while attempting to bind on address ('0.0.0.0', 45708): address already in use

https://github.com/Chia-Network/chia-blockchain/runs/6681412035?check_suite_focus=true

================================== FAILURES ===================================
____ TestPoolWalletRpc.test_create_multiple_pool_wallets[trusted_and_fee1] ____
[gw1] win32 -- Python 3.9.13 D:\a\chia-blockchain\chia-blockchain\venv\scripts\python.exe
tests\pools\test_pool_rpc.py:374: in test_create_multiple_pool_wallets
    await time_out_assert(30, wallet_is_synced, True, wallet_node_0, full_node_api)
E   AssertionError: Timed assertion timed out after 30 seconds: expected True, got False

https://github.com/Chia-Network/chia-blockchain/runs/6681411030?check_suite_focus=true

================================== FAILURES ===================================
______ TestFileKeyringSynchronization.test_writer_lock_released_on_abort ______
[gw0] win32 -- Python 3.9.13 D:\a\chia-blockchain\chia-blockchain\venv\scripts\python.exe
tests\util\keyring.py:73: in inner
    return method(self, *args, **kwargs)
tests\core\util\test_file_keyring_synchronization.py:434: in test_writer_lock_released_on_abort
    assert lock.acquire_write_lock(timeout=(2)) is True
E   assert False is True
E    +  where False = <bound method _InterProcessReaderWriterLock.acquire_write_lock of <fasteners.process_lock._WindowsInterProcessReaderWriterLock object at 0x000002351C4C9BB0>>(timeout=2)
E    +    where <bound method _InterProcessReaderWriterLock.acquire_write_lock of <fasteners.process_lock._WindowsInterProcessReaderWriterLock object at 0x000002351C4C9BB0>> = <fasteners.process_lock._WindowsInterProcessReaderWriterLock object at 0x000002351C4C9BB0>.acquire_write_lock

During handling of the above exception, another exception occurred:
tests\util\keyring.py:73: in inner
    return method(self, *args, **kwargs)
tests\util\keyring.py:193: in __exit__
    self.cleanup()
tests\util\keyring.py:205: in cleanup
    shutil.rmtree(self.keychain._temp_dir)
C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\shutil.py:759: in rmtree
    return _rmtree_unsafe(path, onerror)
C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\shutil.py:629: in _rmtree_unsafe
    onerror(os.unlink, fullname, sys.exc_info())
C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\shutil.py:627: in _rmtree_unsafe
    os.unlink(fullname)
E   PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\test_keyring_wrapper0eqgfbqj\\.keyring.yaml.lock'

@altendky
Copy link
Contributor Author

altendky commented Jun 1, 2022

https://github.com/Chia-Network/chia-blockchain/runs/6682244657?check_suite_focus=true

================================== FAILURES ===================================
______ TestFileKeyringSynchronization.test_writer_lock_released_on_abort ______
[gw0] win32 -- Python 3.8.10 d:\a\chia-blockchain\chia-blockchain\venv\scripts\python.exe
tests\util\keyring.py:73: in inner
    return method(self, *args, **kwargs)
tests\core\util\test_file_keyring_synchronization.py:434: in test_writer_lock_released_on_abort
    assert lock.acquire_write_lock(timeout=(2)) is True
E   assert False is True
E    +  where False = <bound method _InterProcessReaderWriterLock.acquire_write_lock of <fasteners.process_lock._WindowsInterProcessReaderWriterLock object at 0x0000020358F0ED00>>(timeout=2)
E    +    where <bound method _InterProcessReaderWriterLock.acquire_write_lock of <fasteners.process_lock._WindowsInterProcessReaderWriterLock object at 0x0000020358F0ED00>> = <fasteners.process_lock._WindowsInterProcessReaderWriterLock object at 0x0000020358F0ED00>.acquire_write_lock

During handling of the above exception, another exception occurred:
tests\util\keyring.py:73: in inner
    return method(self, *args, **kwargs)
tests\util\keyring.py:193: in __exit__
    self.cleanup()
tests\util\keyring.py:205: in cleanup
    shutil.rmtree(self.keychain._temp_dir)
C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\shutil.py:740: in rmtree
    return _rmtree_unsafe(path, onerror)
C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\shutil.py:618: in _rmtree_unsafe
    onerror(os.unlink, fullname, sys.exc_info())
C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\shutil.py:616: in _rmtree_unsafe
    os.unlink(fullname)
E   PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\test_keyring_wrapper7odh2o5v\\.keyring.yaml.lock'

@altendky altendky changed the title reusable workflow for a single test workflow with coverage collection reusable workflow for a single test workflow Jun 1, 2022
@altendky
Copy link
Contributor Author

altendky commented Jun 1, 2022

https://github.com/Chia-Network/chia-blockchain/runs/6691092193?check_suite_focus=true

================================== FAILURES ===================================
___________ TestPoolWalletRpc.test_absorb_pooling[trusted_and_fee1] ___________
[gw0] win32 -- Python 3.9.13 D:\a\chia-blockchain\chia-blockchain\venv\scripts\python.exe
tests\pools\test_pool_rpc.py:757: in test_absorb_pooling
    ret = await client.pw_absorb_rewards(2, fee)
chia\rpc\wallet_rpc_client.py:337: in pw_absorb_rewards
    reply = await self.fetch(
chia\rpc\rpc_client.py:49: in fetch
    raise ValueError(res_json)
E   ValueError: {'error': 'Cannot claim due to unconfirmed transaction. If this is stuck, delete the unconfirmed transaction.', 'success': False}

@altendky altendky marked this pull request as ready for review June 1, 2022 16:08
@altendky altendky requested review from aqk, cmmarslender and emlowe June 1, 2022 16:11
@altendky
Copy link
Contributor Author

altendky commented Jun 1, 2022

https://github.com/Chia-Network/chia-blockchain/runs/6693915522?check_suite_focus=true

=================================== FAILURES ===================================
_________________ TestDIDWallet.test_did_attest_after_recovery _________________
tests/wallet/did_wallet/test_did.py:460: in test_did_attest_after_recovery
    attest_data = (await did_wallet.create_attestment(coin.name(), new_ph, pubkey))[1]
chia/wallet/did_wallet/did_wallet.py:814: in create_attestment
    assert coins is not None and coins != set()
E   AssertionError

@altendky
Copy link
Contributor Author

altendky commented Jun 1, 2022

https://github.com/Chia-Network/chia-blockchain/runs/6693942093?check_suite_focus=true

================================== FAILURES ===================================
_________________ test_nft_wallet_creation_and_transfer[True] _________________
tests\wallet\nft_wallet\test_nft_wallet.py:184: in test_nft_wallet_creation_and_transfer
    assert len(coins) == 1, "nft not generated"
E   AssertionError: nft not generated
E   assert 0 == 1
E    +  where 0 = len([])

@altendky altendky mentioned this pull request Jun 1, 2022
2 tasks
@github-actions github-actions bot added the merge_conflict Branch has conflicts that prevent merge to main label Jun 2, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Jun 2, 2022

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@github-actions
Copy link
Contributor

github-actions bot commented Jun 2, 2022

Conflicts have been resolved. A maintainer will review the pull request shortly.

@github-actions github-actions bot removed the merge_conflict Branch has conflicts that prevent merge to main label Jun 2, 2022
@altendky altendky requested a review from cmmarslender June 2, 2022 19:08
cmmarslender
cmmarslender previously approved these changes Jun 2, 2022
emlowe
emlowe previously approved these changes Jun 2, 2022
wjblanke
wjblanke previously approved these changes Jun 3, 2022
Copy link
Contributor

@wjblanke wjblanke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aok

@altendky altendky dismissed stale reviews from wjblanke, emlowe, and cmmarslender via 45b9c3a June 3, 2022 17:54
@altendky altendky requested review from emlowe and wjblanke June 3, 2022 18:18
@github-actions
Copy link
Contributor

github-actions bot commented Jun 3, 2022

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@github-actions github-actions bot added merge_conflict Branch has conflicts that prevent merge to main and removed merge_conflict Branch has conflicts that prevent merge to main labels Jun 3, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Jun 3, 2022

Conflicts have been resolved. A maintainer will review the pull request shortly.

@github-actions
Copy link
Contributor

github-actions bot commented Jun 3, 2022

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@github-actions github-actions bot added the merge_conflict Branch has conflicts that prevent merge to main label Jun 3, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Jun 3, 2022

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@github-actions
Copy link
Contributor

github-actions bot commented Jun 3, 2022

Conflicts have been resolved. A maintainer will review the pull request shortly.

@github-actions github-actions bot removed the merge_conflict Branch has conflicts that prevent merge to main label Jun 3, 2022
Copy link
Contributor

@emlowe emlowe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems all good to me

@wallentx wallentx merged commit 458697b into main Jun 3, 2022
@wallentx wallentx deleted the emoci branch June 3, 2022 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants