Skip to content

Add CI stage dependencies#1453

Merged
helsaawy merged 2 commits intomicrosoft:masterfrom
helsaawy:he/ci-order
Jul 12, 2022
Merged

Add CI stage dependencies#1453
helsaawy merged 2 commits intomicrosoft:masterfrom
helsaawy:he/ci-order

Conversation

@helsaawy
Copy link
Copy Markdown
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 [email protected]

@helsaawy helsaawy requested a review from a team as a code owner July 11, 2022 20:58
helsaawy added 2 commits July 11, 2022 16:59
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 <[email protected]>
Github branch protection is confused by names, so remove them

Signed-off-by: Hamza El-Saawy <[email protected]>
Comment thread .github/workflows/ci.yml

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

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
Copy Markdown
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