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

ci: Fix release build #74

Merged
merged 2 commits into from
Feb 5, 2024
Merged

ci: Fix release build #74

merged 2 commits into from
Feb 5, 2024

Conversation

stepansergeevitch
Copy link
Collaborator

A couple of improvements to release action

  • Attemt to fix the build by synchronizing build step with how it's done in other actions
  • Moved tag pushing to the end of the action

@stepansergeevitch stepansergeevitch requested a review from a team as a code owner February 5, 2024 08:44
@stepansergeevitch stepansergeevitch self-assigned this Feb 5, 2024
Copy link

github-actions bot commented Feb 5, 2024

File Coverage Missing
All files 82%

Minimum allowed coverage is 80%

Generated by 🐒 cobertura-action against e592739

Copy link
Collaborator

@ptiurin ptiurin left a comment

Choose a reason for hiding this comment

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

Tag is done before pushing to the software repository in other actions, what are we trying to achieve here? https://github.com/firebolt-db/action-python-release/blob/main/action.yml

@stepansergeevitch stepansergeevitch changed the title sync build with other actions, push tag in the end ci: remove dev usage from ci actions Feb 5, 2024
@stepansergeevitch stepansergeevitch changed the title ci: remove dev usage from ci actions ci: Fix release build Feb 5, 2024
@stepansergeevitch
Copy link
Collaborator Author

The problem that has happened is that tag was pushed but release has failed. I believe this logic makes more sense since we should create a tag only after release has succeeded
BTW tag is created after publishing in node sdk as well
https://github.com/firebolt-db/firebolt-node-sdk/blob/main/.github/workflows/release-workflow.yaml#L57

@ptiurin
Copy link
Collaborator

ptiurin commented Feb 5, 2024

I believe this logic makes more sense since we should create a tag only after release has succeeded

This is a chicken and egg problem - if there's a problem with pushing a tag we'll fail, but the driver would already be pushed to the repository. If we rerun it'll be pushed again and I'm not sure what happens if the same tag is pushed twice, will it fail or overwrite? On the other hand, if we fail to push to the remote we have access to quickly delete a tag from our repo and start again.
In any case I'd prefer we keep the release functionality the same across repos, whichever approach we take, and have contingency plans for when it fails.

@stepansergeevitch
Copy link
Collaborator Author

Ok, we can keep the existing order

Copy link

sonarqubecloud bot commented Feb 5, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@stepansergeevitch stepansergeevitch merged commit 6b942cd into main Feb 5, 2024
8 checks passed
@stepansergeevitch stepansergeevitch deleted the fix-release-build branch February 5, 2024 10:19
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.

3 participants