Skip to content

Wait for tests to pass when deploying#1521

Merged
vegaro merged 1 commit into
mainfrom
deploy-wait-for-tests
Dec 22, 2023
Merged

Wait for tests to pass when deploying#1521
vegaro merged 1 commit into
mainfrom
deploy-wait-for-tests

Conversation

@vegaro

@vegaro vegaro commented Dec 7, 2023

Copy link
Copy Markdown
Member

I noticed it's possible to deploy without waiting for all tests to pass. It's probably an edge case but it's possible we merge something into main that breaks unit tests then start a release from that broken commit.

I added a new hold job to force the release in case we actually don't want to wait for tests to pass. The name is pretty clear force-release-without-waiting-for-tests so I think people will understand that it's skipping tests.

@vegaro vegaro requested a review from a team December 7, 2023 10:37
@vegaro vegaro added the ci label Dec 7, 2023
@codecov

codecov Bot commented Dec 7, 2023

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.36%. Comparing base (9e8bd79) to head (c88961a).
Report is 241 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1521   +/-   ##
=======================================
  Coverage   84.36%   84.36%           
=======================================
  Files         218      218           
  Lines        7177     7177           
  Branches     1004     1004           
=======================================
  Hits         6055     6055           
  Misses        734      734           
  Partials      388      388           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tonidero tonidero left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I guess this new workflow will end up pretty big... but I think it should be fine 👍

Comment thread .circleci/config.yml
requires:
- hold
<<: *release-branches
- revenuecat/tag-current-branch:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Haven't checked, but I guess it's ok to have 2 of the same job in the same workflow but with different requirements?

@vegaro vegaro merged commit c8d1927 into main Dec 22, 2023
@vegaro vegaro deleted the deploy-wait-for-tests branch December 22, 2023 11:45
vegaro pushed a commit that referenced this pull request Dec 22, 2023
**This is an automatic release.**

### RevenueCatUI
* Add `launchIfNeeded` with `offeringIdentifier` (#1533) via Cesar de la
Vega (@vegaro)
* Hide action bar from paywall activity (#1532) via Toni Rico
(@tonidero)
* Paywalls: improve Chinese localization (#1529) via Andy Boedo
(@aboedo)
### Other Changes
* Wait for tests to pass when deploying (#1521) via Cesar de la Vega
(@vegaro)

Co-authored-by: revenuecat-ops <ops@revenuecat.com>
@vegaro vegaro added pr:other and removed pr:ci labels Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants