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

[LOCAL] Bypass tag check in dry run #35428

Merged
merged 1 commit into from
Nov 22, 2022

Conversation

cipolleschi
Copy link
Contributor

@cipolleschi cipolleschi commented Nov 22, 2022

Summary

When dry-run in stable branch, the tag already exists. We are bypassing the tag-existence check when in a dry-run to have the CI pass

Changelog

[General] [Fixed] - Bypass tag version check when dry-run

Test Plan

CircleCI

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Nov 22, 2022
@cipolleschi cipolleschi changed the base branch from main to 0.70-stable November 22, 2022 14:16
@cipolleschi cipolleschi changed the base branch from 0.70-stable to 0.71-stable November 22, 2022 14:16
@@ -139,7 +139,11 @@ function generateiOSArtifacts(
return tarballOutputPath;
}

function failIfTagExists(version) {
function failIfTagExists(version, buildType) {
if (buildType == 'dry-run') {

Choose a reason for hiding this comment

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

  • ⚠️ scripts/release-utils.js line 143 – Expected '===' and instead saw '=='. (eqeqeq)

@github-actions
Copy link

Fails
🚫

📋 Verify Changelog Format - A changelog entry has the following format: [CATEGORY] [TYPE] - Message.

CATEGORY may be:
  • General
  • iOS
  • Android
  • JavaScript
  • Internal (for changes that do not need to be called out in the release notes)

TYPE may be:

  • Added, for new features.
  • Changed, for changes in existing functionality.
  • Deprecated, for soon-to-be removed features.
  • Removed, for now removed features.
  • Fixed, for any bug fixes.
  • Security, in case of vulnerabilities.

MESSAGE may answer "what and why" on a feature level. Use this to briefly tell React Native users about notable changes.

Generated by 🚫 dangerJS against f9837a8

@cipolleschi cipolleschi force-pushed the cipolleschi/bypass-tag-check-in-dry-run branch 2 times, most recently from 3771a40 to ca18fac Compare November 22, 2022 14:59
@cipolleschi cipolleschi force-pushed the cipolleschi/bypass-tag-check-in-dry-run branch from ca18fac to 3be3d49 Compare November 22, 2022 15:00
@cipolleschi cipolleschi changed the title cipolleschi/bypass tag check in dry run [LOCAL] Bypass tag check in dry run Nov 22, 2022
@cipolleschi cipolleschi marked this pull request as ready for review November 22, 2022 15:02
@cipolleschi cipolleschi merged commit ba1a9de into 0.71-stable Nov 22, 2022
@cipolleschi cipolleschi deleted the cipolleschi/bypass-tag-check-in-dry-run branch November 22, 2022 15:02
cipolleschi pushed a commit that referenced this pull request Nov 25, 2022
facebook-github-bot pushed a commit that referenced this pull request Nov 25, 2022
Summary:
When dry-run in stable branch, the tag already exists. We are bypassing the tag-existence check when in a dry-run to have the CI pass

## Changelog

[General] [Fixed] - Bypass tag version check when dry-run

Pull Request resolved: #35470

Test Plan:
CircleCI
It worked for RC1 and RC2

Reviewed By: cortinico

Differential Revision: D41529648

Pulled By: cipolleschi

fbshipit-source-id: d4d7f5534f86c2cf10b05e0d4cab950e4902d8df
OlimpiaZurek pushed a commit to OlimpiaZurek/react-native that referenced this pull request May 22, 2023
Summary:
When dry-run in stable branch, the tag already exists. We are bypassing the tag-existence check when in a dry-run to have the CI pass

## Changelog

[General] [Fixed] - Bypass tag version check when dry-run

Pull Request resolved: facebook#35470

Test Plan:
CircleCI
It worked for RC1 and RC2

Reviewed By: cortinico

Differential Revision: D41529648

Pulled By: cipolleschi

fbshipit-source-id: d4d7f5534f86c2cf10b05e0d4cab950e4902d8df
@cipolleschi cipolleschi mentioned this pull request Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants