Skip to content

Fixing releases to also mark SIPs as released#1546

Merged
barrasso merged 1 commit intostagingfrom
fixing-sips-on-release
Oct 4, 2021
Merged

Fixing releases to also mark SIPs as released#1546
barrasso merged 1 commit intostagingfrom
fixing-sips-on-release

Conversation

@jjgonecrypto
Copy link
Copy Markdown
Contributor

  • Fixes issue whereby a finalized release (in the release pipeline) does not actually mark the SIPs as released for the given layer
  • Also fixes bug whereby releasing with version -ovm was being incorrectly skipped.

}

const prerelease = semver.prerelease(versionTag) && semver.prerelease(versionTag) !== 'ovm';
const prerelease = semver.prerelease(versionTag) && semver.prerelease(versionTag)[0] !== 'ovm';
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.

this was the bug - semver.prerelease was returning an array

@codecov
Copy link
Copy Markdown

codecov bot commented Oct 4, 2021

Codecov Report

Merging #1546 (a556d2a) into staging (88a937a) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           staging    #1546   +/-   ##
========================================
  Coverage    95.92%   95.92%           
========================================
  Files           75       75           
  Lines         1743     1743           
  Branches       547      547           
========================================
  Hits          1672     1672           
  Misses          71       71           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 88a937a...a556d2a. Read the comment docs.

}

const prerelease = semver.prerelease(versionTag) && semver.prerelease(versionTag) !== 'ovm';
const prerelease = semver.prerelease(versionTag) && semver.prerelease(versionTag)[0] !== 'ovm';
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.

are we certain that semver.prerelease(versionTag)[0] is not null? otherwise the functionality would not be exactly the same as before.

Copy link
Copy Markdown
Contributor

@barrasso barrasso left a comment

Choose a reason for hiding this comment

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

LGTM, just have same concern that db raised about being certain the first element in the array is not null

@barrasso barrasso merged commit 5656628 into staging Oct 4, 2021
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