1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-21 05:55:35 +00:00
Commit Graph

104 Commits

Author SHA1 Message Date
Basavaraju Girriamma
fe39623ded patch stepactions and disable-affinity-assistant in test-s390x.sh
fix catalog test failures on s390x
2024-06-22 06:53:19 +01:00
Sachin Itagi
6fe53389ac Fix catalog test for ppc64le
Replace gradle image for gradle-0-4 test.
Add patch command to fix stepaction test.
Add Extra MAVEN_IMAGE parameter and patch command for maven-0-3 test.

Signed-off-by: Sachin Itagi <sachin.itagi@ibm.com>
2024-05-31 05:53:11 +01:00
Chitrang Patel
4af081c6a5 Created StepAction tekton-catalog-publish
Added a StepAction `tekton-catalog-publish` to assist in
publishing the StepAction catalog as a bundle.
2024-03-12 16:29:34 +00:00
Chitrang Patel
5168415df3 Add First StepAction git-clone to the catalog
This PR adds a first StepAction `git-clone` to the
catalog. It is based off the Task but with samples and
tests updated.
2024-03-08 13:39:32 +00:00
vinamra28
1dfd21c4b8 Add logger to identify the pod failure 2023-09-27 12:52:25 +01:00
vinamra28
abba6b845e Skip the installation check for deprecated tasks
Signed-off-by: vinamra28 <jvinamra776@gmail.com>
2023-09-27 12:52:25 +01:00
vinamra28
c9e1416fed Bump pipelines to v0.51.0
E2E tests were running an older version of pipelines ie v0.45.0.
Bumping it to use the latest version v0.51.0 so that current tasks in
catalog can be tested against latest version

Also remove pipelineresources check while doing installation of latest
version of pipelines

Signed-off-by: vinamra28 <jvinamra776@gmail.com>
2023-09-27 12:52:25 +01:00
Piyush Garg
c9bded36fb Move e2e to run on kind in CI 2023-09-15 20:30:19 +01:00
Andrew Bayer
203764ae45 Update e2e-tests to use Pipeline v0.45.0
Signed-off-by: Andrew Bayer <andrew.bayer@gmail.com>
2023-03-06 20:34:51 +00:00
vinamra28
f648131a87 Bump pipelines version to v0.44.0
Signed-off-by: vinamra28 <jvinamra776@gmail.com>
2023-02-02 11:40:15 +00:00
Vincent Demeester
a94f8677db e2e-tests.sh: bump to 0.40.0 pipeline release
Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
2022-09-28 16:55:12 +02:00
Lee Bernick
5e1f510bb4 Use latest release for e2e tests
This commit updates the catalog e2e tests to use the latest Pipelines release.
Because this release removes support for v1alpha1 Task, TaskRun, Pipeline, and
PipelineRun, and the previous release removes support for Conditions, this
commit also updates tests to use up-to-date versions of Tekton CRDs.
It does not update any catalog Tasks or Pipelines.
2022-07-28 03:07:31 +01:00
manojbison
8c5bb21350 Use Multi-arch gradle image for ppc64le, s390x gradle tasks 2022-06-21 09:55:09 +01:00
pritidesai
2d08b8cc98 updating pipeline release
Updating the catalog repo test infrastructure to use the latest release - v0.35
2022-05-03 15:15:53 +01:00
vinamra28
7f6c32af98 Bump pipelines version to 0.34.1
Signed-off-by: vinamra28 <jvinamra776@gmail.com>
2022-04-01 14:14:24 +01:00
vinamra28
c54abcc2a7 Increase no of parallel test runs to 8
Since the no of resources in catalog are increasing, the whole test
suite is taking more time so increasing the parallel run from 5 -> 8

Signed-off-by: vinamra28 <jvinamra776@gmail.com>
2022-04-01 14:14:24 +01:00
Andrea Frittoli
4bf8b57aa1 Update the RELEASE_YAML to pipeline v0.33.1
Update the e2e tests to use the latest release of Tekton pipelines
v0.33.1.

Signed-off-by: Andrea Frittoli <andrea.frittoli@gmail.com>
2022-02-28 09:23:14 +00:00
Andrea Frittoli
6e2659db33 Update the RELEASE_YAML to pipeline v0.33.0
Update the e2e tests to use the latest release of Tekton pipelines
v0.33.0.

Signed-off-by: Andrea Frittoli <andrea.frittoli@gmail.com>
2022-02-18 04:22:09 +00:00
Scott
dc8b8523c7 Update e2e test script to Pipelines v0.32.0
Prior to this commit we were using Pipelines 0.28 for running e2e tests
in the Catalog.

This commit updates the pipelines version used during testing to 0.32.0,
which was released today.

