Skip to content

feat(RELEASE-2480): add collect_registry_token_secret python script#860

Draft
happybhati wants to merge 1 commit into
konflux-ci:mainfrom
happybhati:RELEASE-2480-collect-registry-token-secret-standalone-script
Draft

feat(RELEASE-2480): add collect_registry_token_secret python script#860
happybhati wants to merge 1 commit into
konflux-ci:mainfrom
happybhati:RELEASE-2480-collect-registry-token-secret-standalone-script

Conversation

@happybhati

Copy link
Copy Markdown
Contributor

This commit adds a python script to replicate the inline bash in the
collect-registry-token-secret managed task in the catalog repo. The task
will be updated to use this python module instead.

  • collect_registry_token_secret.py: read data JSON, detect public repos,
    return registry secret name (or empty) via Tekton result
  • test_collect_registry_token_secret.py: 11 pytest cases

Assisted-by: Cursor

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 97.67442% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 95.64%. Comparing base (62d5b7a) to head (4ae8360).
⚠️ Report is 10 commits behind head on main.

Files with missing lines Patch % Lines
...hon/tasks/managed/collect_registry_token_secret.py 97.67% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #860      +/-   ##
==========================================
+ Coverage   95.46%   95.64%   +0.18%     
==========================================
  Files          65       72       +7     
  Lines        6441     7121     +680     
==========================================
+ Hits         6149     6811     +662     
- Misses        292      310      +18     
Flag Coverage Δ
unit-tests 95.64% <97.67%> (+0.18%) ⬆️

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

Files with missing lines Coverage Δ
...hon/tasks/managed/collect_registry_token_secret.py 97.67% <97.67%> (ø)

... and 11 files with indirect coverage changes


Continue to review full report in Codecov by Harness.

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

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

@happybhati

Copy link
Copy Markdown
Contributor Author

/retest

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants