-
Notifications
You must be signed in to change notification settings - Fork 944
Polish new Firestore GA jobs #7568
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
|
Size Report 1Affected ProductsNo changes between base commit (4decdf6) and merge commit (e9ddf0d).Test Logs |
Size Analysis Report 1Affected ProductsNo changes between base commit (4decdf6) and merge commit (e9ddf0d).Test Logs |
e8ba3c2
to
849a4e3
Compare
849a4e3
to
7535ea9
Compare
5749dce
to
c4e2574
Compare
c4e2574
to
c5e40fb
Compare
d9e5dc3
to
30c7d46
Compare
30c7d46
to
c94ff86
Compare
fbd28b7
to
13b4b9d
Compare
799923c
to
fd3a86c
Compare
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.
Some drive-by comments
run: yarn build:changed firestore | egrep "Skipping all" | ||
run: | | ||
set -o pipefail | ||
yarn build:changed firestore | tee ${{ runner.temp }}/yarn.log.txt |
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 recommend adding 2>&1
so that stdout and stderr have their lines in the correct relative order.
i.e.
yarn build:changed firestore 2>&1 | ...
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.
Apparently this does not work with yarn build:changed
for reasons I don't want to find out.
run: | | ||
set -o pipefail | ||
yarn build:changed firestore | tee ${{ runner.temp }}/yarn.log.txt | ||
continue-on-error: false |
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.
Is continue-on-error: false
required? Isn't false the default?
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.
No required, but I feel safer to keep it there.
# Continue when "Skipping all" is not found | ||
continue-on-error: true | ||
- name: set output | ||
# This means "Skipping all" was not found | ||
if: steps.build.outcome != 'success' | ||
if: steps.check-changed.outcome != 'success' |
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 don't really like that failure of the egrep
command is conflated with the absence of "skipping all" from the output. Is there a more robust way to test for skipping the tests that you can think of?
Update: What about something like this:
skip_count=$(grep --count "Skipping all" test.txt)
echo "skip_count=$skip_count" >> "$GITHUB_OUTPUT"
Then later on you can do something like this:
if: steps.check-changed.outputs.skip_count == 0
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 think it's more worthwhile to change the script give more explicit result than doing grepping at all...not today though..i had enough github actions work recently.
Improvements:
As a result, the new check-required-tests should be marked as "required", it works correctly when