Add claude slash command for upstream to downstream sync#750
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: hroyrh The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
|
||
| # Merging upstream to downstream | ||
|
|
||
| This commands merges changes from upstream `metal3-io/ironic-image` |
|
|
||
| ### 3. Handle Common Conflicts | ||
|
|
||
| **GitHub Workflows**: Downstream removes most of `.github/` directory files. |
There was a problem hiding this comment.
we do have .github downstream, we need to preserve what we have downstream
There was a problem hiding this comment.
yeah, that's why it's most not all the files are removed, and the command below will not return empty if it makes any changes to the downstream files. I'm trying to avoid instructions for individual files, and trying to follow a consistent pattern where possible.
| - Verify with `git diff downstream/main -- .github/`, this must return empty | ||
| - If the above command result it not empty investigate or repeat above steps | ||
|
|
||
| **Hack tools**: We don't have these scripts in downstream normally: |
There was a problem hiding this comment.
Right, I will be more explicit in instructions here.
| - `OCPBUGS-*:` - OpenShift bug fixes | ||
| - These must be preserved during the merge, unless replaced by an equivalent | ||
| upstream commit. | ||
|
|
There was a problem hiding this comment.
we should probably add that Dockerfile is upstream and Dockerfile.ocp is downstream and find a way to apply the changes downstream
There was a problem hiding this comment.
Hmm, I think Dockerfile, prepare-image.sh are candidates for bit for nuanced instructions. I've been trying different things with claude with some of these more complex scenarios, and it hasn't been very reliable on what it does. The more complex the instructions, the more it behaves unexpectedly. I will try to come up with more clear instructions.
There was a problem hiding this comment.
for now we can just say to remove the Dockerfile from upstream and leave Dockerfile.ocp for downstream
but it will be on us to compare the changes
|
|
||
| ### 5. Handling other conflicts | ||
|
|
||
| **OKD packages list**: Always pick the upstream changes for the okd packages |
There was a problem hiding this comment.
there is no upstream OKD
I think we need to mention main-packages-list.txt and that we don't want to keep it downstream
same for ironic-packages-list
There was a problem hiding this comment.
hmm, I wonder why I saw conflicts in the okd file then ? Let me take another look.
There was a problem hiding this comment.
So, if a new package is added to the upstream list, we manually bring it in the downstream lists if applicable ?
There was a problem hiding this comment.
upstream we install all from source, downstream we have a mix between source and RPMs, so yes, unfortunately most changes are done manually downstream as we don't have a 1to1 correspondence
with s2i things are going to get better
da910c6 to
2727983
Compare
|
@hroyrh: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
|
Important Review skippedAuto reviews are limited based on label configuration. 🚫 Review skipped — only excluded labels are configured. (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
/remove-lifecycle stale |
No description provided.