Error in `azdev setup` - `No such file or directory: '_NONE_/scripts/ci/cmdcov.yml'`
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 32/100
Research direction
Start by reproducing azdev setup after installing the latest package against an external extension, then read azdev.operations.regex at the get_cli_repo_path() lookup shown in the traceback. Compare the behavior with version 0.1.48 and verify that setup no longer tries to open the missing scripts/ci/cmdcov.yml path for external extensions.
Written by the indexing model from the issue text.
Description
@bobjac and I are extension authors for an "external" extension that resides in its own repository, e.g. https://github.com/Azure/partnercenter-cli-extension
Since June 16, our CI is failing with the following error when calling azdev setup, regardless of args.
[Errno 2] No such file or directory: '_NONE_/scripts/ci/cmdcov.yml'
Traceback (most recent call last):
File "/Users/kehilli/Workspace/github.com/partner-center-cli/env/lib/python3.11/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/kehilli/Workspace/github.com/partner-center-cli/env/lib/python3.11/site-packages/knack/invocation.py", line 134, in execute
self.commands_loader.load_arguments(command)
File "/Users/kehilli/Workspace/github.com/partner-center-cli/env/lib/python3.11/site-packages/azdev/__main__.py", line 30, in load_arguments
from azdev.params import load_arguments
File "/Users/kehilli/Workspace/github.com/partner-center-cli/env/lib/python3.11/site-packages/azdev/params.py", line 13, in <module>
from azdev.operations.linter import linter_severity_choices
File "/Users/kehilli/Workspace/github.com/partner-center-cli/env/lib/python3.11/site-packages/azdev/operations/linter/__init__.py", line 21, in <module>
from .linter import LinterManager, LinterScope, RuleError, LinterSeverity
File "/Users/kehilli/Workspace/github.com/partner-center-cli/env/lib/python3.11/site-packages/azdev/operations/linter/linter.py", line 17, in <module>
from azdev.operations.regex import (
File "/Users/kehilli/Workspace/github.com/partner-center-cli/env/lib/python3.11/site-packages/azdev/operations/regex.py", line 19, in <module>
with open(os.path.join(get_cli_repo_path(), 'scripts', 'ci', 'cmdcov.yml'), 'r') as file:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '_NONE_/scripts/ci/cmdcov.yml'
This happens locally as well after pip install azdev, which installs the latest version of azdev package.
We've tested back to version 0.1.48 and that version works.
- Dominant language
- Python
- Stars
- 91
- Forks
- 134
- Avg merge
- 2h 51m
- Merged PRs (30d)
- 1
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Azure/azure-cli-dev-tools
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
Azure/azure-cli-dev-tools#310 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
Azure/azure-cli-dev-tools#529 ·
-
Check random default into metadata change whitelist.txtMay be free again @AllyW claimed this 508 days ago, and no pull request is open. Open
Azure/azure-cli-dev-tools#525 · 1 assignee ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
Azure/azure-cli-dev-tools#520 ·
-
`azdev extension remove` does not clear its corresponding source code path in `sys.path` when its package name is not its folder nameMay be free again @AllyW claimed this 545 days ago, and no pull request is open. Open
Azure/azure-cli-dev-tools#519 · 1 comment · 1 reaction · 1 assignee ·
All issues in Azure/azure-cli-dev-tools
Similar issues
-
correction metadata
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
acl-org/acl-anthology#10104 · 1 comment ·
Maintainers usually reply within 1 day
-
bug status/needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
prowler-cloud/prowler#12885 · 1 comment ·
Maintainers usually reply within 1 day
-
Bug in GaussianTailProbabilityCalibrator: running_statistics=False still uses a windowed varianceOpenbug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
selimfirat/pysad#107 ·
Maintainers usually reply within 1 day
-
bug ci-failure high priority
Difficulty 1/5 Under an hour Newbie friendliness 88/100
vllm-project/vllm-omni#8194 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day