Skip to content

Conversation

@simonbaird
Copy link
Member

There are some small functional changes:

  • Setting pipelinesascode.tekton.dev/cancel-in-progress: "true" for pre-merge, and "false" for post-merge.

  • Adding the image-digest param to the snyk task and removing the digest from the image-url param value.

The other changes are not functionally consequential, but they make it easier to compare the existing yaml to the newly generated yaml.

Ref: https://issues.redhat.com/browse/EC-1135

There are some small functional changes:
* Setting pipelinesascode.tekton.dev/cancel-in-progress: "true" for
  pre-merge, and "false" for post-merge.
* Adding the image-digest param to the snyk task and removing the
  digest from the image-url param value.

The other changes are not functionally consequential, but they make
it easier to compare the existing yaml to the newly generated yaml.

Useful vimdiff commands to review this change:
  vimdiff +'set ft=yaml' .tekton/cli-main-ci-pull-request.yaml <(git show release-v0.6:.tekton/cli-v06-pull-request.yaml|yq '.spec.pipelineSpec={}')
  vimdiff +'set ft=yaml' .tekton/cli-main-ci-push.yaml <(git show release-v0.6:.tekton/cli-v06-push.yaml|yq '.spec.pipelineSpec={}')
  vimdiff +'set ft=yaml' .tekton/cli-build.yaml <(git show release-v0.6:.tekton/cli-v06-pull-request.yaml|yq '{"spec":.spec.pipelineSpec}')

Ref: https://issues.redhat.com/browse/EC-1135
@simonbaird simonbaird force-pushed the freshen-pipeline-defs branch from ffe390d to 04fe457 Compare March 7, 2025 19:35
@codecov
Copy link

codecov bot commented Mar 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.92%. Comparing base (ae653ef) to head (04fe457).
Report is 26 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2370   +/-   ##
=======================================
  Coverage   72.92%   72.92%           
=======================================
  Files          89       89           
  Lines        7783     7783           
=======================================
  Hits         5676     5676           
  Misses       2107     2107           
Flag Coverage Δ
generative 72.92% <ø> (ø)
integration 72.92% <ø> (ø)
unit 72.92% <ø> (ø)

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

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

- input: $(params.skip-checks)
operator: in
values:
- "false"
Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure why the when and params swap locations, but this matches the current default pipeline.

build.appstudio.redhat.com/commit_sha: '{{revision}}'
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
pipelinesascode.tekton.dev/cancel-in-progress: "true"
Copy link
Member Author

Choose a reason for hiding this comment

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

This part is new and significant.

This pipeline is ideal for building container images from a Containerfile while maintaining trust after pipeline customization.
_Uses `buildah` to create a container image leveraging [trusted artifacts](https://konflux-ci.dev/architecture/ADR/0036-trusted-artifacts.html). It also optionally creates a source image and runs some build-time tests. Information is shared between tasks using OCI artifacts instead of PVCs. EC will pass the [`trusted_task.trusted`](https://enterprisecontract.dev/docs/ec-policies/release_policy.html#trusted_task__trusted) policy as long as all data used to build the artifact is generated from trusted tasks.
This pipeline is pushed as a Tekton bundle to [quay.io](https://quay.io/repository/konflux-ci/tekton-catalog/pipeline-docker-build-oci-ta?tab=tags)_
Copy link
Member Author

Choose a reason for hiding this comment

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

Arguably the description isn't very useful, but let's add it to match the default.

- name: dockerfile
value: Dockerfile.dist
- name: image-expires-after
value: 5d
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need double quotes? I didn't think so, but noticed it in other places.

Copy link
Member Author

Choose a reason for hiding this comment

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

I think it's okay.

echo 'value: 5d' | yq -ojson
{
  "value": "5d"
}

@simonbaird simonbaird merged commit cc90ba4 into conforma:main Mar 20, 2025
16 checks passed
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