Skip to content
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

Add CI stage dependencies #1453

Merged
merged 2 commits into from
Jul 12, 2022
Merged

Add CI stage dependencies #1453

merged 2 commits into from
Jul 12, 2022

Conversation

helsaawy
Copy link
Contributor

Reorganize CI to run in stages, so lint and protobuild are dependencies
for vendoring, which in turn is required for testing then building.

This allows issues to be caught early on, and prevents long-running
test stages to run before lint or vendor issues fail CI.

Ran YML formatter on ci.yml file.

Added if condition to uploading test binary artifices for non PR
runs, to avoid unnecessary uploading and storage.

Signed-off-by: Hamza El-Saawy hamzaelsaawy@microsoft.com

@helsaawy helsaawy requested a review from a team as a code owner July 11, 2022 20:58
Reorganize CI to run in stages, so lint and protobuild are dependencies
for vendoring, which in turn is required for testing then building.

This allows issues to be caught early on, and prevents long-running
test stages to run before lint or vendor issues fail CI.

Ran YML formatter on ci.yml file.

Added `if` condition to uploading test binary artifices for non PR
runs, to avoid unnecessary uploading and storage.

Signed-off-by: Hamza El-Saawy <hamzaelsaawy@microsoft.com>
Github branch protection is confused by names, so remove them

Signed-off-by: Hamza El-Saawy <hamzaelsaawy@microsoft.com>

build:
runs-on: 'windows-2019'
needs: [test, integration-tests]
Copy link
Contributor

Choose a reason for hiding this comment

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

would we want this to be before the tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since the only thing this job does is publish artifacts, i figured they only be uploaded if tests pass
I am not sure what else this stage would get us, since if the binaries dont compile, the test jobs would fail as well

@helsaawy helsaawy merged commit 94f78da into microsoft:master Jul 12, 2022
@helsaawy helsaawy deleted the he/ci-order branch July 12, 2022 16:55
anmaxvl pushed a commit that referenced this pull request Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants