text:
awscli2 build fails on nixpkgs-unstable on Darwin

Describe the bug
awscli2 build fails on Darwin during test phase.
Steps To Reproduce

nix-build -A awscli2

Expected behavior
It builds.
Additional context

Test failures
======================================================================
FAIL: test_download_sync_using_crt_client (tests.functional.s3.test_sync_command.TestSyncWithCRTClient)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/tests/functional/s3/test_sync_command.py", line 407, in test_download_sync_using_crt_client
    self.run_command(cmdline)
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/tests/functional/s3/__init__.py", line 374, in run_command
    result = self.cli_runner.run(cmdline)
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/tests/__init__.py", line 46, in run
    runner_result = self._do_run(cmdline)
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/tests/__init__.py", line 77, in _do_run
    self._session_stubber.assert_no_remaining_responses()
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/tests/__init__.py", line 107, in assert_no_remaining_responses
    raise AssertionError(
AssertionError: The following queued responses are remaining: deque([<tests.HTTPResponse object at 0x199d7be80>])
-------------------- >> begin captured logging << --------------------
awscli.plugin: DEBUG: Importing plugin __builtin__: awscli.handlers
awscli.plugin: DEBUG: Initializing plugin __builtin__: <module 'awscli.handlers' from '/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/awscli/handlers.py'>
awscli.plugin: DEBUG: cli_legacy_plugin_path not defined in plugin section. Not importing additional plugins.
botocore.hooks: DEBUG: Event building-command-table.main: calling handler <function add_s3 at 0x10d5abca0>
botocore.hooks: DEBUG: Event building-command-table.main: calling handler <function add_ddb at 0x10e0e78b0>
botocore.hooks: DEBUG: Event building-command-table.main: calling handler <bound method BasicCommand.add_command of <class 'awscli.customizations.configure.configure.ConfigureCommand'>>
botocore.hooks: DEBUG: Event building-command-table.main: calling handler <function change_name at 0x10e0e7280>
botocore.hooks: DEBUG: Event building-command-table.main: calling handler <function change_name at 0x10e0e7670>
botocore.hooks: DEBUG: Event building-command-table.main: calling handler <function alias_opsworks_cm at 0x10e142f70>
botocore.hooks: DEBUG: Event building-command-table.main: calling handler <function add_history_commands at 0x10d43ca60>
botocore.hooks: DEBUG: Event building-command-table.main: calling handler <bound method BasicCommand.add_command of <class 'awscli.customizations.devcommands.CLIDevCommand'>>
botocore.hooks: DEBUG: Event building-command-table.main: calling handler <function add_waiters at 0x10d8f3ca0>
botocore.loaders: DEBUG: Loading JSON file: /private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/awscli/data/cli.json
botocore.hooks: DEBUG: Event top-level-args-parsed: calling handler <function resolve_types at 0x10d844ca0>
botocore.hooks: DEBUG: Event top-level-args-parsed: calling handler <function no_sign_request at 0x10d844ee0>
botocore.hooks: DEBUG: Event top-level-args-parsed: calling handler <function resolve_verify_ssl at 0x10d844e50>
botocore.hooks: DEBUG: Event top-level-args-parsed: calling handler <function resolve_cli_read_timeout at 0x10d893040>
botocore.hooks: DEBUG: Event top-level-args-parsed: calling handler <function resolve_cli_connect_timeout at 0x10d844f70>
botocore.hooks: DEBUG: Event top-level-args-parsed: calling handler <built-in method update of dict object at 0x199d9b040>
botocore.hooks: DEBUG: Event session-initialized: calling handler <function add_timestamp_parser at 0x10d8c6550>
botocore.hooks: DEBUG: Event session-initialized: calling handler <function register_uri_param_handler at 0x10d7e5160>
botocore.hooks: DEBUG: Event session-initialized: calling handler <function add_binary_formatter at 0x10d7c5c10>
botocore.hooks: DEBUG: Event session-initialized: calling handler <function no_pager_handler at 0x10ca94af0>
botocore.hooks: DEBUG: Event session-initialized: calling handler <function inject_assume_role_provider_cache at 0x10d0d0ca0>
botocore.utils: DEBUG: IMDS ENDPOINT: http://169.254.169.254/
botocore.hooks: DEBUG: Event session-initialized: calling handler <function attach_history_handler at 0x10d43c940>
botocore.hooks: DEBUG: Event session-initialized: calling handler <function inject_json_file_cache at 0x10d0d1700>
botocore.hooks: DEBUG: Event building-command-table.s3: calling handler <function add_waiters at 0x10d8f3ca0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.s3.anonymous: calling handler <awscli.paramfile.URIArgumentHandler object at 0x199dcefd0>
botocore.hooks: DEBUG: Event building-command-table.s3_sync: calling handler <function register_sync_strategies at 0x10d4cbd30>
botocore.hooks: DEBUG: Event building-command-table.s3_sync: calling handler <function add_waiters at 0x10d8f3ca0>
botocore.hooks: DEBUG: Event building-arg-table.s3_sync: calling handler <bound method BaseSync.add_sync_argument of <awscli.customizations.s3.syncstrategy.sizeonly.SizeOnlySync object at 0x199dc9dc0>>
botocore.hooks: DEBUG: Event building-arg-table.s3_sync: calling handler <bound method BaseSync.add_sync_argument of <awscli.customizations.s3.syncstrategy.exacttimestamps.ExactTimestampsSync object at 0x199dc9c10>>
botocore.hooks: DEBUG: Event building-arg-table.s3_sync: calling handler <bound method BaseSync.add_sync_argument of <awscli.customizations.s3.syncstrategy.delete.DeleteSync object at 0x199dc9c40>>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.paths: calling handler <awscli.paramfile.URIArgumentHandler object at 0x199dcefd0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.dryrun: calling handler <awscli.paramfile.URIArgumentHandler object at 0x199dcefd0>
botocore.hooks: DEBUG: Event process-cli-arg.custom.sync: calling handler <awscli.argprocess.ParamShorthandParser object at 0x199d4adf0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.quiet: calling handler <awscli.paramfile.URIArgumentHandler object at 0x199dcefd0>
botocore.hooks: DEBUG: Event process-cli-arg.custom.sync: calling handler <awscli.argprocess.ParamShorthandParser object at 0x199d4adf0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.anonymous: calling handler <awscli.paramfile.URIArgumentHandler object at 0x199dcefd0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.acl: calling handler <awscli.paramfile.URIArgumentHandler object at 0x199dcefd0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.follow-symlinks: calling handler <awscli.paramfile.URIArgumentHandler object at 0x199dcefd0>
botocore.hooks: DEBUG: Event process-cli-arg.custom.sync: calling handler <awscli.argprocess.ParamShorthandParser object at 0x199d4adf0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.anonymous: calling handler <awscli.paramfile.URIArgumentHandler object at 0x199dcefd0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.sse: calling handler <awscli.paramfile.URIArgumentHandler object at 0x199dcefd0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.sse-c: calling handler <awscli.paramfile.URIArgumentHandler object at 0x199dcefd0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.sse-c-key: calling handler <awscli.paramfile.URIArgumentHandler object at 0x199dcefd0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.sse-kms-key-id: calling handler <awscli.paramfile.URIArgumentHandler object at 0x199dcefd0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.sse-c-copy-source: calling handler <awscli.paramfile.URIArgumentHandler object at 0x199dcefd0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.sse-c-copy-source-key: calling handler <awscli.paramfile.URIArgumentHandler object at 0x199dcefd0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.storage-class: calling handler <awscli.paramfile.URIArgumentHandler object at 0x199dcefd0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.grants: calling handler <awscli.paramfile.URIArgumentHandler object at 0x199dcefd0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.website-redirect: calling handler <awscli.paramfile.URIArgumentHandler object at 0x199dcefd0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.content-type: calling handler <awscli.paramfile.URIArgumentHandler object at 0x199dcefd0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.cache-control: calling handler <awscli.paramfile.URIArgumentHandler object at 0x199dcefd0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.content-disposition: calling handler <awscli.paramfile.URIArgumentHandler object at 0x199dcefd0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.content-encoding: calling handler <awscli.paramfile.URIArgumentHandler object at 0x199dcefd0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.content-language: calling handler <awscli.paramfile.URIArgumentHandler object at 0x199dcefd0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.expires: calling handler <awscli.paramfile.URIArgumentHandler object at 0x199dcefd0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.source-region: calling handler <awscli.paramfile.URIArgumentHandler object at 0x199dcefd0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.only-show-errors: calling handler <awscli.paramfile.URIArgumentHandler object at 0x199dcefd0>
botocore.hooks: DEBUG: Event process-cli-arg.custom.sync: calling handler <awscli.argprocess.ParamShorthandParser object at 0x199d4adf0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.anonymous: calling handler <awscli.paramfile.URIArgumentHandler object at 0x199dcefd0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.page-size: calling handler <awscli.paramfile.URIArgumentHandler object at 0x199dcefd0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.ignore-glacier-warnings: calling handler <awscli.paramfile.URIArgumentHandler object at 0x199dcefd0>
botocore.hooks: DEBUG: Event process-cli-arg.custom.sync: calling handler <awscli.argprocess.ParamShorthandParser object at 0x199d4adf0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.force-glacier-transfer: calling handler <awscli.paramfile.URIArgumentHandler object at 0x199dcefd0>
botocore.hooks: DEBUG: Event process-cli-arg.custom.sync: calling handler <awscli.argprocess.ParamShorthandParser object at 0x199d4adf0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.request-payer: calling handler <awscli.paramfile.URIArgumentHandler object at 0x199dcefd0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.metadata: calling handler <awscli.paramfile.URIArgumentHandler object at 0x199dcefd0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.copy-props: calling handler <awscli.paramfile.URIArgumentHandler object at 0x199dcefd0>
botocore.hooks: DEBUG: Event process-cli-arg.custom.sync: calling handler <awscli.argprocess.ParamShorthandParser object at 0x199d4adf0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.metadata-directive: calling handler <awscli.paramfile.URIArgumentHandler object at 0x199dcefd0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.size-only: calling handler <awscli.paramfile.URIArgumentHandler object at 0x199dcefd0>
botocore.hooks: DEBUG: Event process-cli-arg.custom.sync: calling handler <awscli.argprocess.ParamShorthandParser object at 0x199d4adf0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.exact-timestamps: calling handler <awscli.paramfile.URIArgumentHandler object at 0x199dcefd0>
botocore.hooks: DEBUG: Event process-cli-arg.custom.sync: calling handler <awscli.argprocess.ParamShorthandParser object at 0x199d4adf0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.delete: calling handler <awscli.paramfile.URIArgumentHandler object at 0x199dcefd0>
botocore.hooks: DEBUG: Event process-cli-arg.custom.sync: calling handler <awscli.argprocess.ParamShorthandParser object at 0x199d4adf0>
botocore.credentials: DEBUG: Looking for credentials via: env
botocore.credentials: INFO: Found credentials in environment variables.
botocore.loaders: DEBUG: Loading JSON file: /nix/store/gxz7gris0qnwswg21y4q05zms79b98zr-python3.9-botocore-2.0.0dev138/lib/python3.9/site-packages/botocore/data/endpoints.json
botocore.hooks: DEBUG: Event choose-service-name: calling handler <function handle_service_name_alias at 0x10c1c1040>
botocore.loaders: DEBUG: Loading JSON file: /nix/store/gxz7gris0qnwswg21y4q05zms79b98zr-python3.9-botocore-2.0.0dev138/lib/python3.9/site-packages/botocore/data/s3/2006-03-01/service-2.json
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function add_generate_presigned_post at 0x10c15f550>
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function add_generate_presigned_url at 0x10c15f310>
botocore.endpoint: DEBUG: Setting s3 timeout as (60, 60)
botocore.hooks: DEBUG: Event choose-service-name: calling handler <function handle_service_name_alias at 0x10c1c1040>
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function add_generate_presigned_post at 0x10c15f550>
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function add_generate_presigned_url at 0x10c15f310>
botocore.endpoint: DEBUG: Setting s3 timeout as (60, 60)
botocore.hooks: DEBUG: Event choose-service-name: calling handler <function handle_service_name_alias at 0x10c1c1040>
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function add_generate_presigned_post at 0x10c15f550>
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function add_generate_presigned_url at 0x10c15f310>
botocore.endpoint: DEBUG: Setting s3 timeout as (60, 60)
awscli.clidriver: DEBUG: Exception caught in main()
Traceback (most recent call last):
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/awscli/clidriver.py", line 459, in main
    return command_table[parsed_args.command](remaining, parsed_args)
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/awscli/customizations/commands.py", line 197, in __call__
    return self.subcommand_table[parsed_args.subcommand](remaining,
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/awscli/customizations/commands.py", line 191, in __call__
    rc = self._run_main(parsed_args, parsed_globals)
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/awscli/customizations/s3/subcommands.py", line 716, in _run_main
    transfer_manager = self._get_transfer_manager(
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/awscli/customizations/s3/subcommands.py", line 758, in _get_transfer_manager
    return TransferManagerFactory(self._session).create_transfer_manager(
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/awscli/customizations/s3/factory.py", line 65, in create_transfer_manager
    return self._create_crt_transfer_manager(params, runtime_config)
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/awscli/customizations/s3/factory.py", line 80, in _create_crt_transfer_manager
    self._create_crt_client(params, runtime_config),
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/awscli/customizations/s3/factory.py", line 103, in _create_crt_client
    return create_s3_crt_client(**create_crt_client_kwargs)
  File "/nix/store/5aay6x7y2f0hqqbr5hmqgxr66h7nmhli-python3.9-s3transfer-0.4.2/lib/python3.9/site-packages/s3transfer/crt.py", line 105, in create_s3_crt_client
    event_loop_group = EventLoopGroup(num_threads)
  File "/nix/store/3dk3kphj5xw1rjxz9a3lgjar23s5ahsn-python3.9-awscrt-0.11.24/lib/python3.9/site-packages/awscrt/io.py", line 84, in __init__
    self._binding = _awscrt.event_loop_group_new(num_threads, is_pinned, cpu_group, on_shutdown)
RuntimeError: 30 (AWS_ERROR_PRIORITY_QUEUE_EMPTY): Attempt to pop an item from an empty queue.
--------------------- >> end captured logging << ---------------------

======================================================================
FAIL: test_download_sync_with_delete_using_crt_client (tests.functional.s3.test_sync_command.TestSyncWithCRTClient)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/tests/functional/s3/test_sync_command.py", line 448, in test_download_sync_with_delete_using_crt_client
    self.run_command(cmdline)
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/tests/functional/s3/__init__.py", line 374, in run_command
    result = self.cli_runner.run(cmdline)
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/tests/__init__.py", line 46, in run
    runner_result = self._do_run(cmdline)
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/tests/__init__.py", line 77, in _do_run
    self._session_stubber.assert_no_remaining_responses()
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/tests/__init__.py", line 107, in assert_no_remaining_responses
    raise AssertionError(
AssertionError: The following queued responses are remaining: deque([<tests.HTTPResponse object at 0x19a32b700>])
-------------------- >> begin captured logging << --------------------
awscli.plugin: DEBUG: Importing plugin __builtin__: awscli.handlers
awscli.plugin: DEBUG: Initializing plugin __builtin__: <module 'awscli.handlers' from '/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/awscli/handlers.py'>
awscli.plugin: DEBUG: cli_legacy_plugin_path not defined in plugin section. Not importing additional plugins.
botocore.hooks: DEBUG: Event building-command-table.main: calling handler <function add_s3 at 0x10d5abca0>
botocore.hooks: DEBUG: Event building-command-table.main: calling handler <function add_ddb at 0x10e0e78b0>
botocore.hooks: DEBUG: Event building-command-table.main: calling handler <bound method BasicCommand.add_command of <class 'awscli.customizations.configure.configure.ConfigureCommand'>>
botocore.hooks: DEBUG: Event building-command-table.main: calling handler <function change_name at 0x10e0e7280>
botocore.hooks: DEBUG: Event building-command-table.main: calling handler <function change_name at 0x10e0e7670>
botocore.hooks: DEBUG: Event building-command-table.main: calling handler <function alias_opsworks_cm at 0x10e142f70>
botocore.hooks: DEBUG: Event building-command-table.main: calling handler <function add_history_commands at 0x10d43ca60>
botocore.hooks: DEBUG: Event building-command-table.main: calling handler <bound method BasicCommand.add_command of <class 'awscli.customizations.devcommands.CLIDevCommand'>>
botocore.hooks: DEBUG: Event building-command-table.main: calling handler <function add_waiters at 0x10d8f3ca0>
botocore.loaders: DEBUG: Loading JSON file: /private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/awscli/data/cli.json
botocore.hooks: DEBUG: Event top-level-args-parsed: calling handler <function resolve_types at 0x10d844ca0>
botocore.hooks: DEBUG: Event top-level-args-parsed: calling handler <function no_sign_request at 0x10d844ee0>
botocore.hooks: DEBUG: Event top-level-args-parsed: calling handler <function resolve_verify_ssl at 0x10d844e50>
botocore.hooks: DEBUG: Event top-level-args-parsed: calling handler <function resolve_cli_read_timeout at 0x10d893040>
botocore.hooks: DEBUG: Event top-level-args-parsed: calling handler <function resolve_cli_connect_timeout at 0x10d844f70>
botocore.hooks: DEBUG: Event top-level-args-parsed: calling handler <built-in method update of dict object at 0x19a257bc0>
botocore.hooks: DEBUG: Event session-initialized: calling handler <function add_timestamp_parser at 0x10d8c6550>
botocore.hooks: DEBUG: Event session-initialized: calling handler <function register_uri_param_handler at 0x10d7e5160>
botocore.hooks: DEBUG: Event session-initialized: calling handler <function add_binary_formatter at 0x10d7c5c10>
botocore.hooks: DEBUG: Event session-initialized: calling handler <function no_pager_handler at 0x10ca94af0>
botocore.hooks: DEBUG: Event session-initialized: calling handler <function inject_assume_role_provider_cache at 0x10d0d0ca0>
botocore.utils: DEBUG: IMDS ENDPOINT: http://169.254.169.254/
botocore.hooks: DEBUG: Event session-initialized: calling handler <function attach_history_handler at 0x10d43c940>
botocore.hooks: DEBUG: Event session-initialized: calling handler <function inject_json_file_cache at 0x10d0d1700>
botocore.hooks: DEBUG: Event building-command-table.s3: calling handler <function add_waiters at 0x10d8f3ca0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.s3.anonymous: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198d98400>
botocore.hooks: DEBUG: Event building-command-table.s3_sync: calling handler <function register_sync_strategies at 0x10d4cbd30>
botocore.hooks: DEBUG: Event building-command-table.s3_sync: calling handler <function add_waiters at 0x10d8f3ca0>
botocore.hooks: DEBUG: Event building-arg-table.s3_sync: calling handler <bound method BaseSync.add_sync_argument of <awscli.customizations.s3.syncstrategy.sizeonly.SizeOnlySync object at 0x19a256100>>
botocore.hooks: DEBUG: Event building-arg-table.s3_sync: calling handler <bound method BaseSync.add_sync_argument of <awscli.customizations.s3.syncstrategy.exacttimestamps.ExactTimestampsSync object at 0x19a256250>>
botocore.hooks: DEBUG: Event building-arg-table.s3_sync: calling handler <bound method BaseSync.add_sync_argument of <awscli.customizations.s3.syncstrategy.delete.DeleteSync object at 0x19a2561f0>>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.paths: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198d98400>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.dryrun: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198d98400>
botocore.hooks: DEBUG: Event process-cli-arg.custom.sync: calling handler <awscli.argprocess.ParamShorthandParser object at 0x19a33fac0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.quiet: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198d98400>
botocore.hooks: DEBUG: Event process-cli-arg.custom.sync: calling handler <awscli.argprocess.ParamShorthandParser object at 0x19a33fac0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.anonymous: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198d98400>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.acl: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198d98400>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.follow-symlinks: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198d98400>
botocore.hooks: DEBUG: Event process-cli-arg.custom.sync: calling handler <awscli.argprocess.ParamShorthandParser object at 0x19a33fac0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.anonymous: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198d98400>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.sse: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198d98400>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.sse-c: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198d98400>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.sse-c-key: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198d98400>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.sse-kms-key-id: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198d98400>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.sse-c-copy-source: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198d98400>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.sse-c-copy-source-key: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198d98400>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.storage-class: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198d98400>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.grants: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198d98400>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.website-redirect: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198d98400>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.content-type: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198d98400>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.cache-control: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198d98400>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.content-disposition: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198d98400>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.content-encoding: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198d98400>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.content-language: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198d98400>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.expires: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198d98400>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.source-region: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198d98400>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.only-show-errors: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198d98400>
botocore.hooks: DEBUG: Event process-cli-arg.custom.sync: calling handler <awscli.argprocess.ParamShorthandParser object at 0x19a33fac0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.anonymous: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198d98400>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.page-size: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198d98400>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.ignore-glacier-warnings: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198d98400>
botocore.hooks: DEBUG: Event process-cli-arg.custom.sync: calling handler <awscli.argprocess.ParamShorthandParser object at 0x19a33fac0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.force-glacier-transfer: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198d98400>
botocore.hooks: DEBUG: Event process-cli-arg.custom.sync: calling handler <awscli.argprocess.ParamShorthandParser object at 0x19a33fac0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.request-payer: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198d98400>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.metadata: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198d98400>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.copy-props: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198d98400>
botocore.hooks: DEBUG: Event process-cli-arg.custom.sync: calling handler <awscli.argprocess.ParamShorthandParser object at 0x19a33fac0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.metadata-directive: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198d98400>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.size-only: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198d98400>
botocore.hooks: DEBUG: Event process-cli-arg.custom.sync: calling handler <awscli.argprocess.ParamShorthandParser object at 0x19a33fac0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.exact-timestamps: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198d98400>
botocore.hooks: DEBUG: Event process-cli-arg.custom.sync: calling handler <awscli.argprocess.ParamShorthandParser object at 0x19a33fac0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.delete: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198d98400>
botocore.hooks: DEBUG: Event process-cli-arg.custom.sync: calling handler <awscli.argprocess.ParamShorthandParser object at 0x19a33fac0>
botocore.credentials: DEBUG: Looking for credentials via: env
botocore.credentials: INFO: Found credentials in environment variables.
botocore.loaders: DEBUG: Loading JSON file: /nix/store/gxz7gris0qnwswg21y4q05zms79b98zr-python3.9-botocore-2.0.0dev138/lib/python3.9/site-packages/botocore/data/endpoints.json
botocore.hooks: DEBUG: Event choose-service-name: calling handler <function handle_service_name_alias at 0x10c1c1040>
botocore.loaders: DEBUG: Loading JSON file: /nix/store/gxz7gris0qnwswg21y4q05zms79b98zr-python3.9-botocore-2.0.0dev138/lib/python3.9/site-packages/botocore/data/s3/2006-03-01/service-2.json
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function add_generate_presigned_post at 0x10c15f550>
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function add_generate_presigned_url at 0x10c15f310>
botocore.endpoint: DEBUG: Setting s3 timeout as (60, 60)
botocore.hooks: DEBUG: Event choose-service-name: calling handler <function handle_service_name_alias at 0x10c1c1040>
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function add_generate_presigned_post at 0x10c15f550>
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function add_generate_presigned_url at 0x10c15f310>
botocore.endpoint: DEBUG: Setting s3 timeout as (60, 60)
botocore.hooks: DEBUG: Event choose-service-name: calling handler <function handle_service_name_alias at 0x10c1c1040>
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function add_generate_presigned_post at 0x10c15f550>
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function add_generate_presigned_url at 0x10c15f310>
botocore.endpoint: DEBUG: Setting s3 timeout as (60, 60)
awscli.clidriver: DEBUG: Exception caught in main()
Traceback (most recent call last):
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/awscli/clidriver.py", line 459, in main
    return command_table[parsed_args.command](remaining, parsed_args)
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/awscli/customizations/commands.py", line 197, in __call__
    return self.subcommand_table[parsed_args.subcommand](remaining,
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/awscli/customizations/commands.py", line 191, in __call__
    rc = self._run_main(parsed_args, parsed_globals)
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/awscli/customizations/s3/subcommands.py", line 716, in _run_main
    transfer_manager = self._get_transfer_manager(
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/awscli/customizations/s3/subcommands.py", line 758, in _get_transfer_manager
    return TransferManagerFactory(self._session).create_transfer_manager(
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/awscli/customizations/s3/factory.py", line 65, in create_transfer_manager
    return self._create_crt_transfer_manager(params, runtime_config)
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/awscli/customizations/s3/factory.py", line 80, in _create_crt_transfer_manager
    self._create_crt_client(params, runtime_config),
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/awscli/customizations/s3/factory.py", line 103, in _create_crt_client
    return create_s3_crt_client(**create_crt_client_kwargs)
  File "/nix/store/5aay6x7y2f0hqqbr5hmqgxr66h7nmhli-python3.9-s3transfer-0.4.2/lib/python3.9/site-packages/s3transfer/crt.py", line 105, in create_s3_crt_client
    event_loop_group = EventLoopGroup(num_threads)
  File "/nix/store/3dk3kphj5xw1rjxz9a3lgjar23s5ahsn-python3.9-awscrt-0.11.24/lib/python3.9/site-packages/awscrt/io.py", line 84, in __init__
    self._binding = _awscrt.event_loop_group_new(num_threads, is_pinned, cpu_group, on_shutdown)
RuntimeError: 30 (AWS_ERROR_PRIORITY_QUEUE_EMPTY): Attempt to pop an item from an empty queue.
--------------------- >> end captured logging << ---------------------

======================================================================
FAIL: test_upload_sync_using_crt_client (tests.functional.s3.test_sync_command.TestSyncWithCRTClient)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/tests/functional/s3/test_sync_command.py", line 391, in test_upload_sync_using_crt_client
    self.run_command(cmdline)
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/tests/functional/s3/__init__.py", line 374, in run_command
    result = self.cli_runner.run(cmdline)
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/tests/__init__.py", line 46, in run
    runner_result = self._do_run(cmdline)
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/tests/__init__.py", line 77, in _do_run
    self._session_stubber.assert_no_remaining_responses()
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/tests/__init__.py", line 107, in assert_no_remaining_responses
    raise AssertionError(
AssertionError: The following queued responses are remaining: deque([<tests.HTTPResponse object at 0x19a8527f0>])
-------------------- >> begin captured logging << --------------------
awscli.plugin: DEBUG: Importing plugin __builtin__: awscli.handlers
awscli.plugin: DEBUG: Initializing plugin __builtin__: <module 'awscli.handlers' from '/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/awscli/handlers.py'>
awscli.plugin: DEBUG: cli_legacy_plugin_path not defined in plugin section. Not importing additional plugins.
botocore.hooks: DEBUG: Event building-command-table.main: calling handler <function add_s3 at 0x10d5abca0>
botocore.hooks: DEBUG: Event building-command-table.main: calling handler <function add_ddb at 0x10e0e78b0>
botocore.hooks: DEBUG: Event building-command-table.main: calling handler <bound method BasicCommand.add_command of <class 'awscli.customizations.configure.configure.ConfigureCommand'>>
botocore.hooks: DEBUG: Event building-command-table.main: calling handler <function change_name at 0x10e0e7280>
botocore.hooks: DEBUG: Event building-command-table.main: calling handler <function change_name at 0x10e0e7670>
botocore.hooks: DEBUG: Event building-command-table.main: calling handler <function alias_opsworks_cm at 0x10e142f70>
botocore.hooks: DEBUG: Event building-command-table.main: calling handler <function add_history_commands at 0x10d43ca60>
botocore.hooks: DEBUG: Event building-command-table.main: calling handler <bound method BasicCommand.add_command of <class 'awscli.customizations.devcommands.CLIDevCommand'>>
botocore.hooks: DEBUG: Event building-command-table.main: calling handler <function add_waiters at 0x10d8f3ca0>
botocore.loaders: DEBUG: Loading JSON file: /private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/awscli/data/cli.json
botocore.hooks: DEBUG: Event top-level-args-parsed: calling handler <function resolve_types at 0x10d844ca0>
botocore.hooks: DEBUG: Event top-level-args-parsed: calling handler <function no_sign_request at 0x10d844ee0>
botocore.hooks: DEBUG: Event top-level-args-parsed: calling handler <function resolve_verify_ssl at 0x10d844e50>
botocore.hooks: DEBUG: Event top-level-args-parsed: calling handler <function resolve_cli_read_timeout at 0x10d893040>
botocore.hooks: DEBUG: Event top-level-args-parsed: calling handler <function resolve_cli_connect_timeout at 0x10d844f70>
botocore.hooks: DEBUG: Event top-level-args-parsed: calling handler <built-in method update of dict object at 0x19a7e8100>
botocore.hooks: DEBUG: Event session-initialized: calling handler <function add_timestamp_parser at 0x10d8c6550>
botocore.hooks: DEBUG: Event session-initialized: calling handler <function register_uri_param_handler at 0x10d7e5160>
botocore.hooks: DEBUG: Event session-initialized: calling handler <function add_binary_formatter at 0x10d7c5c10>
botocore.hooks: DEBUG: Event session-initialized: calling handler <function no_pager_handler at 0x10ca94af0>
botocore.hooks: DEBUG: Event session-initialized: calling handler <function inject_assume_role_provider_cache at 0x10d0d0ca0>
botocore.utils: DEBUG: IMDS ENDPOINT: http://169.254.169.254/
botocore.hooks: DEBUG: Event session-initialized: calling handler <function attach_history_handler at 0x10d43c940>
botocore.hooks: DEBUG: Event session-initialized: calling handler <function inject_json_file_cache at 0x10d0d1700>
botocore.hooks: DEBUG: Event building-command-table.s3: calling handler <function add_waiters at 0x10d8f3ca0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.s3.anonymous: calling handler <awscli.paramfile.URIArgumentHandler object at 0x19a81c880>
botocore.hooks: DEBUG: Event building-command-table.s3_sync: calling handler <function register_sync_strategies at 0x10d4cbd30>
botocore.hooks: DEBUG: Event building-command-table.s3_sync: calling handler <function add_waiters at 0x10d8f3ca0>
botocore.hooks: DEBUG: Event building-arg-table.s3_sync: calling handler <bound method BaseSync.add_sync_argument of <awscli.customizations.s3.syncstrategy.sizeonly.SizeOnlySync object at 0x19a81cd60>>
botocore.hooks: DEBUG: Event building-arg-table.s3_sync: calling handler <bound method BaseSync.add_sync_argument of <awscli.customizations.s3.syncstrategy.exacttimestamps.ExactTimestampsSync object at 0x19a81cd00>>
botocore.hooks: DEBUG: Event building-arg-table.s3_sync: calling handler <bound method BaseSync.add_sync_argument of <awscli.customizations.s3.syncstrategy.delete.DeleteSync object at 0x19a81cf40>>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.paths: calling handler <awscli.paramfile.URIArgumentHandler object at 0x19a81c880>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.dryrun: calling handler <awscli.paramfile.URIArgumentHandler object at 0x19a81c880>
botocore.hooks: DEBUG: Event process-cli-arg.custom.sync: calling handler <awscli.argprocess.ParamShorthandParser object at 0x19a83fd30>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.quiet: calling handler <awscli.paramfile.URIArgumentHandler object at 0x19a81c880>
botocore.hooks: DEBUG: Event process-cli-arg.custom.sync: calling handler <awscli.argprocess.ParamShorthandParser object at 0x19a83fd30>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.anonymous: calling handler <awscli.paramfile.URIArgumentHandler object at 0x19a81c880>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.acl: calling handler <awscli.paramfile.URIArgumentHandler object at 0x19a81c880>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.follow-symlinks: calling handler <awscli.paramfile.URIArgumentHandler object at 0x19a81c880>
botocore.hooks: DEBUG: Event process-cli-arg.custom.sync: calling handler <awscli.argprocess.ParamShorthandParser object at 0x19a83fd30>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.anonymous: calling handler <awscli.paramfile.URIArgumentHandler object at 0x19a81c880>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.sse: calling handler <awscli.paramfile.URIArgumentHandler object at 0x19a81c880>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.sse-c: calling handler <awscli.paramfile.URIArgumentHandler object at 0x19a81c880>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.sse-c-key: calling handler <awscli.paramfile.URIArgumentHandler object at 0x19a81c880>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.sse-kms-key-id: calling handler <awscli.paramfile.URIArgumentHandler object at 0x19a81c880>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.sse-c-copy-source: calling handler <awscli.paramfile.URIArgumentHandler object at 0x19a81c880>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.sse-c-copy-source-key: calling handler <awscli.paramfile.URIArgumentHandler object at 0x19a81c880>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.storage-class: calling handler <awscli.paramfile.URIArgumentHandler object at 0x19a81c880>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.grants: calling handler <awscli.paramfile.URIArgumentHandler object at 0x19a81c880>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.website-redirect: calling handler <awscli.paramfile.URIArgumentHandler object at 0x19a81c880>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.content-type: calling handler <awscli.paramfile.URIArgumentHandler object at 0x19a81c880>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.cache-control: calling handler <awscli.paramfile.URIArgumentHandler object at 0x19a81c880>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.content-disposition: calling handler <awscli.paramfile.URIArgumentHandler object at 0x19a81c880>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.content-encoding: calling handler <awscli.paramfile.URIArgumentHandler object at 0x19a81c880>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.content-language: calling handler <awscli.paramfile.URIArgumentHandler object at 0x19a81c880>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.expires: calling handler <awscli.paramfile.URIArgumentHandler object at 0x19a81c880>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.source-region: calling handler <awscli.paramfile.URIArgumentHandler object at 0x19a81c880>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.only-show-errors: calling handler <awscli.paramfile.URIArgumentHandler object at 0x19a81c880>
botocore.hooks: DEBUG: Event process-cli-arg.custom.sync: calling handler <awscli.argprocess.ParamShorthandParser object at 0x19a83fd30>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.anonymous: calling handler <awscli.paramfile.URIArgumentHandler object at 0x19a81c880>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.page-size: calling handler <awscli.paramfile.URIArgumentHandler object at 0x19a81c880>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.ignore-glacier-warnings: calling handler <awscli.paramfile.URIArgumentHandler object at 0x19a81c880>
botocore.hooks: DEBUG: Event process-cli-arg.custom.sync: calling handler <awscli.argprocess.ParamShorthandParser object at 0x19a83fd30>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.force-glacier-transfer: calling handler <awscli.paramfile.URIArgumentHandler object at 0x19a81c880>
botocore.hooks: DEBUG: Event process-cli-arg.custom.sync: calling handler <awscli.argprocess.ParamShorthandParser object at 0x19a83fd30>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.request-payer: calling handler <awscli.paramfile.URIArgumentHandler object at 0x19a81c880>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.metadata: calling handler <awscli.paramfile.URIArgumentHandler object at 0x19a81c880>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.copy-props: calling handler <awscli.paramfile.URIArgumentHandler object at 0x19a81c880>
botocore.hooks: DEBUG: Event process-cli-arg.custom.sync: calling handler <awscli.argprocess.ParamShorthandParser object at 0x19a83fd30>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.metadata-directive: calling handler <awscli.paramfile.URIArgumentHandler object at 0x19a81c880>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.size-only: calling handler <awscli.paramfile.URIArgumentHandler object at 0x19a81c880>
botocore.hooks: DEBUG: Event process-cli-arg.custom.sync: calling handler <awscli.argprocess.ParamShorthandParser object at 0x19a83fd30>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.exact-timestamps: calling handler <awscli.paramfile.URIArgumentHandler object at 0x19a81c880>
botocore.hooks: DEBUG: Event process-cli-arg.custom.sync: calling handler <awscli.argprocess.ParamShorthandParser object at 0x19a83fd30>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.delete: calling handler <awscli.paramfile.URIArgumentHandler object at 0x19a81c880>
botocore.hooks: DEBUG: Event process-cli-arg.custom.sync: calling handler <awscli.argprocess.ParamShorthandParser object at 0x19a83fd30>
botocore.credentials: DEBUG: Looking for credentials via: env
botocore.credentials: INFO: Found credentials in environment variables.
botocore.loaders: DEBUG: Loading JSON file: /nix/store/gxz7gris0qnwswg21y4q05zms79b98zr-python3.9-botocore-2.0.0dev138/lib/python3.9/site-packages/botocore/data/endpoints.json
botocore.hooks: DEBUG: Event choose-service-name: calling handler <function handle_service_name_alias at 0x10c1c1040>
botocore.loaders: DEBUG: Loading JSON file: /nix/store/gxz7gris0qnwswg21y4q05zms79b98zr-python3.9-botocore-2.0.0dev138/lib/python3.9/site-packages/botocore/data/s3/2006-03-01/service-2.json
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function add_generate_presigned_post at 0x10c15f550>
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function add_generate_presigned_url at 0x10c15f310>
botocore.endpoint: DEBUG: Setting s3 timeout as (60, 60)
botocore.hooks: DEBUG: Event choose-service-name: calling handler <function handle_service_name_alias at 0x10c1c1040>
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function add_generate_presigned_post at 0x10c15f550>
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function add_generate_presigned_url at 0x10c15f310>
botocore.endpoint: DEBUG: Setting s3 timeout as (60, 60)
botocore.hooks: DEBUG: Event choose-service-name: calling handler <function handle_service_name_alias at 0x10c1c1040>
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function add_generate_presigned_post at 0x10c15f550>
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function add_generate_presigned_url at 0x10c15f310>
botocore.endpoint: DEBUG: Setting s3 timeout as (60, 60)
awscli.clidriver: DEBUG: Exception caught in main()
Traceback (most recent call last):
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/awscli/clidriver.py", line 459, in main
    return command_table[parsed_args.command](remaining, parsed_args)
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/awscli/customizations/commands.py", line 197, in __call__
    return self.subcommand_table[parsed_args.subcommand](remaining,
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/awscli/customizations/commands.py", line 191, in __call__
    rc = self._run_main(parsed_args, parsed_globals)
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/awscli/customizations/s3/subcommands.py", line 716, in _run_main
    transfer_manager = self._get_transfer_manager(
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/awscli/customizations/s3/subcommands.py", line 758, in _get_transfer_manager
    return TransferManagerFactory(self._session).create_transfer_manager(
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/awscli/customizations/s3/factory.py", line 65, in create_transfer_manager
    return self._create_crt_transfer_manager(params, runtime_config)
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/awscli/customizations/s3/factory.py", line 80, in _create_crt_transfer_manager
    self._create_crt_client(params, runtime_config),
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/awscli/customizations/s3/factory.py", line 103, in _create_crt_client
    return create_s3_crt_client(**create_crt_client_kwargs)
  File "/nix/store/5aay6x7y2f0hqqbr5hmqgxr66h7nmhli-python3.9-s3transfer-0.4.2/lib/python3.9/site-packages/s3transfer/crt.py", line 105, in create_s3_crt_client
    event_loop_group = EventLoopGroup(num_threads)
  File "/nix/store/3dk3kphj5xw1rjxz9a3lgjar23s5ahsn-python3.9-awscrt-0.11.24/lib/python3.9/site-packages/awscrt/io.py", line 84, in __init__
    self._binding = _awscrt.event_loop_group_new(num_threads, is_pinned, cpu_group, on_shutdown)
RuntimeError: 30 (AWS_ERROR_PRIORITY_QUEUE_EMPTY): Attempt to pop an item from an empty queue.
--------------------- >> end captured logging << ---------------------

======================================================================
FAIL: test_upload_sync_with_delete_using_crt_client (tests.functional.s3.test_sync_command.TestSyncWithCRTClient)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/tests/functional/s3/test_sync_command.py", line 424, in test_upload_sync_with_delete_using_crt_client
    self.run_command(cmdline)
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/tests/functional/s3/__init__.py", line 374, in run_command
    result = self.cli_runner.run(cmdline)
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/tests/__init__.py", line 46, in run
    runner_result = self._do_run(cmdline)
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/tests/__init__.py", line 77, in _do_run
    self._session_stubber.assert_no_remaining_responses()
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/tests/__init__.py", line 107, in assert_no_remaining_responses
    raise AssertionError(
AssertionError: The following queued responses are remaining: deque([<tests.HTTPResponse object at 0x19ad13700>])
-------------------- >> begin captured logging << --------------------
awscli.plugin: DEBUG: Importing plugin __builtin__: awscli.handlers
awscli.plugin: DEBUG: Initializing plugin __builtin__: <module 'awscli.handlers' from '/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/awscli/handlers.py'>
awscli.plugin: DEBUG: cli_legacy_plugin_path not defined in plugin section. Not importing additional plugins.
botocore.hooks: DEBUG: Event building-command-table.main: calling handler <function add_s3 at 0x10d5abca0>
botocore.hooks: DEBUG: Event building-command-table.main: calling handler <function add_ddb at 0x10e0e78b0>
botocore.hooks: DEBUG: Event building-command-table.main: calling handler <bound method BasicCommand.add_command of <class 'awscli.customizations.configure.configure.ConfigureCommand'>>
botocore.hooks: DEBUG: Event building-command-table.main: calling handler <function change_name at 0x10e0e7280>
botocore.hooks: DEBUG: Event building-command-table.main: calling handler <function change_name at 0x10e0e7670>
botocore.hooks: DEBUG: Event building-command-table.main: calling handler <function alias_opsworks_cm at 0x10e142f70>
botocore.hooks: DEBUG: Event building-command-table.main: calling handler <function add_history_commands at 0x10d43ca60>
botocore.hooks: DEBUG: Event building-command-table.main: calling handler <bound method BasicCommand.add_command of <class 'awscli.customizations.devcommands.CLIDevCommand'>>
botocore.hooks: DEBUG: Event building-command-table.main: calling handler <function add_waiters at 0x10d8f3ca0>
botocore.loaders: DEBUG: Loading JSON file: /private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/awscli/data/cli.json
botocore.hooks: DEBUG: Event top-level-args-parsed: calling handler <function resolve_types at 0x10d844ca0>
botocore.hooks: DEBUG: Event top-level-args-parsed: calling handler <function no_sign_request at 0x10d844ee0>
botocore.hooks: DEBUG: Event top-level-args-parsed: calling handler <function resolve_verify_ssl at 0x10d844e50>
botocore.hooks: DEBUG: Event top-level-args-parsed: calling handler <function resolve_cli_read_timeout at 0x10d893040>
botocore.hooks: DEBUG: Event top-level-args-parsed: calling handler <function resolve_cli_connect_timeout at 0x10d844f70>
botocore.hooks: DEBUG: Event top-level-args-parsed: calling handler <built-in method update of dict object at 0x19ad7f6c0>
botocore.hooks: DEBUG: Event session-initialized: calling handler <function add_timestamp_parser at 0x10d8c6550>
botocore.hooks: DEBUG: Event session-initialized: calling handler <function register_uri_param_handler at 0x10d7e5160>
botocore.hooks: DEBUG: Event session-initialized: calling handler <function add_binary_formatter at 0x10d7c5c10>
botocore.hooks: DEBUG: Event session-initialized: calling handler <function no_pager_handler at 0x10ca94af0>
botocore.hooks: DEBUG: Event session-initialized: calling handler <function inject_assume_role_provider_cache at 0x10d0d0ca0>
botocore.utils: DEBUG: IMDS ENDPOINT: http://169.254.169.254/
botocore.hooks: DEBUG: Event session-initialized: calling handler <function attach_history_handler at 0x10d43c940>
botocore.hooks: DEBUG: Event session-initialized: calling handler <function inject_json_file_cache at 0x10d0d1700>
botocore.hooks: DEBUG: Event building-command-table.s3: calling handler <function add_waiters at 0x10d8f3ca0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.s3.anonymous: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198eea1f0>
botocore.hooks: DEBUG: Event building-command-table.s3_sync: calling handler <function register_sync_strategies at 0x10d4cbd30>
botocore.hooks: DEBUG: Event building-command-table.s3_sync: calling handler <function add_waiters at 0x10d8f3ca0>
botocore.hooks: DEBUG: Event building-arg-table.s3_sync: calling handler <bound method BaseSync.add_sync_argument of <awscli.customizations.s3.syncstrategy.sizeonly.SizeOnlySync object at 0x19ada4b80>>
botocore.hooks: DEBUG: Event building-arg-table.s3_sync: calling handler <bound method BaseSync.add_sync_argument of <awscli.customizations.s3.syncstrategy.exacttimestamps.ExactTimestampsSync object at 0x19adb1a60>>
botocore.hooks: DEBUG: Event building-arg-table.s3_sync: calling handler <bound method BaseSync.add_sync_argument of <awscli.customizations.s3.syncstrategy.delete.DeleteSync object at 0x19adb1b50>>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.paths: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198eea1f0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.dryrun: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198eea1f0>
botocore.hooks: DEBUG: Event process-cli-arg.custom.sync: calling handler <awscli.argprocess.ParamShorthandParser object at 0x19ad34b50>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.quiet: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198eea1f0>
botocore.hooks: DEBUG: Event process-cli-arg.custom.sync: calling handler <awscli.argprocess.ParamShorthandParser object at 0x19ad34b50>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.anonymous: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198eea1f0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.acl: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198eea1f0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.follow-symlinks: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198eea1f0>
botocore.hooks: DEBUG: Event process-cli-arg.custom.sync: calling handler <awscli.argprocess.ParamShorthandParser object at 0x19ad34b50>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.anonymous: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198eea1f0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.sse: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198eea1f0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.sse-c: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198eea1f0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.sse-c-key: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198eea1f0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.sse-kms-key-id: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198eea1f0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.sse-c-copy-source: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198eea1f0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.sse-c-copy-source-key: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198eea1f0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.storage-class: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198eea1f0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.grants: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198eea1f0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.website-redirect: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198eea1f0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.content-type: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198eea1f0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.cache-control: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198eea1f0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.content-disposition: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198eea1f0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.content-encoding: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198eea1f0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.content-language: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198eea1f0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.expires: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198eea1f0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.source-region: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198eea1f0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.only-show-errors: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198eea1f0>
botocore.hooks: DEBUG: Event process-cli-arg.custom.sync: calling handler <awscli.argprocess.ParamShorthandParser object at 0x19ad34b50>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.anonymous: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198eea1f0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.page-size: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198eea1f0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.ignore-glacier-warnings: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198eea1f0>
botocore.hooks: DEBUG: Event process-cli-arg.custom.sync: calling handler <awscli.argprocess.ParamShorthandParser object at 0x19ad34b50>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.force-glacier-transfer: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198eea1f0>
botocore.hooks: DEBUG: Event process-cli-arg.custom.sync: calling handler <awscli.argprocess.ParamShorthandParser object at 0x19ad34b50>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.request-payer: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198eea1f0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.metadata: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198eea1f0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.copy-props: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198eea1f0>
botocore.hooks: DEBUG: Event process-cli-arg.custom.sync: calling handler <awscli.argprocess.ParamShorthandParser object at 0x19ad34b50>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.metadata-directive: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198eea1f0>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.size-only: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198eea1f0>
botocore.hooks: DEBUG: Event process-cli-arg.custom.sync: calling handler <awscli.argprocess.ParamShorthandParser object at 0x19ad34b50>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.exact-timestamps: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198eea1f0>
botocore.hooks: DEBUG: Event process-cli-arg.custom.sync: calling handler <awscli.argprocess.ParamShorthandParser object at 0x19ad34b50>
botocore.hooks: DEBUG: Event load-cli-arg.custom.sync.delete: calling handler <awscli.paramfile.URIArgumentHandler object at 0x198eea1f0>
botocore.hooks: DEBUG: Event process-cli-arg.custom.sync: calling handler <awscli.argprocess.ParamShorthandParser object at 0x19ad34b50>
botocore.credentials: DEBUG: Looking for credentials via: env
botocore.credentials: INFO: Found credentials in environment variables.
botocore.loaders: DEBUG: Loading JSON file: /nix/store/gxz7gris0qnwswg21y4q05zms79b98zr-python3.9-botocore-2.0.0dev138/lib/python3.9/site-packages/botocore/data/endpoints.json
botocore.hooks: DEBUG: Event choose-service-name: calling handler <function handle_service_name_alias at 0x10c1c1040>
botocore.loaders: DEBUG: Loading JSON file: /nix/store/gxz7gris0qnwswg21y4q05zms79b98zr-python3.9-botocore-2.0.0dev138/lib/python3.9/site-packages/botocore/data/s3/2006-03-01/service-2.json
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function add_generate_presigned_post at 0x10c15f550>
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function add_generate_presigned_url at 0x10c15f310>
botocore.endpoint: DEBUG: Setting s3 timeout as (60, 60)
botocore.hooks: DEBUG: Event choose-service-name: calling handler <function handle_service_name_alias at 0x10c1c1040>
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function add_generate_presigned_post at 0x10c15f550>
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function add_generate_presigned_url at 0x10c15f310>
botocore.endpoint: DEBUG: Setting s3 timeout as (60, 60)
botocore.hooks: DEBUG: Event choose-service-name: calling handler <function handle_service_name_alias at 0x10c1c1040>
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function add_generate_presigned_post at 0x10c15f550>
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function add_generate_presigned_url at 0x10c15f310>
botocore.endpoint: DEBUG: Setting s3 timeout as (60, 60)
awscli.clidriver: DEBUG: Exception caught in main()
Traceback (most recent call last):
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/awscli/clidriver.py", line 459, in main
    return command_table[parsed_args.command](remaining, parsed_args)
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/awscli/customizations/commands.py", line 197, in __call__
    return self.subcommand_table[parsed_args.subcommand](remaining,
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/awscli/customizations/commands.py", line 191, in __call__
    rc = self._run_main(parsed_args, parsed_globals)
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/awscli/customizations/s3/subcommands.py", line 716, in _run_main
    transfer_manager = self._get_transfer_manager(
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/awscli/customizations/s3/subcommands.py", line 758, in _get_transfer_manager
    return TransferManagerFactory(self._session).create_transfer_manager(
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/awscli/customizations/s3/factory.py", line 65, in create_transfer_manager
    return self._create_crt_transfer_manager(params, runtime_config)
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/awscli/customizations/s3/factory.py", line 80, in _create_crt_transfer_manager
    self._create_crt_client(params, runtime_config),
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/awscli/customizations/s3/factory.py", line 103, in _create_crt_client
    return create_s3_crt_client(**create_crt_client_kwargs)
  File "/nix/store/5aay6x7y2f0hqqbr5hmqgxr66h7nmhli-python3.9-s3transfer-0.4.2/lib/python3.9/site-packages/s3transfer/crt.py", line 105, in create_s3_crt_client
    event_loop_group = EventLoopGroup(num_threads)
  File "/nix/store/3dk3kphj5xw1rjxz9a3lgjar23s5ahsn-python3.9-awscrt-0.11.24/lib/python3.9/site-packages/awscrt/io.py", line 84, in __init__
    self._binding = _awscrt.event_loop_group_new(num_threads, is_pinned, cpu_group, on_shutdown)
RuntimeError: 30 (AWS_ERROR_PRIORITY_QUEUE_EMPTY): Attempt to pop an item from an empty queue.
--------------------- >> end captured logging << ---------------------
Name                                                                    Stmts   Miss  Cover
-------------------------------------------------------------------------------------------
awscli/__init__.py                                                         13      0   100%
awscli/alias.py                                                           109      1    99%
awscli/argparser.py                                                       106      7    93%
awscli/argprocess.py                                                      248     14    94%
awscli/arguments.py                                                       243     11    95%
awscli/autocomplete/__init__.py                                            19      0   100%
awscli/autocomplete/autogen.py                                            147      2    99%
awscli/autocomplete/completer.py                                           26      2    92%
awscli/autocomplete/custom.py                                               7      0   100%
awscli/autocomplete/db.py                                                  34      1    97%
awscli/autocomplete/filters.py                                             19      0   100%
awscli/autocomplete/generator.py                                            7      0   100%
awscli/autocomplete/local/__init__.py                                       0      0   100%
awscli/autocomplete/local/basic.py                                        327     10    97%
awscli/autocomplete/local/fetcher.py                                       26      0   100%
awscli/autocomplete/local/indexer.py                                       45      0   100%
awscli/autocomplete/local/model.py                                         39      0   100%
awscli/autocomplete/main.py                                                21      3    86%
awscli/autocomplete/parser.py                                             160      1    99%
awscli/autocomplete/serverside/__init__.py                                  5      0   100%
awscli/autocomplete/serverside/custom_completers/__init__.py                0      0   100%
awscli/autocomplete/serverside/custom_completers/ddb/__init__.py            0      0   100%
awscli/autocomplete/serverside/custom_completers/ddb/autocomplete.py       11      0   100%
awscli/autocomplete/serverside/custom_completers/logs/__init__.py           0      0   100%
awscli/autocomplete/serverside/custom_completers/logs/autocomplete.py      11      0   100%
awscli/autocomplete/serverside/indexer.py                                  59      0   100%
awscli/autocomplete/serverside/model.py                                    11      0   100%
awscli/autocomplete/serverside/servercomp.py                               78      1    99%
awscli/autoprompt/__init__.py                                               0      0   100%
awscli/autoprompt/core.py                                                  53      6    89%
awscli/autoprompt/doc.py                                                   63      0   100%
awscli/autoprompt/factory.py                                              173     36    79%
awscli/autoprompt/filters.py                                               42      0   100%
awscli/autoprompt/history.py                                               54      4    93%
awscli/autoprompt/logger.py                                                17      3    82%
awscli/autoprompt/output.py                                                66      2    97%
awscli/autoprompt/prompttoolkit.py                                        206      5    98%
awscli/autoprompt/widgets.py                                              156      6    96%
awscli/bcdoc/__init__.py                                                    1      0   100%
awscli/bcdoc/docevents.py                                                  34      0   100%
awscli/bcdoc/docstringparser.py                                           119      2    98%
awscli/bcdoc/restdoc.py                                                   112      1    99%
awscli/bcdoc/style.py                                                     288     20    93%
awscli/bcdoc/textwriter.py                                                556    261    53%
awscli/clidocs.py                                                         497      4    99%
awscli/clidriver.py                                                       461      6    99%
awscli/commands.py                                                         20      2    90%
awscli/compat.py                                                          245     96    61%
awscli/completer.py                                                        98     17    83%
awscli/constants.py                                                         4      0   100%
awscli/customizations/__init__.py                                           1      0   100%
awscli/customizations/addexamples.py                                       14      0   100%
awscli/customizations/argrename.py                                         21      0   100%
awscli/customizations/arguments.py                                         64      0   100%
awscli/customizations/assumerole.py                                        18      0   100%
awscli/customizations/awslambda.py                                         65      1    98%
awscli/customizations/binaryformat.py                                      48      0   100%
awscli/customizations/cliinput.py                                          60      1    98%
awscli/customizations/cloudformation/__init__.py                            7      0   100%
awscli/customizations/cloudformation/artifact_exporter.py                 299      4    99%
awscli/customizations/cloudformation/deploy.py                            127      2    98%
awscli/customizations/cloudformation/deployer.py                           92      3    97%
awscli/customizations/cloudformation/exceptions.py                         22      0   100%
awscli/customizations/cloudformation/package.py                            47      9    81%
awscli/customizations/cloudformation/yamlhelper.py                         44      0   100%
awscli/customizations/cloudfront.py                                        99      1    99%
awscli/customizations/cloudsearch.py                                       24      2    92%
awscli/customizations/cloudsearchdomain.py                                  7      0   100%
awscli/customizations/cloudtrail/__init__.py                                5      0   100%
awscli/customizations/cloudtrail/utils.py                                   8      0   100%
awscli/customizations/cloudtrail/validation.py                            406      9    98%
awscli/customizations/codeartifact/__init__.py                              5      0   100%
awscli/customizations/codeartifact/login.py                               285      6    98%
awscli/customizations/codecommit.py                                       102      3    97%
awscli/customizations/codedeploy/__init__.py                                0      0   100%
awscli/customizations/codedeploy/codedeploy.py                             21      0   100%
awscli/customizations/codedeploy/deregister.py                             81     13    84%
awscli/customizations/codedeploy/install.py                                52      7    87%
awscli/customizations/codedeploy/locationargs.py                           46      1    98%
awscli/customizations/codedeploy/push.py                                  100      3    97%
awscli/customizations/codedeploy/register.py                               64      4    94%
awscli/customizations/codedeploy/systems.py                               109     15    86%
awscli/customizations/codedeploy/uninstall.py                              34      7    79%
awscli/customizations/codedeploy/utils.py                                  68      0   100%
awscli/customizations/commands.py                                         245      2    99%
awscli/customizations/configservice/__init__.py                             0      0   100%
awscli/customizations/configservice/getstatus.py                           58      0   100%
awscli/customizations/configservice/putconfigurationrecorder.py            29      1    97%
awscli/customizations/configservice/rename_cmd.py                           5      0   100%
awscli/customizations/configservice/subscribe.py                           83      0   100%
awscli/customizations/configure/__init__.py                                26      0   100%
awscli/customizations/configure/addmodel.py                                37      0   100%
awscli/customizations/configure/configure.py                               71      0   100%
awscli/customizations/configure/get.py                                     61      1    98%
awscli/customizations/configure/importer.py                               112      2    98%
awscli/customizations/configure/list.py                                    62      4    94%
awscli/customizations/configure/listprofiles.py                            16      0   100%
awscli/customizations/configure/set.py                                     57      0   100%
awscli/customizations/configure/sso.py                                    197      0   100%
awscli/customizations/configure/writer.py                                 105      1    99%
awscli/customizations/datapipeline/__init__.py                            188     20    89%
awscli/customizations/datapipeline/constants.py                             6      0   100%
awscli/customizations/datapipeline/createdefaultroles.py                   72     11    85%
awscli/customizations/datapipeline/listrunsformatter.py                    30      0   100%
awscli/customizations/datapipeline/translator.py                          122      3    98%
awscli/customizations/devcommands.py                                        7      0   100%
awscli/customizations/dlm/__init__.py                                       0      0   100%
awscli/customizations/dlm/constants.py                                      9      0   100%
awscli/customizations/dlm/createdefaultrole.py                             60      3    95%
awscli/customizations/dlm/dlm.py                                            5      0   100%
awscli/customizations/dlm/iam.py                                           24      0   100%
awscli/customizations/dynamodb/__init__.py                                  0      0   100%
awscli/customizations/dynamodb/ast.py                                      26      0   100%
awscli/customizations/dynamodb/ddb.py                                      14      0   100%
awscli/customizations/dynamodb/exceptions.py                               42      0   100%
awscli/customizations/dynamodb/extractor.py                                66      0   100%
awscli/customizations/dynamodb/formatter.py                                23      0   100%
awscli/customizations/dynamodb/lexer.py                                   146      0   100%
awscli/customizations/dynamodb/paginatorfix.py                             22      0   100%
awscli/customizations/dynamodb/params.py                                   16      0   100%
awscli/customizations/dynamodb/parser.py                                  213      0   100%
awscli/customizations/dynamodb/subcommands.py                             178      0   100%
awscli/customizations/dynamodb/transform.py                                37      0   100%
awscli/customizations/dynamodb/types.py                                   161      0   100%
awscli/customizations/ec2/__init__.py                                       0      0   100%
awscli/customizations/ec2/addcount.py                                      50      3    94%
awscli/customizations/ec2/bundleinstance.py                                74      0   100%
awscli/customizations/ec2/decryptpassword.py                               68      7    90%
awscli/customizations/ec2/paginate.py                                      27      0   100%
awscli/customizations/ec2/protocolarg.py                                   15      0   100%
awscli/customizations/ec2/runinstances.py                                  75      4    95%
awscli/customizations/ec2/secgroupsimplify.py                             100     11    89%
awscli/customizations/ecr.py                                               20      0   100%
awscli/customizations/ecr_public.py                                        20      0   100%
awscli/customizations/ecs/__init__.py                                       8      0   100%
awscli/customizations/ecs/deploy.py                                       190     13    93%
awscli/customizations/ecs/exceptions.py                                    18      0   100%
awscli/customizations/ecs/executecommand.py                                49      0   100%
awscli/customizations/ecs/filehelpers.py                                   41      1    98%
awscli/customizations/eks/__init__.py                                       7      0   100%
awscli/customizations/eks/exceptions.py                                     2      0   100%
awscli/customizations/eks/get_token.py                                     66      0   100%
awscli/customizations/eks/kubeconfig.py                                   100      5    95%
awscli/customizations/eks/ordered_yaml.py                                  15      0   100%
awscli/customizations/eks/update_kubeconfig.py                             99      2    98%
awscli/customizations/emr/__init__.py                                       0      0   100%
awscli/customizations/emr/addinstancegroups.py                             27      0   100%
awscli/customizations/emr/addsteps.py                                      16      0   100%
awscli/customizations/emr/addtags.py                                       10      1    90%
awscli/customizations/emr/applicationutils.py                              68      4    94%
awscli/customizations/emr/argumentschema.py                                18      0   100%
awscli/customizations/emr/command.py                                       49      1    98%
awscli/customizations/emr/config.py                                        64      3    95%
awscli/customizations/emr/configutils.py                                   35      5    86%
awscli/customizations/emr/constants.py                                    140      0   100%
awscli/customizations/emr/createcluster.py                                240      4    98%
awscli/customizations/emr/createdefaultroles.py                           154     10    94%
awscli/customizations/emr/describecluster.py                               47      3    94%
awscli/customizations/emr/emr.py                                           35      0   100%
awscli/customizations/emr/emrfsutils.py                                   107      0   100%
awscli/customizations/emr/emrutils.py                                     144     14    90%
awscli/customizations/emr/exceptions.py                                    69      0   100%
awscli/customizations/emr/hbase.py                                         98      0   100%
awscli/customizations/emr/hbaseutils.py                                     7      0   100%
awscli/customizations/emr/helptext.py                                      52      0   100%
awscli/customizations/emr/installapplications.py                           25      0   100%
awscli/customizations/emr/instancefleetsutils.py                           29      0   100%
awscli/customizations/emr/instancegroupsutils.py                           50      0   100%
awscli/customizations/emr/listclusters.py                                  45      4    91%
awscli/customizations/emr/modifyclusterattributes.py                       24      0   100%
awscli/customizations/emr/ssh.py                                           85     57    33%
awscli/customizations/emr/sshutils.py                                      41     11    73%
awscli/customizations/emr/steputils.py                                    111      0   100%
awscli/customizations/emr/terminateclusters.py                             11      0   100%
awscli/customizations/emrcontainers/__init__.py                             5      0   100%
awscli/customizations/emrcontainers/base36.py                              13      0   100%
awscli/customizations/emrcontainers/constants.py                            3      0   100%
awscli/customizations/emrcontainers/eks.py                                 14      8    43%
awscli/customizations/emrcontainers/iam.py                                  9      2    78%
awscli/customizations/emrcontainers/update_role_trust_policy.py            74      2    97%
awscli/customizations/exceptions.py                                         2      0   100%
awscli/customizations/flatten.py                                           84      3    96%
awscli/customizations/gamelift/__init__.py                                  7      0   100%
awscli/customizations/gamelift/getlog.py                                   19      0   100%
awscli/customizations/gamelift/uploadbuild.py                              73      7    90%
awscli/customizations/generatecliskeleton.py                              111      2    98%
awscli/customizations/globalargs.py                                        65      0   100%
awscli/customizations/history/__init__.py                                  55      0   100%
awscli/customizations/history/commands.py                                  37      1    97%
awscli/customizations/history/constants.py                                  3      0   100%
awscli/customizations/history/db.py                                       152     13    91%
awscli/customizations/history/filters.py                                   14      0   100%
awscli/customizations/history/list.py                                      60      0   100%
awscli/customizations/history/show.py                                     167      3    98%
awscli/customizations/iamvirtmfa.py                                        34      0   100%
awscli/customizations/iot.py                                                9      0   100%
awscli/customizations/iot_data.py                                           7      0   100%
awscli/customizations/kms.py                                                4      0   100%
awscli/customizations/lightsail/__init__.py                                 5      0   100%
awscli/customizations/lightsail/helptext.py                                 3      0   100%
awscli/customizations/lightsail/push_container_image.py                    62      9    85%
awscli/customizations/logs/__init__.py                                      5      0   100%
awscli/customizations/logs/tail.py                                        148      2    99%
awscli/customizations/opsworks.py                                         238      5    98%
awscli/customizations/opsworkscm.py                                         5      0   100%
awscli/customizations/paginate.py                                         147      3    98%
awscli/customizations/putmetricdata.py                                     63      0   100%
awscli/customizations/rds.py                                               37      0   100%
awscli/customizations/rekognition.py                                       45      1    98%
awscli/customizations/removals.py                                          25      2    92%
awscli/customizations/route53.py                                            5      0   100%
awscli/customizations/s3/__init__.py                                        0      0   100%
awscli/customizations/s3/comparator.py                                     64      1    98%
awscli/customizations/s3/constants.py                                       2      0   100%
awscli/customizations/s3/factory.py                                        79      0   100%
awscli/customizations/s3/fileformat.py                                     32      0   100%
awscli/customizations/s3/filegenerator.py                                 185      2    99%
awscli/customizations/s3/fileinfo.py                                       33      0   100%
awscli/customizations/s3/fileinfobuilder.py                                32      0   100%
awscli/customizations/s3/filters.py                                        72      1    99%
awscli/customizations/s3/results.py                                       290      4    99%
awscli/customizations/s3/s3.py                                             20      0   100%
awscli/customizations/s3/s3handler.py                                     262      6    98%
awscli/customizations/s3/subcommands.py                                   506     14    97%
awscli/customizations/s3/subscribers.py                                   204      3    99%
awscli/customizations/s3/syncstrategy/__init__.py                           0      0   100%
awscli/customizations/s3/syncstrategy/base.py                              81      0   100%
awscli/customizations/s3/syncstrategy/delete.py                            10      0   100%
awscli/customizations/s3/syncstrategy/exacttimestamps.py                   14      0   100%
awscli/customizations/s3/syncstrategy/register.py                          10      0   100%
awscli/customizations/s3/syncstrategy/sizeonly.py                          12      0   100%
awscli/customizations/s3/transferconfig.py                                 70      1    99%
awscli/customizations/s3/utils.py                                         303      3    99%
awscli/customizations/s3errormsg.py                                        26      0   100%
awscli/customizations/s3events.py                                          39      2    95%
awscli/customizations/s3uploader.py                                       103      5    95%
awscli/customizations/servicecatalog/__init__.py                            5      0   100%
awscli/customizations/servicecatalog/exceptions.py                          9      0   100%
awscli/customizations/servicecatalog/generate.py                           11      0   100%
awscli/customizations/servicecatalog/generatebase.py                       22      0   100%
awscli/customizations/servicecatalog/generateproduct.py                    37      0   100%
awscli/customizations/servicecatalog/generateprovisioningartifact.py       21      0   100%
awscli/customizations/servicecatalog/helptext.py                           17      0   100%
awscli/customizations/servicecatalog/utils.py                              11      0   100%
awscli/customizations/sessendemail.py                                      49      0   100%
awscli/customizations/sessionmanager.py                                    34      0   100%
awscli/customizations/sso/__init__.py                                      19      0   100%
awscli/customizations/sso/login.py                                         28      0   100%
awscli/customizations/sso/logout.py                                        56      1    98%
awscli/customizations/sso/utils.py                                         42      2    95%
awscli/customizations/streamingoutputarg.py                                58      1    98%
awscli/customizations/timestampformat.py                                   23      0   100%
awscli/customizations/toplevelbool.py                                      56      0   100%
awscli/customizations/translate.py                                         30      2    93%
awscli/customizations/utils.py                                            127      0   100%
awscli/customizations/waiters.py                                          119      3    97%
awscli/customizations/wizard/__init__.py                                    0      0   100%
awscli/customizations/wizard/app.py                                       229      3    99%
awscli/customizations/wizard/commands.py                                   73      9    88%
awscli/customizations/wizard/core.py                                      348      6    98%
awscli/customizations/wizard/devcommands.py                                35      6    83%
awscli/customizations/wizard/exceptions.py                                 18      0   100%
awscli/customizations/wizard/factory.py                                    23      0   100%
awscli/customizations/wizard/loader.py                                     29     10    66%
awscli/customizations/wizard/ui/__init__.py                                38     11    71%
awscli/customizations/wizard/ui/keybindings.py                             75      5    93%
awscli/customizations/wizard/ui/layout.py                                 184      0   100%
awscli/customizations/wizard/ui/prompt.py                                 114      0   100%
awscli/customizations/wizard/ui/section.py                                 43      0   100%
awscli/customizations/wizard/ui/selectmenu.py                             142     42    70%
awscli/customizations/wizard/ui/style.py                                    8      0   100%
awscli/customizations/wizard/ui/utils.py                                   32      0   100%
awscli/errorhandler.py                                                     90      1    99%
awscli/formatter.py                                                       212      8    96%
awscli/handlers.py                                                        151      0   100%
awscli/help.py                                                            199      7    96%
awscli/logger.py                                                           26      0   100%
awscli/paramfile.py                                                        41      0   100%
awscli/plugin.py                                                           37      0   100%
awscli/schema.py                                                           73      0   100%
awscli/shorthand.py                                                       266      1    99%
awscli/table.py                                                           264     13    95%
awscli/text.py                                                             68      0   100%
awscli/topictags.py                                                       102      0   100%
awscli/utils.py                                                           295     18    94%
-------------------------------------------------------------------------------------------
TOTAL                                                                   21204   1080    95%
----------------------------------------------------------------------
Ran 28260 tests in 348.479s

FAILED (SKIP=3, failures=4)
Traceback (most recent call last):
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/scripts/ci/run-tests", line 19, in <module>
    run('nosetests --with-coverage --cover-erase --cover-package awscli '
  File "/private/var/folders/1s/gpt7p1x559sb7qjb_4bhq7zc75yv8y/T/nix-build-awscli2-2.2.30.drv-0/source/scripts/ci/run-tests", line 16, in run
    return check_call(command, shell=True)
  File "/nix/store/amn854jw94m1cph654w91pfyvz5r5a6h-python3-3.9.6/lib/python3.9/subprocess.py", line 373, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'nosetests --with-coverage --cover-erase --cover-package awscli --traverse-namespace --with-xunit --cover-xml unit/ functional/' returned non-zero exit status 1.
builder for '/nix/store/jnzww6kqxrcbaxnbia720422ivicjjkw-awscli2-2.2.30.drv' failed with exit code 1
error: build of '/nix/store/jnzww6kqxrcbaxnbia720422ivicjjkw-awscli2-2.2.30.drv' failed

Notify maintainers
@bhipple @davegallant  @pawbur
Metadata
 - system: `"x86_64-darwin"`
 - host os: `Darwin 20.4.0, macOS 10.16`
 - multi-user?: `no`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.3.6`
 - channels(abutler): `"home-manager, nixpkgs-21.11pre312229.08ef0f28e3a"`
 - nixpkgs: `/Users/abutler/.nix-defexpr/channels/nixpkgs`

Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute:
  - awscli2
# a list of nixos modules affected by the problem
module:

I don't have Darwin setup locally to test but I've used github actions with macos runner and all tests seem to pass:
https://github.com/pawbur/nixpkgs-awscli2/runs/3475414472?check_suite_focus=true

I'm unable to repro this on a mac using what is currently in master.
Interestingly this error has been mentioned before.

Running all tests in test_sync_command.py passes, broadening that to all tests in functional/s3 repros the failure. Wondering now if it's some previous test not doing proper teardown.

Alright, got it passing on my machine with two tweaks:

Set num_threads to 1 (disable multithreading) in awscrt: https://github.com/awslabs/aws-crt-python/blob/df54d9529a2b645efaab865b02ee4c6b9faddd71/awscrt/io.py#L68
In awscli2 checkPhase:export TMPDIR="/tmp"
export HOME="$TMPDIR"

@austinbutler did you do 1 by patching the default value from None to 1?

awscli2 has been failing to build on nixpkgs-21.05-darwin as well.
Is this caused by the same issue as one in nixpkgs-unstable?
https://hydra.nixos.org/build/152940542

@austinbutler did you do 1 by patching the default value from None to 1?

Yes.

@vroad from home-manager switch, got awscli2 among installed packages. I'll try using different installation method.

We've been seeing this error as well.

Isn't this something that needs to be reported to upstream (awscli repo)? I don't know why tests are failing without patch though.
I would disable checkPhase with overlay until the problem get fixed in nixpkgs...
{
  nixpkgs.overlays = [
    (self: super: {
      awscli2 = super.awscli2.overrideAttrs (oldAttrs: {
        doCheck = false;
      });
    })
  ];
}

This is the full output of nix-env -iA nixos.awscli2 on an older version of the unstable channel: https://gist.github.com/cptMikky/fbea4287747057f4c10a1c9237d0a559
With the latest channel (nixos-21.11pre318500.51bcdc4cdaa) the build comes through successfully!

@vroad not sure if the issue is related to macOS version or not, but good to know it works for you on Catalina. For me on Big Sur (11.6) it doesn't build (tests don't pass).

The problematic tests were removed in https://github.com/NixOS/nixpkgs/pull/143689, so closing this.

authors: austinbutler chrisportela cptMikky davegallant pawbur shepting vroad


text:
metasploit no longer builds on unstable

Describe the bug
Metasploit no longer builds when pulled from unstable branch.
Steps To Reproduce
Steps to reproduce the behavior:
nix run nixpkgs/nixos-unstable#metasploit
Additional context
The commit https://github.com/NixOS/nixpkgs/commit/ee79ba102299e06b0b3d2cde443c85282a6a8588 seems to be the point at which it stops building.
Example of failing build
This fails for me:
nix run nixpkgs/ee79ba102299e06b0b3d2cde443c85282a6a8588#metasploit
This runs as expected:
nix run nixpkgs/c0e1f01e435e69be409a98d92934a51495ceb2c4#metasploit
Notify maintainers
@makefu
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.10.61, NixOS, 21.05.20210902.6bfe71f (Okapi)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.4pre20210802_47e96bb`
 - channels(root): `""`
 - nixpkgs: `/etc/nixpkgs`

Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute:
    metasploit
# a list of nixos modules affected by the problem
module:

Looks like that nokogiri is causing trouble again.

Can confirm I am hitting this bug.

source: gharchive/issue

authors: RaitoBezarius buckley310 fabaff

repo: NixOS/nixpkgs

license: MIT

license_type: permissive

license_source: github-api


text:
Use the correct JAVA_HOME value

We create a weird symlink ($out/lib/src.zip) in the jdk package.  I guess that symlink is only needed if $JAVA_HOME is set to $pkgs.jdk rather than the correct $pkgs.jdk.home or $pkgs.jdk/lib/openjdk.
grep JAVA_HOME -r shows many JAVA_HOME variables in the nixpkgs repository are incorrectly set to $pkgs.jdk.  Should we change these variables to $pkgs.jdk.home and delete $out/lib/src.zip from jdk package?
References:

What is correct location of src.zip file in JDK?
#95081 openjdk11: add src.zip for IDEs
#140257 openjdk17: init at 17.0.1+12

If https://github.com/NixOS/nixpkgs/issues/23557 was fixed, we could simply change all --set JAVA_HOMEs to --set JAVA_HOME "$JAVA_HOME".