Skip to content

feat(RELEASE-1993): convert update-fbc-catalog-task to python#2268

Merged
FilipNikolovski merged 2 commits into
konflux-ci:developmentfrom
FilipNikolovski:RELEASE-1993
Jun 19, 2026
Merged

feat(RELEASE-1993): convert update-fbc-catalog-task to python#2268
FilipNikolovski merged 2 commits into
konflux-ci:developmentfrom
FilipNikolovski:RELEASE-1993

Conversation

@FilipNikolovski

Copy link
Copy Markdown
Contributor

Describe your changes

Replace the two inline bash steps with a call to the python script in the release-service-utils image. Tekton test mocks are converted to the declarative mocks.yaml pattern compatible with the Python entrypoint, and scenario-specific tests that are now covered by pytest in the utils repo are removed.

Assisted-by: Claude Code

Relevant Jira

https://redhat.atlassian.net/browse/RELEASE-1993

Checklist before requesting a review

  • I have marked as draft or added do not merge label if there's a dependency PR
    • If you want reviews on your draft PR, you can add reviewers or add the release-service-maintainers handle if you are unsure who to tag
  • My commit message includes Signed-off-by: My name <email>
  • I read CONTRIBUTING.MD and commit formatting
  • I have run the README.md generator script in .github/scripts/readme_generator.sh and verified the results using .github/scripts/check_readme.sh
  • If an AI agent was used, I marked that via a commit footer like Assisted-By: Cursor

@FilipNikolovski FilipNikolovski force-pushed the RELEASE-1993 branch 3 times, most recently from 7580fae to f48a550 Compare June 4, 2026 15:18
@FilipNikolovski FilipNikolovski force-pushed the RELEASE-1993 branch 2 times, most recently from ba84072 to 68ae69c Compare June 5, 2026 07:04
@FilipNikolovski

Copy link
Copy Markdown
Contributor Author

/retest

@FilipNikolovski FilipNikolovski force-pushed the RELEASE-1993 branch 2 times, most recently from 73aad13 to 8fa65a4 Compare June 11, 2026 11:18
@FilipNikolovski

Copy link
Copy Markdown
Contributor Author

/retest

Comment thread tasks/internal/update-fbc-catalog-task/tests/mocks.yaml
Comment thread tasks/internal/update-fbc-catalog-task/tests/mocks/python3 Outdated
Comment thread .github/scripts/mock_http_json.py

@johnbieren johnbieren left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

lgtm but yeah idk if it will merge cleanly

Replace the two inline bash steps with a call to the
standalone Python script in the release-service-utils
image. Tekton test mocks are converted to the declarative
mocks.yaml pattern compatible with the Python entrypoint,
and scenario-specific tests now covered by pytest in the
utils repo are removed.

Fix TASK_ENTRYPOINT quoting in test_tekton_tasks.sh: args
with Tekton placeholders were wrapped in double quotes,
which breaks when the substituted value has embedded
double quotes (e.g. JSON arrays). Switched to single
quotes so the value is preserved literally after Tekton
substitution.

Assisted-by: Claude Code
Signed-off-by: Filip Nikolovski <fnikolov@redhat.com>
Add tests/python_mocks/ support to the test mock framework,
mirroring the existing tests/mocks/ pattern for CLI
binaries. Files placed in python_mocks/ are written to a
temp directory prepended to PYTHONPATH so task scripts
import the mock instead of the real package.

Replace the mocks/python3 interpreter wrapper in
update-fbc-catalog-task with a clean
python_mocks/requests_kerberos.py stub.

Assisted-by: Claude Code
Signed-off-by: Filip Nikolovski <fnikolov@redhat.com>

@ach912 ach912 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

lgtm

@davidmogar

Copy link
Copy Markdown
Collaborator

Production Approval Record

Field Value
Action APPROVED
Reviewer @davidmogar
Timestamp 2026-06-18T11:19:34.680Z

@FilipNikolovski FilipNikolovski added this pull request to the merge queue Jun 19, 2026
Merged via the queue into konflux-ci:development with commit 437d2e4 Jun 19, 2026
33 checks passed
@FilipNikolovski FilipNikolovski deleted the RELEASE-1993 branch June 19, 2026 10:34
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.

7 participants