Skip to content

Conversation

@patrickhulce
Copy link
Collaborator

@patrickhulce patrickhulce commented Dec 9, 2020

Summary
None of our longer change-gated test suites have been running in GitHub Actions because we relied on $TRAVIS_COMMIT_RANGE. This is actually sort of a PITA to get from GitHub Actions so created a script that exports it to an env variable.

Aside: seems like there might be some overlap here with what the buildtracker git deepening script is doing?

Related Issues/PRs
ref #11767 (comment)

@patrickhulce patrickhulce requested a review from a team as a code owner December 9, 2020 21:55
@patrickhulce patrickhulce requested review from Beytoven and removed request for a team December 9, 2020 21:55
@google-cla google-cla bot added the cla: yes label Dec 9, 2020
@@ -0,0 +1,25 @@
#!/bin/bash

set -euo pipefail
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

seems like we've started putting some scripts in .github, preference for moving this there?

Copy link
Collaborator

Choose a reason for hiding this comment

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

yea

@@ -0,0 +1,25 @@
#!/bin/bash

set -euo pipefail
Copy link
Collaborator

Choose a reason for hiding this comment

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

yea

exit 1
fi

GITHUB_ACTIONS_COMMIT_RANGE="${BASE_SHA}..${GITHUB_SHA}"
Copy link
Collaborator

Choose a reason for hiding this comment

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

don't you need to export?

Copy link
Collaborator Author

@patrickhulce patrickhulce Dec 10, 2020

Choose a reason for hiding this comment

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

nope, that wouldn't pierce between github steps and what echo >> $GITHUB_ENV is doing, added a comment

@connorjclark
Copy link
Collaborator

connorjclark commented Dec 10, 2020

test: reenable change-related tests in github actions ?

@patrickhulce patrickhulce changed the title misc(ci): reenable change-related tests tests: reenable change-related tests in github actions Dec 10, 2020
@patrickhulce patrickhulce merged commit 5b2fe79 into master Dec 10, 2020
@patrickhulce patrickhulce deleted the remove_travis_env_vars branch December 10, 2020 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants