-
Notifications
You must be signed in to change notification settings - Fork 4
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
[SDTEST-528] Add pull_request extra tags for GitHub Actions #238
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #238 +/- ##
=======================================
Coverage 98.95% 98.95%
=======================================
Files 273 273
Lines 13381 13402 +21
Branches 601 604 +3
=======================================
+ Hits 13241 13262 +21
Misses 140 140
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@@ -967,7 +967,7 @@ def rspec_skipped_session_run | |||
let(:integration_options) { {service_name: "lspec"} } | |||
end | |||
|
|||
it "retries test until it passes" do | |||
it "does not report the test that failed when RSpec was quitting" do |
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.
This change is not relevant to this PR's topic, I just noticed that one of the specs was copy-pasted without changing description
@@ -710,5 +710,70 @@ | |||
"git.commit.sha": "b9f0fb3fdbb94c9d24b2c75b49663122a529e123", | |||
"git.repository_url": "https://1.1.1.1:1234/ghactions-repo.git" | |||
} | |||
], | |||
[ |
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.
here are the actual test cases:
- happy path
- case where events file is not found
What does this PR do?
Adds extra tags with Git metadata for Github Actions workflows that are triggered with pull_request event.
Motivation
In GHA pull_request workflows HEAD does not point to the last commit in the PR, but to a commit that is the result of merging PR branch with the target branch.
Datadog backend needs additional information in this case to correctly determine the latest commit in the PR branch.
How to test the change?
Unit tests are provided