-
Notifications
You must be signed in to change notification settings - Fork 75
Return additional build info on action rerun #1174
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
Conversation
specCount | ||
testCount | ||
changeCount | ||
errorCount: testCount(statuses: [BROKEN]) |
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.
I copied this from other implementations of this field, e.g., snapshot.ts
.
📦 Package Size: 5576 KB |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1174 +/- ##
=======================================
Coverage 70.00% 70.01%
=======================================
Files 202 202
Lines 7314 7316 +2
Branches 1299 1301 +2
=======================================
+ Hits 5120 5122 +2
Misses 2171 2171
Partials 23 23 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
LGTM! Just a couple questions but the main goal looks great!
notes on changeCount
dad964f
to
891a6cd
Compare
@codykaup, addressed your changes. I also reran the CLI manually and confirmed the new values are working as expected. |
🚀 PR was released in |
Description
This PR fixes an issue whereby reruns of the GitHub action, which a user might trigger after approving visual changes, would not provide updated values for things like
testCount
,changeCount
, etc. This was happening because we were only pulling these values from thectx.build
field, if it was defined. This PR updates that logic to pull fromctx.rebuildForBuild
ifctx.build
is undefined. I've also added the relevant fields to theLastBuildQuery
GQL query so we're pulling that information from the index.Manual testing
I've verified through the Apollo GQL dashboard that the fields I've added to
LastBuildQuery
work as expected. I also ran a build with the CLI locally and triggered theSkipping rebuild of an already fully passed/accepted build
, and confirmed that the relevant count values are being populated as expected.📦 Published PR as canary version:
11.28.2--canary.1174.14517169208.0
✨ Test out this PR locally via:
npm install chromatic@11.28.2--canary.1174.14517169208.0 # or yarn add chromatic@11.28.2--canary.1174.14517169208.0