Skip to content

CI check for missing TA Task variants#1523

Merged
zregvart merged 1 commit into
konflux-ci:mainfrom
zregvart:issue/EC-934
Oct 22, 2024
Merged

CI check for missing TA Task variants#1523
zregvart merged 1 commit into
konflux-ci:mainfrom
zregvart:issue/EC-934

Conversation

@zregvart
Copy link
Copy Markdown
Contributor

A script and a GitHub workflow change to check if a new Task was added that uses a PVC-backed workspace without a Trusted Artifacts Task variant.

Reference: https://issues.redhat.com/browse/EC-934

Comment thread hack/missing-ta-tasks.sh Outdated
trap 'rm "${tmp_files[@]}" > /dev/null 2>&1' EXIT

# names of workspaces that will not be mounted via PVC, as inline array
non_pvc_workspaces='["ssh-directory", "basic-auth", "gitops-auth", "git-basic-auth", "netrc"]'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Not sure if it's worth it, but it would be nice if this list was generated from

allowed_trusted_artifacts_workspaces:
- git-basic-auth
- basic-auth
- ssh-directory
- netrc
.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think this is a good idea, incorporated in 324b27e (#1523)

A script and a GitHub workflow change to check if a new Task was added
that uses a PVC-backed workspace without a Trusted Artifacts Task
variant.

Reference: https://issues.redhat.com/browse/EC-934
@zregvart zregvart added this pull request to the merge queue Oct 22, 2024
Merged via the queue into konflux-ci:main with commit f26414c Oct 22, 2024
@zregvart zregvart deleted the issue/EC-934 branch October 22, 2024 15:24
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