-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Update endpoint pattern regex for long TLD #9456
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
base: main
Are you sure you want to change the base?
Update endpoint pattern regex for long TLD #9456
Conversation
2,5 was too limiting for evolving customer requirements (i.e. '.microsoft'). removing the upper bound for TLD length
️✔️Azure CLI Extensions Breaking Change Test
|
|
Hi @itsjayway, |
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
|
The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR. Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions). pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>
|
|
Hi @itsjayway
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR updates the endpoint pattern regex to support longer top-level domains (TLDs) by removing the upper bound restriction, and updates the Azure Footprint Monitoring Management API from version 2020-02-01-preview to 2024-09-16-preview.
Key Changes:
- Regex pattern update: Changed TLD length from
{2,5}to{2,}to support long TLDs like '.microsoft' - API version bump across all operation files from 2020-02-01-preview to 2024-09-16-preview
- Extension version bump from 1.0.0 to 1.0.1
Reviewed changes
Copilot reviewed 34 out of 93 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
src/footprint/setup.py |
Version bump to 1.0.1 |
src/footprint/azext_footprint/manual/version.py |
Version bump to 1.0.1 |
src/footprint/HISTORY.rst |
Added changelog entry for version 1.0.1 |
src/footprint/azext_footprint/vendored_sdks/footprint/models/_models.py |
Updated endpoint regex pattern from {2,5} to {2,} for TLD length |
| Operation files (sync/async) | Updated API version to 2024-09-16-preview across all operation modules |
| Client configuration files | Updated API version to 2024-09-16-preview |
src/footprint/azext_footprint/tests/latest/recordings/test_footprint.yaml |
Updated test recordings with new API version |
azdev_env/* |
Virtual environment files that should not be committed |
azdev_env/pyvenv.cfg
Outdated
| home = C:\Users\jibranab\AppData\Local\Programs\Python\Python312 | ||
| include-system-site-packages = false | ||
| version = 3.12.10 | ||
| executable = C:\Users\jibranab\AppData\Local\Programs\Python\Python312\python.exe | ||
| command = C:\Users\jibranab\AppData\Local\Programs\Python\Python312\python.exe -m venv C:\Users\jibranab\repos\fork-az-cli-ext\azdev_env |
Copilot
AI
Dec 5, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The entire azdev_env directory (a virtual environment) should not be included in version control. This directory contains user-specific paths and environment configurations that will not work for other developers.
Please add azdev_env/ to your .gitignore file and remove these files from the PR.
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
| 1.0.1 | ||
| ++++++ | ||
| * Relaxed the max_length on endpoint from {2,5} to {2,} to allow for longer endpoint names (long TLD). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the latest version should be on the top.
|
|
||
| # HISTORY.rst entry. | ||
| VERSION = '1.0.0' | ||
| VERSION = '1.0.1b1' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doesn't match the version in HISTORY.rst.
2,5 was too limiting for evolving customer requirements (i.e. '.microsoft'). removing the upper bound for TLD length
This checklist is used to make sure that common guidelines for a pull request are followed.
Related command
General Guidelines
azdev style <YOUR_EXT>locally? (pip install azdevrequired)python scripts/ci/test_index.py -qlocally? (pip install wheel==0.30.0required)About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update
src/index.jsonautomatically.You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify
src/index.json.