Skip to content

Comments

Cherrypick with comment when manual action needed.#5945

Open
jrcain-usgs wants to merge 3 commits intoDOI-USGS:devfrom
jrcain-usgs:cherrypick-comment
Open

Cherrypick with comment when manual action needed.#5945
jrcain-usgs wants to merge 3 commits intoDOI-USGS:devfrom
jrcain-usgs:cherrypick-comment

Conversation

@jrcain-usgs
Copy link
Contributor

@jrcain-usgs jrcain-usgs commented Jan 22, 2026

Description

Updates cherrypick to leave a comment when the auto cherry-pick fails so a maintainer can complete the cherry-pick manually.

Related Issue

How Has This Been Validated?

Jobs with successful (did what it was supposed to do) runs:
Auto Cherry-Pick: https://github.com/jrcain-usgs/ISIS3/actions/runs/21187425484/job/60945671616
Failed Cherry-Pick and Comment: https://github.com/jrcain-usgs/ISIS3/actions/runs/21081391187/job/60635711481

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Documentation change (update to the documentation; no code change)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Infrastructure change (changes to things like CI or the build system that do not impact users)

Checklist:

  • I have read and agree to abide by the Code of Conduct
  • I have read the CONTRIBUTING document.
  • My change requires a change to the documentation and I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • I have added myself to the .zenodo.json document.
  • I have added my user impacting change to the CHANGELOG.md document.

Licensing

This project is mostly composed of free and unencumbered software released into the public domain, and we are unlikely to accept contributions that are not also released into the public domain. Somewhere near the top of each file should have these words:

This work is free and unencumbered software released into the public domain. In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain.

  • I dedicate any and all copyright interest in this software to the public domain. I make this dedication for the benefit of the public at large and to the detriment of my heirs and successors. I intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law.

@github-actions
Copy link

The build and test suite have started for your pull request.

To view your build log, please reference the build with source version: "PR_5945".

Additionally, check the latest "dev" source version to identify existing test failures. Please note that you are not responsible for the test failures that exist on both your PR and the dev branch.

@github-actions
Copy link

The build and test suite have started for your pull request.

To view your build log, please reference the build with source version: "PR_5945".

Additionally, check the latest "dev" source version to identify existing test failures. Please note that you are not responsible for the test failures that exist on both your PR and the dev branch.

@jrcain-usgs jrcain-usgs marked this pull request as ready for review January 23, 2026 16:44
@jrcain-usgs jrcain-usgs self-assigned this Jan 23, 2026
env:
ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
GITHUB_SHA: ${{ github.sha }}
CURRENT_LTS: 9-lts
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this have to be manually updated when we have a new lts? Might be worth having the CI look for the latest versioned branch with -lts so we don't have to manually update this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I definitely want it to auto-detect the latest version... Looking at it right now - if I can't figure it out by today I may open a separate issue for it.

Comment on lines 89 to 103
Maintainers (@jrcain-usgs @Kelvinrr): Please cherry-pick this bugfix to LTS.
PR: #${{ steps.getpr.outputs.pr }}
SHA: ${{ github.sha }}.

You may use the following commands to cherry-pick
(Assuming you have the DOI-USGS/ISIS3 repo as a remote named `upstream`):
```
git fetch upstream
git checkout -b cherry-${{ steps.getpr.outputs.pr }} upstream/${{ env.CURRENT_LTS }}
git cherry-pick -m 1 ${{ github.sha }}

# Resolve Merge Conflicts Manually

# Then push to LTS
git push --set-upstream upstream ${{ env.CURRENT_LTS }}
Copy link
Contributor

Choose a reason for hiding this comment

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

The only concern I have with this is it can get lost in the merged PRs or in your email. But not sure of a better solution. Maybe generate an issue? Not sure.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I also thought generating an issue would be a good idea, Pro: we could tag, group, and see all the waiting cherry-picks. Con: @Kelvinrr was worried we would end up with too many issues, so I didn't add that for now. We could discuss at the changelogs meeting Tuesday.

@github-actions
Copy link

The build and test suite have started for your pull request.

To view your build log, please reference the build with source version: "PR_5945".

Additionally, check the latest "dev" source version to identify existing test failures. Please note that you are not responsible for the test failures that exist on both your PR and the dev branch.

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.

2 participants