Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
777546f
do not allow negative requeue times
gabemontero Jan 18, 2024
6e10518
fix: ensure clustertask annotations are synced to taskrun
l-qing Jan 23, 2024
3d0d421
Exclude stopped injected sidecars from TaskRun status
abayer Feb 6, 2024
dcbd805
fix(pipeline): correct warning path for duplicate param name in pipeline
l-qing Feb 10, 2024
9be03e2
Prior to this PR, when the `when.cel` field in the final task refers …
cugykw Feb 6, 2024
a40423b
wait for a given duration in case of imagePullBackOff
pritidesai Feb 13, 2024
f3dd478
fix: avoid panic when used pipelineRef or pipelineSpec in pipeline task
l-qing Feb 28, 2024
fc918a1
Remove conversion configuration for `ClusterTask`
vdemeester Mar 25, 2024
b4b791b
Do not register `StepAction` for conversion
vdemeester Mar 25, 2024
3d2b5cb
Fix: Merge StepTemplate with Step containing Results and Params
chitrangpatel Mar 15, 2024
aa07d81
when using a stepTemplate the ref gets removed
garethjevans Mar 28, 2024
99096c8
[release-v0.56.x] Update go-git/v5 for CVE-2023-49569
vdemeester Apr 5, 2024
faf26be
chore(deps): Migrate to github.com/go-jose/go-jose/v3
isibeni Mar 25, 2024
2bd1a7b
fix: stepresult-intepolations-does-not-accept-multiple-matches
ericzzzzzzz Apr 3, 2024
6cbfbcd
Prior to this PR, when pipeline refers to a remote pipeline, in the p…
cugykw Feb 29, 2024
8a7ccf4
Fix: Identify workspace usage in a Task
chitrangpatel Jun 4, 2024
c1bbe00
Cleanup resolved object before validating through dry-run
vdemeester Jun 13, 2024
c4d947b
Handle error conditions in CheckMissingResultReferences
ralphbean Jun 27, 2024
07c172a
Perform matrix results validation on only result ref params
piyush-garg Jul 3, 2024
064bafc
Refine check if the result is from a matrix task
zregvart Jul 29, 2024
d2b057d
pkg/taskrunmetrics/fake shouldn't be imported…
vdemeester Aug 6, 2024
01616c1
Mark steps as deleted when TaskRun fails
afrittoli Sep 25, 2024
f63fb0e
Fix isolated workspaces ignored when using StepTemplate
vdemeester Sep 17, 2024
3380e34
Backport release "scripts" changes from main…
vdemeester Oct 15, 2024
52b25ed
Run finally pipeline even if task is failed at the validation
divyansh42 Oct 7, 2024
effd78f
Resolve review comments 1
divyansh42 Oct 16, 2024
c418e52
Exit reconcilation and markfailed if finally is not present
divyansh42 Oct 16, 2024
95e7a4e
Remove permanent error and improve skip logic
divyansh42 Oct 22, 2024
2b7eeec
Fix number of completed and failed task in case of ValidationFailed
divyansh42 Oct 30, 2024
1f8eeca
.github/workflows: backport e2e workflows
vdemeester Dec 20, 2024
5bd9a28
.github/workflows: run on the "current" pull_request
vdemeester Jan 3, 2025
a19a2f3
Merge remote-tracking branch 'github/release-v0.56.x' into chore/sync…
l-qing Jan 17, 2026
c1e25f3
chore(deps): resolve merge conflicts and update dependencies
l-qing Jan 17, 2026
6bc6a6a
fix: panic in v1beta1 matrix validation for invalid result refs
mathur07 Nov 18, 2025
04c03c8
fix: avoid panic when validate enum param with special matrix task
l-qing Jan 2, 2025
aad6247
chore(deps): upgrade golang.org/x/oauth2 to v0.27.0
l-qing Jan 16, 2026
654508f
fix: avoid panic in param enum validation for matrix tasks
l-qing Jan 17, 2026
69502ed
chore: disable e2e-matrix workflow
l-qing Jan 19, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
81 changes: 81 additions & 0 deletions .github/workflows/chatops_retest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# The _chatops_retest workflow reruns failed GHA for a PR
#
# This workflow is triggered by leaving a "/retest" comment on
# a pull request. If the required preconditions are met, it will
# rerun failed GitHub actions checks on that PR
#
# Condition for the "/retest" command are:
# - either the issuer is a maintainer
# - or the issuer is the owner the PR

name: Rerun Failed Actions
on:
repository_dispatch:
types: [retest-command]

jobs:
retest:
name: Rerun Failed Actions
runs-on: ubuntu-latest
steps:
- name: Show Environment Variables
run: env
- name: Show Github Object
run: |
cat <<'EOF'
${{ toJson(github) }}
EOF
- name: Show Github Event Path Json
run: 'cat $GITHUB_EVENT_PATH || true'
- name: Rerun Failed Actions
run: |
echo '::group:: Get the PR commit sha'
# Get the sha of the HEAD commit in the PR
GITHUB_COMMIT_SHA=$(gh api $(echo ${GITHUB_PULL_URL#https://api.github.com/}) | \
jq -r .head.sha)
echo GITHUB_COMMIT_SHA=${GITHUB_COMMIT_SHA}
echo '::endgroup::'

echo '::group:: Get the list of run IDs'
# Get a list of run IDs
RUN_IDS=$(gh api repos/${GITHUB_REPO}/commits/${GITHUB_COMMIT_SHA}/check-runs | \
jq -r '.check_runs[] | select(.name != "Rerun Failed Actions") | .html_url | capture("/runs/(?<number>[0-9]+)/job") | .number' | \
sort -u)
echo RUN_IDS=${RUN_IDS}
echo '::endgroup::'

echo '::group:: Rerun failed runs'
# For each run, retrigger faild jobs
for runid in ${RUN_IDS}; do
echo Restarting run ${runid} for commit ${GITHUB_COMMIT_SHA}
gh run \
--repo ${GITHUB_REPO} \
rerun ${runid} \
--failed || true
done
echo '::endgroup::'
env:
GITHUB_TOKEN: ${{ secrets.CHATOPS_TOKEN }}
GITHUB_REPO: ${{ github.event.client_payload.github.payload.repository.full_name }}
GITHUB_PULL_URL: ${{ github.event.client_payload.github.payload.issue.pull_request.url }}

- name: Create comment
if: ${{ failure() && steps.landStack.outcome == 'failure' }}
uses: peter-evans/create-or-update-comment@v4
with:
token: ${{ secrets.CHATOPS_TOKEN }}
repository: ${{ github.event.client_payload.github.payload.repository.full_name }}
issue-number: ${{ github.event.client_payload.github.payload.issue.number }}
body: |
Something went wrong with your `/${{ github.event.client_payload.slash_command.command }}` command: [please check the logs][1].

[1]: ${{ steps.vars.outputs.run-url }}

- name: Add reaction
if: ${{ success() }}
uses: peter-evans/create-or-update-comment@v4
with:
token: ${{ secrets.CHATOPS_TOKEN }}
repository: ${{ github.event.client_payload.github.payload.repository.full_name }}
comment-id: ${{ github.event.client_payload.github.payload.comment.id }}
reactions: hooray
109 changes: 109 additions & 0 deletions .github/workflows/e2e-matrix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
name: Tekton Integration
# Adapted from https://github.com/mattmoor/mink/blob/master/.github/workflows/minkind.yaml

# Disable this workflow for now as we cannot pull our internal images on GitHub
# on: [ pull_request ]

defaults:
run:
shell: bash

jobs:
e2e-tests:
name: e2e tests
runs-on: ubuntu-latest
strategy:
fail-fast: false # Keep running if one leg fails.
matrix:
k8s-name:
- k8s-oldest
- k8s-plus-one

feature-flags:
- stable
- beta
- alpha
# - prow-feature-flags - this is tested today as a periodic job, but we could integrate it here

include:
- k8s-name: k8s-oldest
k8s-version: v1.28.x
- k8s-name: k8s-plus-one
k8s-version: v1.29.x
- feature-flags: stable
env-file: prow
- feature-flags: alpha
env-file: prow-alpha
- feature-flags: beta
env-file: prow-beta
env:
GOPATH: ${{ github.workspace }}
GO111MODULE: on
KO_DOCKER_REPO: registry.local:5000/tekton
CLUSTER_DOMAIN: c${{ github.run_id }}.local
ARTIFACTS: ${{ github.workspace }}/artifacts

steps:
- name: Check out code onto GOPATH
uses: actions/checkout@v4
with:
path: ${{ github.workspace }}/src/github.com/tektoncd/pipeline


- name: Set up Go 1.22
uses: actions/setup-go@v5
with:
go-version: 1.22.5

- name: Install Dependencies
working-directory: ./
run: |
echo '::group:: install ko'
curl -L https://github.com/ko-build/ko/releases/download/v0.15.4/ko_0.15.4_Linux_x86_64.tar.gz | tar xzf - ko
chmod +x ./ko
sudo mv ko /usr/local/bin
echo '::endgroup::'

echo '::group:: install go-junit-report'
go install github.com/jstemmer/go-junit-report@v0.9.1
echo '::endgroup::'

echo '::group:: created required folders'
mkdir -p "${ARTIFACTS}"
echo '::endgroup::'

echo "${GOPATH}/bin" >> "$GITHUB_PATH"

- name: Run tests
working-directory: ${{ github.workspace }}/src/github.com/tektoncd/pipeline
run: |
./hack/setup-kind.sh \
--registry-url $(echo ${KO_DOCKER_REPO} | cut -d'/' -f 1) \
--cluster-suffix c${{ github.run_id }}.local \
--nodes 3 \
--k8s-version ${{ matrix.k8s-version }} \
--e2e-script ./test/e2e-tests.sh \
--e2e-env ./test/e2e-tests-kind-${{ matrix.env-file }}.env

- name: Upload test results
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.k8s-version }}-${{ matrix.feature-flags }}
path: ${{ env.ARTIFACTS }}

- uses: chainguard-dev/actions/kind-diag@main
if: ${{ failure() }}
with:
artifact-name: ${{ matrix.k8s-version }}-${{ matrix.feature-flags }}-logs

- name: Dump Artifacts
if: ${{ failure() }}
run: |
if [[ -d ${{ env.ARTIFACTS }} ]]; then
cd ${{ env.ARTIFACTS }}
for x in $(find . -type f); do
echo "::group:: artifact $x"
cat $x
echo '::endgroup::'
done
fi
41 changes: 41 additions & 0 deletions .github/workflows/slash.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# The slash workflow handles slash commands
#
# Slash commands are given through comments on pull requests
# and may be used only by individuals with "write" access to
# the repository (i.e. maintainers).
#
# Slash commands must be placed at the very beginning of the
# first line of a comment. More details are available in the
# action docs: https://github.com/peter-evans/slash-command-dispatch/tree/main?tab=readme-ov-file#how-comments-are-parsed-for-slash-commands
#
# The workflow looks for and dispatches to another workflow
# named <command>-command which must exist in the repository.
#
# Supported commands:
# - /land: invokes the land-command workflow, to land (merge) PRs
# stacked through ghstack
#
# When a command is recognised, the rocket and eyes emojis are added

name: Slash Command Routing
on:
issue_comment:
types: [created]

jobs:
check_comments:
runs-on: ubuntu-latest
steps:
- name: route-land
uses: peter-evans/slash-command-dispatch@v4
with:
token: ${{ secrets.CHATOPS_TOKEN }}
config: >
[
{
"command": "retest",
"permission": "write",
"issue_type": "pull-request",
"repository": "tektoncd/pipeline"
}
]
32 changes: 15 additions & 17 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
module github.com/tektoncd/pipeline

go 1.23.0
go 1.24.0

toolchain go1.24.1

