Skip to content

Conversation

@mdemoret-nv
Copy link
Contributor

Description

Testing performing some release procedures in CI to improve release automation

@mdemoret-nv mdemoret-nv added non-breaking Non-breaking change feature request New feature or request labels Jul 13, 2023
@mdemoret-nv mdemoret-nv requested a review from a team as a code owner July 13, 2023 18:45
cat ci/release/pr_code_freeze_template.md | envsubst | \
gh pr create --base main --head branch-${VERSION} \
--title "[RELEASE] ${REPO_NAME} v${VERSION}" \
--body-file - \
Copy link
Contributor

Choose a reason for hiding this comment

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

Remark: This is pretty cool. I didn't know you could pipe the file in like that.

fetch-depth: 0
- name: Create PR
run: |
cat ci/release/pr_code_freeze_template.md | envsubst | \
Copy link
Contributor

Choose a reason for hiding this comment

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

Remark: Using envsubst here could be dangerous due GITHUB_TOKEN being in the environment. Wondering what the chances are we accidentally expose the token this way. I imagine it would require both updating the template and running the workflow from the dashboard. Seems unlikely, but still possible.

Question: Is having GITHUB_TOKEN in the environment necessary?

Question: Are there other secrets that could be exposed with envsubst?

with:
lfs: false
path: 'mrc'
fetch-depth: 0
Copy link
Contributor

Choose a reason for hiding this comment

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

Question: Do we need to fetch all history for all branches and tags?

Comment on lines +34 to +53
create_next_release_branch:
description: 'Creates the next release branch and configures tags'
required: true
type: boolean
default: false
update_next_release_versions:
description: 'Runs the update-version script and creates a PR with the changes'
required: true
type: boolean
default: false
update_changelog:
description: 'Updates the CHANGELOG.md file for the current release and commits the changes'
required: true
type: boolean
default: false
merge_release_branch:
description: 'Merges the code freeze release branch, creates the release tag, and creates a new Github release'
required: true
type: boolean
default: false
Copy link
Contributor

Choose a reason for hiding this comment

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

Remark: Looks like some of these inputs are unused.

Question: Should the unused inputs be removed?

@codecov
Copy link

codecov bot commented Jul 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.14%. Comparing base (7345aa6) to head (aa2995c).
Report is 4 commits behind head on branch-23.07.

Additional details and impacted files

Impacted file tree graph

@@                Coverage Diff                @@
##           branch-23.07     #355       +/-   ##
=================================================
+ Coverage         51.20%   73.14%   +21.93%     
=================================================
  Files               346      382       +36     
  Lines             11041    13403     +2362     
  Branches            930     1010       +80     
=================================================
+ Hits               5654     9804     +4150     
+ Misses             5387     3599     -1788     
Flag Coverage Δ
cpp 69.07% <ø> (+26.10%) ⬆️
py 42.06% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 162 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature request New feature or request non-breaking Non-breaking change

Projects

Status: Review - Changes Requested

Development

Successfully merging this pull request may close these issues.

2 participants