Add tests for repository-level instrumentation#3025
Merged
Conversation
Co-authored-by: plengauer <100447901+plengauer@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add smoke tests for repository level instrumentation
Add tests for repository-level instrumentation
Feb 28, 2026
Co-authored-by: plengauer <100447901+plengauer@users.noreply.github.com>
Contributor
Author
Done in 04606d2. The single |
plengauer
approved these changes
Feb 28, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Adds GitHub Actions smoke coverage for repository-level instrumentation (previously untested), aligning it with existing workflow/checksuite smoke coverage in this repo’s CI.
Changes:
- Adds a
repository-smokejob that runs./actions/instrument/repositoryunder the ambientworkflow_callcontext to exercise the always-executed path. - Adds per-event jobs (all
needs: repository-smoke) that run the repository action with minimal staticevent_bodyJSON to hit key branches inactions/instrument/repository/main.sh.
moflwi
approved these changes
Mar 3, 2026
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.
No test coverage existed for
actions/instrument/repository— unlike workflow and checksuite instrumentation which already had smoke tests intest_github.yml.Changes
repository-smokejob: Runs the repository action with the ambientworkflow_callevent context, validating the always-executed path (dependency install, resource attributes, contributor count metric).Individual event jobs (each
needs: repository-smoke): One job per event type, each passing a minimal staticevent_bodyJSON to exercise the corresponding branch inmain.sh:event_nameevent_actionrepository-pull-request-openedpull_requestopenedvcs.change.count+1repository-pull-request-closedpull_requestclosedvcs.change.durationrepository-pull-request-mergedpull_requestclosedvcs.change.time_to_mergerepository-pull-request-reopenedpull_requestreopenedrepository-pull-request-review-submittedpull_request_reviewsubmittedvcs.change.time_to_approval(approved)repository-createcreatevcs.ref.count+1repository-deletedeletevcs.ref.count-1repository-pushpushbase_ref(no GitHub API comparison call)All jobs use console exporters +
OTEL_SHELL_SDK_OUTPUT_REDIRECT: /dev/null; no output assertions, consistent with the checksuite-smoke pattern.Original prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.