Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support both cachi2 and cachito #2130

Conversation

MartinBasti
Copy link
Contributor

Maintainers will complete the following section

  • Commit messages are descriptive enough
  • Code coverage from testing does not decrease and new code is covered
  • Python type annotations added to new code
  • JSON/YAML configuration changes are updated in the relevant schema
  • Changes to metadata also update the documentation for the metadata
  • Pull request has a link to an osbs-docs PR for user documentation updates
  • New feature can be disabled from a configuration file

@MartinBasti MartinBasti changed the base branch from master to feature_cachi2 November 18, 2024 22:13
tekton/tasks/binary-container-init.yaml Fixed Show fixed Hide fixed
tekton/tasks/binary-container-init.yaml Fixed Show fixed Hide fixed
tekton/tasks/binary-container-init.yaml Fixed Show fixed Hide fixed
tekton/tasks/binary-container-init.yaml Fixed Show fixed Hide fixed
tekton/tasks/binary-container-init.yaml Fixed Show fixed Hide fixed
tekton/tasks/binary-container-init.yaml Fixed Show fixed Hide fixed
tekton/tasks/binary-container-init.yaml Fixed Show fixed Hide fixed
@MartinBasti MartinBasti force-pushed the support-both-cachi2-and-cachito branch 2 times, most recently from 80680a9 to dcf6ab4 Compare November 19, 2024 13:55
@MartinBasti MartinBasti force-pushed the support-both-cachi2-and-cachito branch from ebe6512 to 06d20b1 Compare November 22, 2024 13:27
@MartinBasti MartinBasti force-pushed the support-both-cachi2-and-cachito branch from 06d20b1 to bf3da2a Compare November 22, 2024 14:27
@MartinBasti MartinBasti marked this pull request as ready for review November 22, 2024 14:31
Copy link
Member

@ben-alkov ben-alkov left a comment

Choose a reason for hiding this comment

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

Couple tiny things, otherwise LGTM.

@@ -462,6 +462,7 @@ def __init__(
plugin_files: Optional[List[str]] = None,
keep_plugins_running: bool = False,
platforms_result: Optional[str] = None,
remote_sources_version_result: Optional[str] = None,
Copy link
Member

Choose a reason for hiding this comment

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

Add docstring below?

@@ -208,7 +208,8 @@ def test_ensure_workflow_data_is_saved_init_task(
pipeline_run_name='test-pipeline-run',
user_params={},
task_result='results',
platforms_result='platforms_result')
platforms_result='platforms_result',
remote_sources_version_result='version_result')
Copy link
Member

Choose a reason for hiding this comment

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

Nit: trailing comma?

User/admin may specify which version of remote sources should be used
(or used by default):
 - 1: Cachito (current default)
 - 2: Cachi2

Build pipeline will then use the right task based on condition using
result from the init task.

STONEBLD-2591

Signed-off-by: Martin Basti <mbasti@redhat.com>
Fixing issues reported by shellcheck via checkton.

Signed-off-by: Martin Basti <mbasti@redhat.com>
Remove before merging into main

Signed-off-by: Martin Basti <mbasti@redhat.com>
@MartinBasti MartinBasti force-pushed the support-both-cachi2-and-cachito branch 2 times, most recently from d329aea to 341ef22 Compare November 25, 2024 12:41
@MartinBasti MartinBasti merged commit 2b7138a into containerbuildsystem:feature_cachi2 Nov 25, 2024
13 of 14 checks passed
@MartinBasti MartinBasti deleted the support-both-cachi2-and-cachito branch November 25, 2024 12:47
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.

3 participants