require (
github.com/Microsoft/go-winio v0.6.2 // indirect
github.com/ahmetb/gen-crd-api-reference-docs v0.3.1-0.20220720053627-e327d0730470 // Waiting for https://github.com/ahmetb/gen-crd-api-reference-docs/pull/43/files to merge
github.com/cloudevents/sdk-go/v2 v2.15.2
github.com/containerd/containerd v1.7.27
github.com/containerd/containerd v1.7.29
github.com/go-git/go-git/v5 v5.14.0
github.com/google/go-cmp v0.7.0
github.com/google/go-containerregistry v0.17.0
Expand All @@ -27,7 +27,7 @@ require (
go.opencensus.io v0.24.0
go.uber.org/zap v1.26.0
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56
golang.org/x/oauth2 v0.16.0 // indirect
golang.org/x/oauth2 v0.30.0 // indirect
gomodules.xyz/jsonpatch/v2 v2.4.0
k8s.io/api v0.27.1
k8s.io/apimachinery v0.29.0
Expand Down Expand Up @@ -78,7 +78,7 @@ require (
)

require (
cloud.google.com/go/compute/metadata v0.2.3 // indirect
cloud.google.com/go/compute/metadata v0.3.0 // indirect
cloud.google.com/go/iam v1.1.5 // indirect
cloud.google.com/go/kms v1.15.5 // indirect
dario.cat/mergo v1.0.0 // indirect
Expand All @@ -94,7 +94,7 @@ require (
github.com/aws/aws-sdk-go-v2/service/kms v1.27.9 // indirect
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.21.6 // indirect
github.com/cenkalti/backoff/v3 v3.2.2 // indirect
github.com/cloudflare/circl v1.6.0 // indirect
github.com/cloudflare/circl v1.6.1 // indirect
github.com/containerd/log v0.1.0 // indirect
github.com/containerd/platforms v0.2.1 // indirect
github.com/cyphar/filepath-securejoin v0.4.1 // indirect
Expand Down Expand Up @@ -139,7 +139,6 @@ require (
)

require (
cloud.google.com/go/compute v1.23.3 // indirect
contrib.go.opencensus.io/exporter/ocagent v0.7.1-0.20200907061046-05415f1de66d // indirect
contrib.go.opencensus.io/exporter/prometheus v0.4.0 // indirect
github.com/Azure/azure-sdk-for-go v68.0.0+incompatible // indirect
Expand Down Expand Up @@ -177,7 +176,7 @@ require (
github.com/dimchansky/utfbom v1.1.1 // indirect
github.com/docker/cli v24.0.0+incompatible // indirect
github.com/docker/distribution v2.8.2+incompatible // indirect
github.com/docker/docker v26.1.5+incompatible // indirect
github.com/docker/docker v28.0.4+incompatible // indirect
github.com/docker/docker-credential-helpers v0.7.0 // indirect
github.com/evanphx/json-patch v4.12.0+incompatible // indirect
github.com/evanphx/json-patch/v5 v5.6.0 // indirect
Expand Down Expand Up @@ -225,17 +224,16 @@ require (
go.uber.org/atomic v1.10.0 // indirect
go.uber.org/automaxprocs v1.4.0 // indirect
go.uber.org/multierr v1.10.0 // indirect
golang.org/x/crypto v0.38.0 // indirect
golang.org/x/mod v0.19.0 // indirect
golang.org/x/net v0.40.0 // indirect
golang.org/x/sync v0.14.0
golang.org/x/sys v0.33.0 // indirect
golang.org/x/term v0.32.0 // indirect
golang.org/x/text v0.25.0 // indirect
golang.org/x/time v0.5.0 // indirect
golang.org/x/tools v0.23.0 // indirect
golang.org/x/crypto v0.45.0 // indirect
golang.org/x/mod v0.29.0 // indirect
golang.org/x/net v0.47.0 // indirect
golang.org/x/sync v0.18.0
golang.org/x/sys v0.38.0 // indirect
golang.org/x/term v0.37.0 // indirect
golang.org/x/text v0.31.0 // indirect
golang.org/x/time v0.12.0 // indirect
golang.org/x/tools v0.38.0 // indirect
google.golang.org/api v0.156.0 // indirect
google.golang.org/appengine v1.6.8 // indirect
google.golang.org/genproto v0.0.0-20231212172506-995d672761c0 // indirect
google.golang.org/grpc v1.60.1
google.golang.org/protobuf v1.35.2
Expand Down
Loading