Repository navigation
fix(cli): keep a GitLab subgroup project's full path in the report - #266
Merged
adityankale190895 merged 1 commit intoNov 18, 2026
Merged
Conversation
observe kept only the first two segments of CI_PROJECT_PATH, so group/sub/project was reported as group/sub. Fixes DiffCI#265 Signed-off-by: FredApps <[email protected]>
Contributor
Author
|
Cross-review (FredApps, head 8542d86). Not an approval. Checked
Fixed: nothing needed. Open
|
adityankale190895
marked this pull request as ready for review
November 18, 2026 05:44
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Needs maintainer: confirm that the observation ingest server accepts a
repository.ownerNamewith more than two segments (group/sub/project). If it validatesowner/namestrictly, it needs to accept the GitLab subgroup form first, or those reports would be rejected. I could not check this from the repository.Fixes #265
Changed behavior
observenow reports the full repository path from the CI environment asrepository.ownerNamewhen it has at least two non-empty segments. A GitLab project in a subgroup (CI_PROJECT_PATH=group/sub/project) is reported asgroup/sub/projectinstead ofgroup/sub. Two-segment names (GitHub, top-level GitLab projects) are unchanged, and a value without a/is still omitted. TheObservationRepository.ownerNamedoc comment mentions the longer GitLab form.Note for reviewers: if the ingest server validates
ownerNameas exactlyowner/name, it needs to accept the longer GitLab path too. I could not check that from this repository.Validation
tests/client/observe.test.ts: observing withGITLAB_CI=trueandCI_PROJECT_PATH=group/sub/project. It fails on main (group/sub) and passes with this change.node --import tsx --test tests/client/observe.test.ts tests/client/context.test.ts: 37 passed.tsc --noEmit -p packages/diffci-cli: clean.