Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

conda builds failing to activate conda environment #22498

Closed
scbedd opened this issue Jan 13, 2022 · 2 comments · Fixed by #25191
Closed

conda builds failing to activate conda environment #22498

scbedd opened this issue Jan 13, 2022 · 2 comments · Fixed by #25191
Assignees
Labels
Central-EngSys This issue is owned by the Engineering System team.

Comments

@scbedd
Copy link
Member

scbedd commented Jan 13, 2022

Going to temporarily disable to investigate. Failure Example

Error looks like:

source /usr/share/miniconda/bin/activate azure-core
Traceback (most recent call last):
  File "/usr/share/miniconda/envs/azure-core/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/share/miniconda/envs/azure-core/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/usr/share/miniconda/envs/azure-core/lib/python3.9/site-packages/pytest/__main__.py", line 7, in <module>
    raise SystemExit(pytest.main())
  File "/usr/share/miniconda/envs/azure-core/lib/python3.9/site-packages/_pytest/config/__init__.py", line 105, in main
    config = _prepareconfig(args, plugins)
  File "/usr/share/miniconda/envs/azure-core/lib/python3.9/site-packages/_pytest/config/__init__.py", line 257, in _prepareconfig
    return pluginmanager.hook.pytest_cmdline_parse(
  File "/usr/share/miniconda/envs/azure-core/lib/python3.9/site-packages/pluggy/hooks.py", line 286, in __call__
    return self._hookexec(self, self.get_hookimpls(), kwargs)
  File "/usr/share/miniconda/envs/azure-core/lib/python3.9/site-packages/pluggy/manager.py", line 93, in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
  File "/usr/share/miniconda/envs/azure-core/lib/python3.9/site-packages/pluggy/manager.py", line 84, in <lambda>
    self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
  File "/usr/share/miniconda/envs/azure-core/lib/python3.9/site-packages/pluggy/callers.py", line 203, in _multicall
    gen.send(outcome)
  File "/usr/share/miniconda/envs/azure-core/lib/python3.9/site-packages/_pytest/helpconfig.py", line 90, in pytest_cmdline_parse
    config = outcome.get_result()
  File "/usr/share/miniconda/envs/azure-core/lib/python3.9/site-packages/pluggy/callers.py", line 80, in get_result
    raise ex[1].with_traceback(ex[2])
  File "/usr/share/miniconda/envs/azure-core/lib/python3.9/site-packages/pluggy/callers.py", line 187, in _multicall
    res = hook_impl.function(*args)
  File "/usr/share/miniconda/envs/azure-core/lib/python3.9/site-packages/_pytest/config/__init__.py", line 836, in pytest_cmdline_parse
    self.parse(args)
  File "/usr/share/miniconda/envs/azure-core/lib/python3.9/site-packages/_pytest/config/__init__.py", line 1044, in parse
    self._preparse(args, addopts=addopts)
  File "/usr/share/miniconda/envs/azure-core/lib/python3.9/site-packages/_pytest/config/__init__.py", line 992, in _preparse

Occurrences starting ~noon today.

image

This is an agent change. I haven't touched this process in a while.

Update 7/12/2022 Now it's also occurring with this PR

@scbedd scbedd added the Central-EngSys This issue is owned by the Engineering System team. label Jan 13, 2022
@scbedd scbedd self-assigned this Jan 13, 2022
scbedd added a commit to scbedd/azure-sdk-for-python that referenced this issue Jan 13, 2022
@zooba
Copy link
Member

zooba commented Jan 13, 2022

Looks like it's probably mismatched pytest_asyncio version:

<all the traceback above>
...
  File "/usr/share/miniconda/envs/azure-core/lib/python3.9/site-packages/pytest_asyncio/plugin.py", line 53, in pytest_addoption
    parser.addini(
  File "/usr/share/miniconda/envs/azure-core/lib/python3.9/site-packages/_pytest/config/argparsing.py", line 177, in addini
    assert type in (None, "pathlist", "args", "linelist", "bool")

@scbedd
Copy link
Member Author

scbedd commented Jan 13, 2022

Ahhh your point just clicked, I'll go at it from that angle. Thanks for the suggestion @zooba !

scbedd added a commit that referenced this issue Jan 13, 2022
iscai-msft added a commit to iscai-msft/azure-sdk-for-python that referenced this issue Jan 14, 2022
…into merge_patch

* 'main' of https://github.com/Azure/azure-sdk-for-python: (72 commits)
  [tool]update llc-quick-start-tool for py3 only (Azure#22507)
  [mgmt] update setupy for python3.6 (Azure#22505)
  [pipeline] Upgrade python version to `python3.8` (Azure#22503)
  [AutoRelease] t2-synapse-2022-01-11-70733 (Azure#22439)
  Update tests.md (Azure#22500)
  disable per Azure#22498 (Azure#22499)
  [AnomalyDetector] Release 3.0.0b4 (Azure#22191)
  [translation] update docs to include managed identity option (Azure#22366)
  add back py3.6 (Azure#22478)
  Add Python 3.6 support back to Storage packages (Azure#22483)
  allow Python 3.6 with the sdk (Azure#22456)
  remove hardcoded subscription ID (Azure#22481)
  clean up tests/docs (Azure#22480)
  Increment version for eventhub releases (Azure#22485)
  [Cosmos] Remove support for Python27, set Python36 as minimum, and update cosmos emulator pipeline (Azure#22475)
  Increment version for servicebus releases (Azure#22484)
  add back py3.6 (Azure#22477)
  [AutoRelease] t2-datafactory-2022-01-06-31864 (Azure#22362)
  [AutoRelease] t2-apimanagement-2022-01-06-51326 (Azure#22361)
  [AutoRelease] t2-netapp-2022-01-12-75881 (Azure#22467)
  ...
iscai-msft added a commit to iscai-msft/azure-sdk-for-python that referenced this issue Jan 18, 2022
…into add_back_error_message

* 'main' of https://github.com/Azure/azure-sdk-for-python: (127 commits)
  [tool]update llc-quick-start-tool for py3 only (Azure#22507)
  [mgmt] update setupy for python3.6 (Azure#22505)
  [pipeline] Upgrade python version to `python3.8` (Azure#22503)
  [AutoRelease] t2-synapse-2022-01-11-70733 (Azure#22439)
  Update tests.md (Azure#22500)
  disable per Azure#22498 (Azure#22499)
  [AnomalyDetector] Release 3.0.0b4 (Azure#22191)
  [translation] update docs to include managed identity option (Azure#22366)
  add back py3.6 (Azure#22478)
  Add Python 3.6 support back to Storage packages (Azure#22483)
  allow Python 3.6 with the sdk (Azure#22456)
  remove hardcoded subscription ID (Azure#22481)
  clean up tests/docs (Azure#22480)
  Increment version for eventhub releases (Azure#22485)
  [Cosmos] Remove support for Python27, set Python36 as minimum, and update cosmos emulator pipeline (Azure#22475)
  Increment version for servicebus releases (Azure#22484)
  add back py3.6 (Azure#22477)
  [AutoRelease] t2-datafactory-2022-01-06-31864 (Azure#22362)
  [AutoRelease] t2-apimanagement-2022-01-06-51326 (Azure#22361)
  [AutoRelease] t2-netapp-2022-01-12-75881 (Azure#22467)
  ...
rakshith91 pushed a commit to rakshith91/azure-sdk-for-python that referenced this issue Apr 10, 2022
This was referenced Jul 12, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Apr 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Central-EngSys This issue is owned by the Engineering System team.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants