Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
8a2f248
Add operator-test-playbooks into the container for tests.
samvarankashyap Jun 24, 2021
c0ff802
Add verbosity and print statements for the runlogs
samvarankashyap Jun 24, 2021
8f8b9f5
Add and Update playbook variables
samvarankashyap Jun 25, 2021
66e688d
Removed comments and unused tags inside dockerfile and actions
samvarankashyap Jun 28, 2021
6f4c417
Setting latest aqua for tests (#166)
mvalarh Jul 8, 2021
aafbc79
CVP-1871. Modified config file by removing items in skip-list and fix…
LikhithaEda Jun 28, 2021
d511884
Merge pull request #157 from LikhithaEda/local
wheelerlaw Jul 9, 2021
7037153
Bugfix for extract-operator-bundle.yml bundle sanity checks causing s…
samvarankashyap Jul 9, 2021
69ee094
Merge pull request #175 from samvarankashyap/bugfix_post_linting
samvarankashyap Jul 9, 2021
c9ef1a6
Fix test-operator-test-playbooks
sonam1412 Jul 12, 2021
9771acc
Merge pull request #180 from sonam1412/fix-test-operatorTestPlaybooks…
sonam1412 Jul 12, 2021
f588eba
CVP-1871 subtasks: removed all numbered checks in skiplist
LikhithaEda Jul 12, 2021
4363c70
Change respective paths inside the container and use subprocess.run for
samvarankashyap Jun 28, 2021
ce1a3ff
Merge pull request #184 from LikhithaEda/local
wheelerlaw Jul 13, 2021
51b9d24
Updated paths and binaries for scripts
samvarankashyap Jul 14, 2021
fd73c4f
Updated upstream cvp-midstream-image endpoint
samvarankashyap Jul 15, 2021
7d02508
Added custom script for fix_etc_passwd_k8s.sh to run midstream image …
samvarankashyap Jul 19, 2021
4c76cd3
Update the operatorsdk version to v1.9.0
samvarankashyap Jul 21, 2021
f817799
Add clean_up method in unit tests
samvarankashyap Jul 21, 2021
3088aeb
Update the midstream scripts and Dockerfile
samvarankashyap Jul 21, 2021
40ab6a9
Merge pull request #160 from samvarankashyap/add_playbooks
samvarankashyap Jul 22, 2021
18c682a
[CVP-1887] Use the v1.9.0 version of operator-sdk for operator bundle…
14rcole Jul 12, 2021
ae20967
Merge pull request #197 from 14rcole/bundle-operator-sdk-1.9.0
14rcole Jul 26, 2021
ebe789e
Updated operatorsdk version to v1.9.0
samvarankashyap Jul 21, 2021
594c329
Merge pull request #196 from samvarankashyap/update_midstream_endpoint
samvarankashyap Jul 29, 2021
ce83873
cvp-2129 PR analysis
LikhithaEda Aug 3, 2021
04fe535
Merge pull request #207 from LikhithaEda/local
wheelerlaw Aug 12, 2021
9a99a3f
Tests are now running only in upstream-community
mvalarh Sep 14, 2021
b681777
Merge pull request #241 from redhat-openshift-ecosystem/fix/upstream_…
dirgim Sep 14, 2021
bb6b519
Add checks for deprecated APIs to midstream pipeline
14rcole Aug 31, 2021
ad3e266
Merge pull request #231 from 14rcole/check-for-deprecated-apis
14rcole Sep 15, 2021
6440fb6
Updates to tests for deprecated APIs check
dirgim Sep 20, 2021
bc44620
Add default positive operator bundle unit test
dirgim Sep 20, 2021
8140c26
Add deprecated bundle CI unit tests
dirgim Sep 20, 2021
28247fd
Change CI unit tests to contain resource links
dirgim Sep 20, 2021
4a2edf3
Merge pull request #249 from dirgim/deprecated-apis-updates
dirgim Sep 22, 2021
a6caa64
Ensure correct data types in parsed_operator_data.yml
dirgim Oct 5, 2021
60ec037
Add unit tests for extract-operator-bundle.yml
dirgim Oct 7, 2021
05c3232
Merge pull request #256 from dirgim/ensure-parsed-operator-data
dirgim Oct 8, 2021
5d167c7
Update the operator sdk to 1.13.1
wheelerlaw Oct 5, 2021
ceaf9f0
Merge pull request #257 from wheelerlaw/CVP-2382_update-operator-sdk
wheelerlaw Oct 14, 2021
f29c387
Bump ujson from 4.0.2 to 5.1.0 in /docs/pr-analysis
dependabot[bot] Jan 21, 2022
fd46123
Merge pull request #308 from redhat-openshift-ecosystem/dependabot/pi…
dirgim Jan 22, 2022
c506f90
[CVP-2565] Upgrade to operator-sdk to v1.16.0 for operator bundle tes…
sonam1412 Jan 25, 2022
a79df1d
Merge pull request #310 from sonam1412/upgrade-operator-sdk-1.16.0
sonam1412 Jan 31, 2022
4556250
Add check for openshift subscription
nmars Mar 19, 2022
18695b9
Merge pull request #327 from nmars/add-subscription-check
nmars Apr 12, 2022
5142207
Revert "Add check for openshift subscription"
nmars Apr 13, 2022
6b584f1
Merge pull request #334 from redhat-openshift-ecosystem/revert-327-ad…
nmars Apr 13, 2022
cc92d65
Parse OpenShift subscription data from CSV
nmars Mar 19, 2022
42786e0
Merge pull request #341 from nmars/add-subscription-check
nmars May 19, 2022
8abbc2b
Bump numpy from 1.21.1 to 1.22.0 in /docs/pr-analysis
dependabot[bot] Jun 22, 2022
992cb71
Bump ujson from 5.1.0 to 5.4.0 in /docs/pr-analysis
dependabot[bot] Jul 5, 2022
be19bf3
[CVP-3217] Fix issue parsing current channel
nmars Sep 7, 2022
de870fa
Merge pull request #374 from nmars/CVP-3217
nmars Sep 8, 2022
0c30468
[CVP-3345] Fix Pyxis queries for ocp versions
nmars Oct 26, 2022
f6f7844
Merge pull request #397 from nmars/CVP-3345
nmars Oct 26, 2022
3139177
[CVP-3364] Ensure default channel parsed as string
nmars Dec 14, 2022
136aaf0
[CVP-3442] Fix Pyxis query retries
nmars Dec 15, 2022
e5f9626
Merge pull request #422 from nmars/CVP-3364
nmars Dec 16, 2022
b62ca56
Merge pull request #423 from nmars/CVP-3442
nmars Dec 16, 2022
066329a
[CVP-2977] Upgrade operator-sdk to v1.26.0 for operator bundle testing
asergienk Jan 12, 2023
083babd
Merge pull request #428 from asergienk/CVP-2977
nmars Jan 31, 2023
7524894
[CVP-3518] Upgrade operator-sdk to v1.28.0 for operator bundle testing
asergienk Mar 28, 2023
439060e
Merge pull request #442 from asergienk/CVP-3518
asergienk Mar 30, 2023
eb02912
Bump requests from 2.25.1 to 2.31.0 in /docs/pr-analysis
dependabot[bot] May 23, 2023
cdb9cb9
Merge pull request #445 from redhat-openshift-ecosystem/dependabot/pi…
nmars Jun 28, 2023
3d8ad53
Add URL encoding for ocp version annotation
nmars Jul 18, 2023
cef581e
Merge pull request #446 from nmars/update-ocpversions-request
nmars Jul 26, 2023
30e7d84
[CVP-2652] Parse infrastructure feature annotations from CSV
asergienk Aug 14, 2023
13cef32
Merge pull request #447 from asergienk/parse_infrastructure-annotations
asergienk Aug 23, 2023
2155cac
Fix indentation for infrastructure features
asergienk Aug 24, 2023
e1e9ef0
Merge pull request #449 from asergienk/fix_indentation
asergienk Aug 24, 2023
9abd2ce
[CVP-3881] Change boolean to string for infrastructure feature annota…
asergienk Aug 28, 2023
d3837bc
Merge pull request #450 from asergienk/CVP-3881
asergienk Sep 1, 2023
3994892
[CVP-3949] Add olm.skipRange and olm.replaces to parsed_operator_data
yashvardhannanavati Nov 29, 2023
c3d6a83
Merge pull request #456 from yashvardhannanavati/olm_variables
nmars Dec 5, 2023
1b2b5d5
Fix stdout for test_validate_invalid_ocp_version_failure
yashvardhannanavati Feb 13, 2024
fc8885f
Merge pull request #459 from yashvardhannanavati/fix_ci
nmars Feb 13, 2024
9c74ef6
[CVP-3985] Add spec.skips to parsed_operator_data
yashvardhannanavati Feb 9, 2024
b183487
Merge pull request #457 from yashvardhannanavati/olm_variables
yashvardhannanavati Feb 13, 2024
b7d568c
[CVP-3985] add all targeted channels data to parsed_operator_data.yml
yashvardhannanavati Feb 12, 2024
0de5ef9
Merge pull request #458 from yashvardhannanavati/set_target_channels
yashvardhannanavati Feb 13, 2024
689373d
Update operator sdk version to 1.33.0
samvarankashyap Mar 14, 2024
6835cf5
Merge pull request #460 from samvarankashyap/cvp_3990
samvarankashyap Mar 18, 2024
1ef72dd
[CVP-4074]: Add retry steps to skopeo copy command
maneeshmehra May 17, 2024
35144db
Merge pull request #461 from maneeshmehra/cvp-4074
maneeshmehra May 22, 2024
4ad1435
[CVP-4088] Add spec.minKubeVersion to parsed_operator_data
Jun 18, 2024
116e6e2
Merge pull request #463 from asergienk/CVP-4088
asergienk Jun 18, 2024
75477c7
Update scorecard directory test for debugging purpose
mantomas Nov 5, 2024
676df4a
fix indent
mantomas Nov 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions .ansible-lint
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
exclude_paths:
- .cache/ # implicit unless exclude_paths is defined in config
- .github/
- roles/
- Dockerfiles
- ./*.yml
- yamllint.yml

warn_list: [] # or 'skip_list' to silence them completely
warn_list: [] # or 'skip_list' to silence them completely

skip_list:
- deprecated-command-syntax # Using command rather than an argument to e.g. file
Expand All @@ -17,4 +16,3 @@ skip_list:
- command-instead-of-shell # Use shell only when shell functionality is required
# - yaml # Violations reported by yamllint
- line-length
- comments
5 changes: 2 additions & 3 deletions .github/workflows/build_and_push_image_on_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ jobs:
git checkout $latestTag
echo "Latest tag is $latestTag"
podman --version
cd Dockerfiles/midstream/
podman build -t midstream_image:$latestTag -f Dockerfile --build-arg OPERATOR_SDK_VERSION=v1.4.0 --build-arg OPERATOR_TEST_PLAYBOOKS_TAG=$latestTag
podman build -t midstream_image:$latestTag -f Dockerfiles/midstream/Dockerfile .
podman login -u="$QUAY_USERNAME" -p="$QUAY_PASSWORD" quay.io
podman push midstream_image:$latestTag quay.io/samvarankashyap/cvp-midstream-image:$latestTag
podman push midstream_image:$latestTag quay.io/cvpops/cvp-midstream-image:$latestTag
5 changes: 2 additions & 3 deletions .github/workflows/build_and_push_latest_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ jobs:
QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }}
run: |
podman --version
cd Dockerfiles/midstream/
podman build -t midstream_image:latest -f Dockerfile --build-arg OPERATOR_SDK_VERSION=v1.4.0 --build-arg OPERATOR_TEST_PLAYBOOKS_TAG=master
podman build -t midstream_image:latest -f Dockerfiles/midstream/Dockerfile .
podman login -u="$QUAY_USERNAME" -p="$QUAY_PASSWORD" quay.io
podman push midstream_image:latest quay.io/samvarankashyap/cvp-midstream-image
podman push midstream_image:latest quay.io/cvpops/cvp-midstream-image:latest
6 changes: 2 additions & 4 deletions .github/workflows/build_and_test_midstream_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,9 @@ jobs:
- name: "Build the midstream image inside Dockerfiles"
run: |
podman --version
cd Dockerfiles/midstream/
podman build -t midstream_image:latest -f Dockerfile --build-arg OPERATOR_SDK_VERSION=v1.4.0
podman build -t midstream_image:latest -f Dockerfiles/midstream/Dockerfile .

- name: "Run unit tests"
continue-on-error: false
run: |
podman run -it -v $PWD:/project/operator-test-playbooks midstream_image:latest python3 /unit_tests.py

podman run --rm -ti --user=3149:0 midstream_image:latest unit_tests.py -vvv
7 changes: 3 additions & 4 deletions .github/workflows/build_and_test_upstream_ci_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,9 @@ jobs:
- name: "Build the upstream_ci_image inside Dockerfiles"
run: |
podman --version
podman build -t upstream_ci_image:latest -f Dockerfiles/ci/Dockerfile --build-arg OPERATOR_SDK_VERSION=v1.4.0
podman build -t upstream_ci_image:latest -f Dockerfiles/ci/Dockerfile

- name: "Run example operator-metadata with missing alm-examples through upstream_ci_image --> positive test"
- name: "Run the unit tests for the upstream operator CI"
continue-on-error: false
run: |
mkdir test_operator_work_dir output_logs
podman run -it -v $PWD:/project/operator-test-playbooks -v ./Dockerfiles/ci/example-metadata-without-alm-annotations:/project/operator_dir -v ./output_logs:/project/output -v ./test_operator_work_dir:/project/test_operator_work_dir -e TEST_NAME=test_for_report_success_empty_alm_examples -e OPERATOR_DIR=/project/operator_dir -e WORK_DIR=/project/output -e OPERATOR_WORK_DIR=/project/test_operator_work_dir/ upstream_ci_image:latest
podman run -it -v $PWD:/project/operator-test-playbooks -v ./Dockerfiles/ci:/project/test_dir -e TEST_DIR=/project/test_dir upstream_ci_image:latest
6 changes: 3 additions & 3 deletions .github/workflows/otp_upstream_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ env:

on:
pull_request:
branches: [ master ]
branches: [ upstream-community ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -27,7 +27,7 @@ jobs:
- name: Preparing operator test environment
run: ansible-playbook $ANSIBLE_BASE_ARGS --tags host_build
- name: Operator test
run: ansible-playbook $ANSIBLE_BASE_ARGS -e operator_dir=/tmp/community-operators-for-catalog/upstream-community-operators/aqua -e operator_version=6.0.0 --tags pure_test -e strict_mode=true -vv
run: ansible-playbook $ANSIBLE_BASE_ARGS -e operator_dir=/tmp/community-operators-for-catalog/upstream-community-operators/aqua -e operator_version=6.2.0 --tags pure_test -e strict_mode=true -vv
otpu_manifest_to_bundle_format:
name: Manifest to bundle format
runs-on: ubuntu-latest
Expand All @@ -43,7 +43,7 @@ jobs:
- name: Preparing operator test environment
run: ansible-playbook $ANSIBLE_BASE_ARGS --tags host_build
- name: Operator test
run: ansible-playbook $ANSIBLE_BASE_ARGS -e operator_dir=/tmp/community-operators-for-catalog/upstream-community-operators/aqua -e operator_version=6.0.0 --tags pure_test -e strict_mode=true -vv
run: ansible-playbook $ANSIBLE_BASE_ARGS -e operator_dir=/tmp/community-operators-for-catalog/upstream-community-operators/aqua -e operator_version=6.2.0 --tags pure_test -e strict_mode=true -vv
otpu_index_from_scratch:
name: Index from scratch
runs-on: ubuntu-latest
Expand Down
14 changes: 9 additions & 5 deletions Dockerfiles/ci/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
FROM registry.fedoraproject.org/fedora:33
WORKDIR /project
ARG OPERATOR_SDK_VERSION=v1.4.0
ARG OPERATOR_SDK_VERSION=v1.33.0
RUN export ARCH=$(case $(arch) in x86_64) echo -n amd64 ;; aarch64) echo -n arm64 ;; *) echo -n $(arch) ;; esac);\
export OS=$(uname | awk '{print tolower($0)}');\
export OPERATOR_SDK_DL_URL=https://github.com/operator-framework/operator-sdk/releases/download/$OPERATOR_SDK_VERSION/;\
curl -L -o /usr/local/bin/operator-sdk ${OPERATOR_SDK_DL_URL}/operator-sdk_${OS}_${ARCH} \
&& chmod a+x /usr/local/bin/operator-sdk && \
export OPERATOR_SDK_DL_URL=https://github.com/operator-framework/operator-sdk/releases/download/$OPERATOR_SDK_VERSION;\
curl -L -o /usr/local/bin/operator-sdk ${OPERATOR_SDK_DL_URL}/operator-sdk_${OS}_${ARCH} && \
chmod a+x /usr/local/bin/operator-sdk && \
curl -fL -o /usr/local/bin/yq https://github.com/mikefarah/yq/releases/download/2.2.1/yq_linux_amd64 && \
chmod a+x /usr/local/bin/yq && \
curl -fL -o /usr/local/bin/umoci https://github.com/opencontainers/umoci/releases/download/v0.4.5/umoci.amd64 && \
chmod a+x /usr/local/bin/umoci && \
mkdir /project/output && \
dnf install --setopt=install_weak_deps=False -y git-core ansible python3-pip mlocate && \
dnf install --setopt=install_weak_deps=False -y git-core ansible python3-pip mlocate jq skopeo && \
dnf clean all && \
pip3 install operator-courier
ADD ./run_tests.py /run_tests.py
Expand Down
4 changes: 1 addition & 3 deletions Dockerfiles/ci/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ podman run -it -v $PWD:/project/operator-test-playbooks -v ./Dockerfiles/ci/exam

---
** NOTE **

currently there is only one test inside the container image i.e., test_for_report_failed_empty_alm_examples
In order to add more tests please add more functions to run_tests.py inside the Dockerfiles/ci folder in operator-test-playbooks
New tests can be created by adding functions to `Dockerfiles/ci/run_tests.py`.

---

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: backups.velero.io
labels:
component: velero
spec:
group: velero.io
version: v1
scope: Namespaced
names:
plural: backups
kind: Backup
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: backupstoragelocations.velero.io
labels:
component: velero
spec:
group: velero.io
version: v1
scope: Namespaced
names:
plural: backupstoragelocations
kind: BackupStorageLocation
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: deletebackuprequests.velero.io
labels:
component: velero
spec:
group: velero.io
version: v1
scope: Namespaced
names:
plural: deletebackuprequests
kind: DeleteBackupRequest
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: downloadrequests.velero.io
labels:
component: velero
spec:
group: velero.io
version: v1
scope: Namespaced
names:
plural: downloadrequests
kind: DownloadRequest
Loading
Loading