-
Notifications
You must be signed in to change notification settings - Fork 627
Configure CI presubmits with Github Actions. #3856
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
This reverts commit 181891f.
Coverage Report 1Affected Products
Test Logs
Notes |
Size Report 1Affected ProductsNo changes between base commit (63f112f) and merge commit (029de58).Test Logs
Notes |
While some tests are failing, they are not related to any missing configuration in CI, I will ping individual teams for help on those tests. |
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.
Looks good to me.
Nits
- Complaints of no new line at EOF in several files
- Mix usage of single and double quotes in a few files
FYIs
- Other tests (smoke, metrics) will also need steps for setting up jdk and ndk. I can create a composite action to simplify them a bit.
- Other platforms does similar things like detecting changed SDKs before testing. I'll try to see if it can be abstracted as a reusable action.
- '*' | ||
push: | ||
branches: | ||
- 'master' |
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 it intended to support only the master
branch?
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.
Yes, as we don't want to run post submits on all branches
integ_tests: | ||
name: "Instrumentation Tests" | ||
# only run on post submit or PRs not originating from forks. | ||
if: (github.repository == 'Firebase/firebase-android-sdk' && github.event_name == 'push') || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) |
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.
Why do we need github.repository == 'Firebase/firebase-android-sdk'
?
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 check ensures that secrets are available, which is not the case when PRs originate from forks.
So effectively integ tests will only run on "trusted" PRs as well as on post submit on master.
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.
My question was not clear enough. Is there a case where for push events that may trigger this workflow, github.repository
is not Firebase/firebase-android-sdk
? I thought only for pull request event do we need to detect the repo.
@vkryachko: The following tests failed, say
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
No description provided.