feat(RELEASE-2509): add python scripts for publish-to-nrrc task#804
feat(RELEASE-2509): add python scripts for publish-to-nrrc task#804elenagerman wants to merge 1 commit into
Conversation
Review Summary by QodoAdd Python scripts for publish-to-nrrc task with charon integration
WalkthroughsDescription• Add Python scripts for publish-to-nrrc task replacing inline Tekton bash • Implement charon environment file parser with registry and digest utilities • Create prepare-repo script to download npm archives from OCI registries • Create upload script to publish archives to NRRC via charon CLI • Bundle charon CLI and dependencies into release-service-utils image Diagramflowchart LR
A["Tekton Task"] -->|CLI flags| B["prepare_repo.py"]
B -->|parse| C["charon_env.py"]
C -->|registry list| B
B -->|oras pull| D["OCI Registry"]
D -->|archives| B
B -->|collect| E["shared/"]
A -->|CLI flags| F["upload.py"]
F -->|parse| C
C -->|config| F
F -->|charon upload| G["NRRC"]
E -->|archives| F
File Changes1. scripts/python/helpers/charon_env.py
|
This comment was marked as resolved.
This comment was marked as resolved.
8d6d49c to
38e3029
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #804 +/- ##
==========================================
+ Coverage 95.65% 95.72% +0.06%
==========================================
Files 72 74 +2
Lines 7118 7222 +104
==========================================
+ Hits 6809 6913 +104
Misses 309 309
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
|
/retest |
1 similar comment
|
/retest |
bd25062 to
85e5af2
Compare
|
/retest |
c517947 to
d875598
Compare
|
/retest |
2 similar comments
|
/retest |
|
/retest |
|
/retest |
5efc452 to
df70910
Compare
|
/retest |
1 similar comment
|
/retest |
|
/retest |
1 similar comment
|
/retest |
johnbieren
left a comment
There was a problem hiding this comment.
I'm confused by this PR. We have talked about how when we convert to python, we want to go from multi step to single step in the tekton tasks. Here, I see the publish-to-nrrc task split into multi python scripts. Why? Also, if it isn't a managed task name, it shouldn't really be in tasks/managed it should be in helpers
d93077f to
d955548
Compare
Good questions!
|
|
/retest |
1 similar comment
|
/retest |
d955548 to
40227df
Compare
c40f859 to
4f512a6
Compare
|
/retest |
|
/retest |
2 similar comments
|
/retest |
|
/retest |
Production Approval Record
Approved |
|
/retest |
add python scripts for publish-to-nrrc task Signed-off-by: Elena German <elgerman@redhat.com> Assisted-by: Claude
|
/retest |
Describe your changes
Moves the prepare-repo and upload-npm-archive logic from inline Tekton bash into standalone Python scripts under scripts/python/tasks/managed/, with Tekton parameters passed as CLI flags.
It adds a small charon_env helper for parsing charon parameter files, reuses the existing subprocess_cmd helper from create_advisory, and bundles the charon CLI into the utils image so both steps can run from release-service-utils.
Relevant Jira
RELEASE-2509
Assisted-by: Claude