Skip to content

Add presubmit trigger with ccache in linux firestore #626

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

Merged
merged 32 commits into from
Sep 16, 2021

Conversation

sunmou99
Copy link
Contributor

@sunmou99 sunmou99 commented Sep 3, 2021

Combined "check_trigger" job and "prepare_matrix" job into "check_and_prepare" job.
Added "trigger" env variable. Apply "expanded_matrix, minimal_matrix, auto_diff" with different triggers accordingly.
Removed "auto_diff" from manual trigger, because the logic doesn't work. (Always override by inputs.)
Add presubmit(push) trigger, which run linux firestore with ccache.
presubmit check: without ccache 35 mins vs with ccache 18 mins
To understand different triggers.

TODO: Will add branch_protection_rules "build-desktop-ubuntu-latest-openssl" and "test-desktop-ubuntu-latest-openssl" after this PR get merged.
Will have a cache system which enable ccache in more cases.

@sunmou99 sunmou99 added the tests-requested: quick Trigger a quick set of integration tests. label Sep 3, 2021
@google-cla google-cla bot added the cla: yes label Sep 3, 2021
@github-actions github-actions bot added tests: in-progress This PR's integration tests are in progress. and removed tests-requested: quick Trigger a quick set of integration tests. labels Sep 3, 2021
@github-actions
Copy link

github-actions bot commented Sep 3, 2021

❌  Integration test FAILED

Requested by @sunmou99 on commit 708ec9c
Last updated: Thu Sep 16 18:47 PDT 2021
View integration test log & download artifacts

Failures Configs
messaging [TEST] [ERROR] [Android] [All os] [android_target]

Add flaky tests to go/fpl-cpp-flake-tracker

@github-actions github-actions bot added the tests: failed This PR's integration tests failed. label Sep 3, 2021
@firebase-workflow-trigger firebase-workflow-trigger bot removed the tests: in-progress This PR's integration tests are in progress. label Sep 3, 2021
@sunmou99 sunmou99 changed the title Feature/linux ccache Add push trigger and ccache to linux firestore build Sep 15, 2021
@github-actions github-actions bot added the tests: failed This PR's integration tests failed. label Sep 15, 2021
@sunmou99 sunmou99 changed the title Add push trigger and ccache to linux firestore build Add presubmit trigger and ccache to linux firestore build Sep 15, 2021
@sunmou99 sunmou99 changed the title Add presubmit trigger and ccache to linux firestore build Add presubmit trigger with ccache in linux firestore Sep 15, 2021
@sunmou99 sunmou99 marked this pull request as ready for review September 15, 2021 06:26
@firebase-workflow-trigger firebase-workflow-trigger bot removed the tests: in-progress This PR's integration tests are in progress. label Sep 15, 2021
@sunmou99 sunmou99 added the tests-requested: full Trigger a FULL set of integration tests (uses expanded test matrix). label Sep 15, 2021
@github-actions github-actions bot added tests: in-progress This PR's integration tests are in progress. tests: failed This PR's integration tests failed. and removed tests-requested: full Trigger a FULL set of integration tests (uses expanded test matrix). tests: failed This PR's integration tests failed. labels Sep 15, 2021
@firebase-workflow-trigger firebase-workflow-trigger bot removed the tests: in-progress This PR's integration tests are in progress. label Sep 15, 2021
@sunmou99 sunmou99 added the tests-requested: quick Trigger a quick set of integration tests. label Sep 15, 2021
@github-actions github-actions bot added tests: in-progress This PR's integration tests are in progress. tests: failed This PR's integration tests failed. and removed tests-requested: quick Trigger a quick set of integration tests. tests: failed This PR's integration tests failed. labels Sep 15, 2021
@firebase-workflow-trigger firebase-workflow-trigger bot removed the tests: in-progress This PR's integration tests are in progress. label Sep 15, 2021
Copy link
Contributor

@jonsimantov jonsimantov left a comment

Choose a reason for hiding this comment

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

This seems mostly good, just a couple quick questions.

echo "::set-output name=github_ref::refs/pull/${{github.event.inputs.test_pull_request}}/merge"
echo "::set-output name=pr_number::${{ github.event.inputs.test_pull_request }}"
fi
elif [[ "${{ github.event.inputs.test_pull_request }}" == "sdk" ]]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

Remind me, did this value already exist? Why does it need to be set if we have the test_packaged_sdk input?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This value already exist. https://github.com/firebase/firebase-cpp-sdk/blob/main/.github/workflows/cpp-packaging.yml#L725
Because it means it's from scheduled packaging workflow, thus it can generate nightly report. test_packaged_sdk only indicates that it's from packaging workflow.

Copy link
Contributor

Choose a reason for hiding this comment

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

Got it. Maybe we should change it to "nightly-packaging" or something a little more descriptive in the future. But it's fine for now.

@sunmou99 sunmou99 removed the tests: failed This PR's integration tests failed. label Sep 16, 2021
@sunmou99 sunmou99 enabled auto-merge (squash) September 16, 2021 22:24
@sunmou99 sunmou99 merged commit 708ec9c into main Sep 16, 2021
@github-actions github-actions bot added the tests: in-progress This PR's integration tests are in progress. label Sep 16, 2021
@sunmou99 sunmou99 deleted the feature/linux-ccache branch September 17, 2021 00:14
@github-actions github-actions bot added the tests: failed This PR's integration tests failed. label Sep 17, 2021
@firebase-workflow-trigger firebase-workflow-trigger bot removed the tests: in-progress This PR's integration tests are in progress. label Sep 17, 2021
@firebase firebase locked and limited conversation to collaborators Oct 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes skip-release-notes Skip release notes check tests: failed This PR's integration tests failed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants