-
Notifications
You must be signed in to change notification settings - Fork 416
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '2.10' into backport-10460-to-2.10
- Loading branch information
Showing
3 changed files
with
25 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
...senotes/notes/ci_visibility-fix_properly_strip_dotgit_from_repo_url-523a908075aea559.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
fixes: | ||
- | | ||
CI Visibility: Fixes a bug where ``.git`` was incorrectly being stripped from repository URLs when extracting service names, | ||
resulting in ``g``, ``i``, or ``t`` being removed (eg: ``test-environment.git`` incorrectly becoming ``test-environmen``) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -311,6 +311,16 @@ def test_ci_visibility_service_disable(): | |
("git+git://github.com/org/repo-name.git", "repo-name"), | ||
("git+ssh://github.com/org/repo-name.git", "repo-name"), | ||
("git+https://github.com/org/repo-name.git", "repo-name"), | ||
("https://github.com/fastapi/fastapi.git", "fastapi"), | ||
("[email protected]:fastapi/fastapi.git", "fastapi"), | ||
("[email protected]:fastapi/fastapi.gitttttt", "fastapi.gitttttt"), | ||
("[email protected]:fastapi/fastapiiiititititi.git", "fastapiiiititititi"), | ||
("https://github.com/fastapi/fastapitttttt.git", "fastapitttttt"), | ||
("this is definitely not a valid git repo URL", "this is definitely not a valid git repo URL"), | ||
("[email protected]:fastapi/FastAPI.GiT", "FastAPI"), | ||
("git+https://github.com/org/REPO-NAME.GIT", "REPO-NAME"), | ||
("https://github.com/DataDog/DD-TRACE-py", "DD-TRACE-py"), | ||
("https://github.com/DataDog/dd-trace-py.GIT", "dd-trace-py"), | ||
], | ||
) | ||
def test_repository_name_extracted(repository_url, repository_name): | ||
|