After making this change one of the steps in an Orka Task is now failing
due to a naming conflict. This commit also renames the step to work
around the issue.
2022-02-03 14:41:05 +00:00
Siddhesh Ghadi
cbc2d9172c Add test script for ppc64le platform
Script contains
  - image values, required for ppc64le platform
  - tasks to skip on ppc64le platform

Signed-off-by: Siddhesh Ghadi <Siddhesh.Ghadi@ibm.com>
2022-01-18 17:41:04 +00:00
Yulia Gaponenko
cab0b76389 Extend catalog test script to run test for different platforms
PLATFORM env variable is introduced. This variable allows to run
tests for specific platform (for insance, "linux/s390x" or "linux/ppc64le").
If the environment variable is specified
- some tests are updated with different image values/other parameter
values, required for specific platform, using yq tool.
Custom values should be specified in the script file, separate for each
platform. In the current code script file for linux/s390x is proposed.
- only tasks, which have mention about corresponding platform support
in the annotation, will be tested.
If PLATFORM env variale is no specified, the behaviour of test scripts
will be similar to the one before the PR.

Signed-off-by: Yulia Gaponenko <yulia.gaponenko1@de.ibm.com>
2021-11-12 04:38:42 +00:00
vinamra28
a6e8e8f880 Bump tektoncd/pipelines to 0.28.1 2021-10-07 15:50:30 +01:00
Yulia Gaponenko
3b9cd7c6b1 Use multi-arch go-rest-api-test image
The image is used in many catalog tests. To run the tests on many
platforms, the image should be the multi-arch one (at this moment -
linux/amd64, linux/ppc64le, linux/s390x, linux/arm64).

Signed-off-by: Yulia Gaponenko <yulia.gaponenko1@de.ibm.com>
2021-09-29 14:06:28 +01:00
Haibing Zhou
4bf19372b7 test/e2e: handle fixtures configmap volume correctly
When adding `fixtures` volume, we need to consider whether the task
already has a volumes section. If the volumes is already defined, then
we should add `fixtures` rather than replacing the whole volumes.
2021-09-01 07:06:14 +01:00
Priti Desai
1c210391f7 updating tekton pipeline
Tekton pipeline just released 0.26, updating catalog to use the
latest pipeline release.
2021-07-13 03:33:03 +01:00
Jerop Kipruto
48475388d3 Update catalog e2e test runner to use Pipelines v0.25.0
Pipelines just released v0.25.0.

This commit updates the e2e test runner to use the new version
of Pipelines when testing catalog entries.
2021-06-23 11:02:03 +01:00
Chmouel Boudjnah
5ca595fa2f Fix e2e test change detection
The regexp was catching up golang-test/ task so it will always test
everything when there is in golang-test/

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2021-06-02 12:14:54 +01:00
vinamra28
05ff826e10 Fix e2e scripts
As of now the function `detect_changed_e2e_test` was running even if the
variable `TEST_RUN_ALL_TESTS` value was set which resulted in breaking
the CI.

Add a condition to call the function iff `TEST_RUN_ALL_TESTS` value is
not set.

Signed-off-by: vinamra28 <vinjain@redhat.com>
2021-04-13 15:29:40 +01:00
Billy Lynch
6929f039f9 Remove extra set -x commands in e2e tests.
Aims to make e2e tests consistent across projects.
2021-04-12 21:50:40 +01:00
Piyush Garg
c2547bd722 Refactor in e2e script and pre-apply func
Created a function to run secure sidecar registry with cert
and calling that function from all tests to remove duplication
2021-04-08 14:19:48 +01:00
Scott
bfc1defbad Update catalog e2e test runner to use Pipelines version 0.23.0
Pipelines just released v0.23.0.

This commit updates the e2e test runner to use the new version
of Pipelines when testing catalog entries.
2021-04-06 17:43:48 +01:00
vinamra28
728280525e Run CI on whole catalog if e2e test modified
As of now if there is some modification in any e2e test then CI doesn't
run on whole catalog and this might result in failure of some task which
we get to know next day whene nightly periodic job runs.

This change detects the changes in the tests dir and if there is any
change then run the CI on whole catalog.

Signed-off-by: vinamra28 <vinjain@redhat.com>
2021-04-06 11:45:48 +01:00
vinamra28
5a36143b2e Append volumes in sidecar instead of podTemplate for fixture
In e2e tests script podTemplate was getting added even if the yaml
manifest contains only ConfigMap which was failing the CI.

Append volumes in sidecar to mount fixtures ConfigMap instead of using podTemplate
as appending the podTemplate was conditional and there can be scenarios
where podTemplate might get appended at wrong location.

