Skip to content
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

Update ABI Diff Action to work correctly on push events #2188

Merged
merged 1 commit into from
Feb 26, 2025

Conversation

skmcgrail
Copy link
Member

@skmcgrail skmcgrail commented Feb 11, 2025

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.03%. Comparing base (028cd9f) to head (da24a7c).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2188      +/-   ##
==========================================
- Coverage   79.04%   79.03%   -0.01%     
==========================================
  Files         612      612              
  Lines      106064   106064              
  Branches    14994    14995       +1     
==========================================
- Hits        83833    83825       -8     
- Misses      21579    21587       +8     
  Partials      652      652              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@skmcgrail skmcgrail changed the title [do not merge] ABI Diff Testing Update ABI Diff Action to work correctly on push events Feb 12, 2025
@skmcgrail skmcgrail marked this pull request as ready for review February 12, 2025 00:47
@skmcgrail skmcgrail requested a review from a team as a code owner February 12, 2025 00:47
Copy link
Contributor

@smittals2 smittals2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine but in the context of AWS-LC, what is considered a push event?

We usually merge stuff in through PR's right (which I guess the second part of these statements covers?)

@@ -19,12 +19,12 @@ jobs:
- uses: actions/checkout@v3
with:
repository: aws/aws-lc
ref: ${{ github.ref }}
ref: ${{ github.event_name == 'push' && github.event.ref || github.event.pull_request.head.sha }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NP: Are parenthesis needed here and below?

ref: ${{ (github.event_name == 'push' && github.event.ref) || github.event.pull_request.head.sha }}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GitHub doesn't seem to outright state precedence order for evaluation, but it appears to be left-to-right. See the example here that is basically the same as the line I have: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/evaluate-expressions-in-workflows-and-actions#example

@skmcgrail skmcgrail merged commit ae03966 into aws:main Feb 26, 2025
113 of 120 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants