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

tests-scan: Add "image-download" secret #6062

Merged
merged 1 commit into from
Mar 11, 2024
Merged

Conversation

martinpitt
Copy link
Member

So that job containers can download private images (RHEL). This secret gets defined in cockpit-project/cockpituous#594

So that job containers can download private images (RHEL). This secret
gets defined in cockpit-project/cockpituous#594
@@ -282,7 +282,7 @@ def test_amqp_pr(self, mock_queue, _mock_strftime):
"slug": f"pull-{self.pull_number}-abcdef-20240102-030405-fedora-nightly",
"target": "stable-1.0",
"container": "supertasks",
"secrets": ["github-token"],
"secrets": ["github-token", "image-download"],
Copy link
Member

Choose a reason for hiding this comment

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

Is this JSON schema defined anywhere? Half of it looks like a Github event and the other part of the job looks like something Cockpit test specific?

Copy link
Member

Choose a reason for hiding this comment

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

So the secret is image-download? I found that a bit confusing as image-download is also something I often use :) So I almost wonders if secrets was tied to an invocation.

Copy link
Member Author

Choose a reason for hiding this comment

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

That secret is defined in cockpit-project/cockpituous#594 . I named it that so that it matches the already existing "image-upload" secret. I.e. We declare set of abstract secret names, assign them in the generated tasks ("image-upload", "image-download", "github-token"), and define their "implementation" in the job config.

@martinpitt
Copy link
Member Author

cockpit-project/cockpituous#594 landed and deployed. So I'll land this and retry all the failed rhel* tests that happened over the weekend and today.

@martinpitt martinpitt merged commit c2e7516 into main Mar 11, 2024
6 checks passed
@martinpitt martinpitt deleted the image-download-secret branch March 11, 2024 09:20
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.

2 participants