Signed-off-by: vinamra28 <vinjain@redhat.com>
2021-04-06 11:45:48 +01:00
06kellyjac
442e379fd6 Go back to appending sidecars with python
- Check for libraries in a pip agnostic way
- allow for adding multiple sidecars with a reusable `add_sidecars` function
- fix overwriting sidecars issue for previous python
- make it more readable
2021-04-01 13:23:46 +01:00
Andrea Frittoli
67fde32738 Support response files in fixtures
Extend to test logic to be able to load the fixture reponse from a
file, so that we don't have to inline a long JSON doc into the fixture
config YAML. This is achieved by creating a config map with all the
files in the fixtures folder, and mounting that configmap as a volume
to the sidecar.

This allows improving the test for the github-add-comment task v0.4

Signed-off-by: Andrea Frittoli <andrea.frittoli@gmail.com>
2021-03-29 09:41:45 +01:00
06kellyjac
19d23ef044 Add sidecar using sed and remove python
Also check kubectl cmd installed
2021-03-11 16:53:48 +00:00
Priti Desai
b03d81f723 Bump Tekton Pipelines to 0.22.0
U pdating the RELEASE_YAML to bump the Tekton Pipelines to the latest version
in e2e tests.
2021-03-11 09:32:48 +00:00
Jerop Kipruto
26549f23a9 Bump Tekton Pipelines to 0.21.0
Bumping the Tekton Pipelines to the latest version in e2e tests, as directed in [step 15 of Tekton Pipelines release guide](https://github.com/tektoncd/pipeline/blob/master/tekton/release-cheat-sheet.md)
2021-02-17 07:16:47 +00:00
vinamra28
3911a649a3 Skip the validation of YAML if task is removed
If a task is being removed from the catalog then also the CI runs the
check for validating the YAML and thus fails if the task manifest is not
found.

This PR checks for the task directory whether it exists or not and in the case
where task directory is not present then the function doesn't checks the
validation of the YAML. Example if we remove the task knctl-deploy then
the CI would skip the check for that pull request.

Signed-off-by: vinamra28 <vinjain@redhat.com>
2021-01-21 10:22:39 +00:00
vinamra28
630c45ef79 Bump Tekton Pipelines to 0.20.0
Bumping the Tekton Pipelines to the latest version in e2e tests.

Signed-off-by: vinamra28 <vinjain@redhat.com>
2021-01-19 15:07:39 +00:00
vinamra28
d647f1b477 Fix e2e script to run only tests dir
The e2e tests detect changes in subdir but also applies that
subdir while testing which fails the tests for some new PRs such as

This PR detects changes even in subdir but only passes the valid test
dir path to the script and avoid subdirs such as /mods, /mocks etc

Signed-off-by: vinamra28 <vinjain@redhat.com>
2021-01-08 14:13:12 +00:00
Javier Romero
fb9c087d5c Add dependency checks to e2e test script
Signed-off-by: Javier Romero <rjavier@vmware.com>
2021-01-06 15:48:11 +00:00
vinamra28
6e8b819734 Fix e2e script to detect any file change
e2e script was unable to detect the changes in the `pre-apply-task-hook.sh` file(if any)
and was checking only file changes in YAML files. Fixed!

Signed-off-by: vinamra28 <vinjain@redhat.com>
2020-12-23 10:03:07 +00:00
vinamra28
f7a08103ef Skipping maven tests in CI
Since maven task is being flaky thus skipping that in the e2e tests for now.

Signed-off-by: vinamra28 <vinjain@redhat.com>
2020-12-17 14:15:05 +00:00
vinamra28
e87233aa01 Bump Tekton Pipeline version to 0.19.0
Signed-off-by: vinamra28 <vinjain@redhat.com>
2020-12-16 18:13:05 +00:00
vinamra28
33e4ef15eb Fix e2e: Test remaining tasks after parellelization
Currently no of parallel tasks running at a time are 5
but in case the last set of tasks doesn't count upto 5
then handling that case over here.

Signed-off-by: vinamra28 <vinjain@redhat.com>
2020-12-11 14:04:37 +00:00
Chmouel Boudjnah
5547bd74a2 Update to 0.18.1
Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2020-12-09 08:02:35 +00:00
Chmouel Boudjnah
4fde958a33 Allow redefining KUBECONFIG command
In some case we want to be able to redefine the KUBECONFIG commands, when other
CI needs to redefines it.

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2020-12-08 08:51:35 +00:00
Chmouel Boudjnah
8c986c2e74 Add parallelisation of tests
We were running previously the tests sequentially,

Since the catalogs tests are growing exponentially, let's add parallelization to
speed things up.

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2020-12-08 08:51:35 +00:00
vinamra28
c480135d95 Fix e2e scripts to test modified tasks
Current e2e script is only able to run integration tests on those PRs which include tests.
With this fix, tests will run on those PRs also in which only task yaml is changed

Signed-off-by: vinamra28 <vinjain@redhat.com>
2020-11-23 10:36:30 +00:00