From 207312b8f2e48059814d63da24e0576828717389 Mon Sep 17 00:00:00 2001 From: Alex Dorrell Date: Thu, 11 Apr 2024 08:30:46 -0700 Subject: [PATCH 1/6] Moving Pipeline [aiohttp_responses] to Git --- .harness/pipeline.yaml | 114 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 114 insertions(+) create mode 100644 .harness/pipeline.yaml diff --git a/.harness/pipeline.yaml b/.harness/pipeline.yaml new file mode 100644 index 0000000..0f5f682 --- /dev/null +++ b/.harness/pipeline.yaml @@ -0,0 +1,114 @@ +pipeline: + name: aiohttp_responses + identifier: aiohttp_responses + tags: {} + template: + templateRef: shared_library + versionLabel: 0.0.2 + templateInputs: + properties: + ci: + codebase: + build: <+input> + stages: + - stage: + identifier: build_info + type: CI + spec: + infrastructure: + type: KubernetesDirect + spec: + nodeSelector: + node_group: cpu + - parallel: + - stage: + identifier: code_checks + template: + templateInputs: + type: CI + variables: + - name: RUN_LINTER + type: String + value: "TRUE" + - name: isort + type: String + value: isort --check-only --profile black aiohttp_responses tests + - name: black + type: String + value: black --check aiohttp_responses tests + - stage: + identifier: build_containers + type: CI + variables: + - name: test_poetry_args + type: String + value: " " + - name: deploy_poetry_args + type: String + value: " " + - name: test_ram + type: String + value: 2G + - name: deploy_ram + type: String + value: 2G + - parallel: + - stage: + identifier: unit_tests + template: + templateInputs: + type: CI + variables: + - name: test_command + type: String + value: " " + - name: git_lfs + type: String + value: "FALSE" + - name: node_selector + type: String + value: cpu + - name: test_ram + type: String + value: 2G + - name: test_cpu + type: String + value: 1000m + - stage: + identifier: snyk_tests + type: CI + spec: + execution: + steps: + - parallel: + - step: + identifier: snyk_open_source + type: Snyk + spec: + advanced: + fail_on_severity: critical + - step: + identifier: parse_code + type: Snyk + spec: + advanced: + fail_on_severity: critical + variables: + - name: RUN_SNYK + type: String + value: <+input>.default(TRUE).allowedValues(TRUE,FALSE) + - name: container_ram + type: String + value: 2G + variables: + - name: repo + type: String + value: aiohttp_responses + - name: service + type: String + value: aiohttp_responses + - name: RUN_UNITTESTS + type: String + value: "FALSE" + projectIdentifier: IPA_Release + orgIdentifier: default From 89a39657d0e5afbf8115c30f5dd576288901dbef Mon Sep 17 00:00:00 2001 From: Alex Dorrell Date: Thu, 11 Apr 2024 08:31:31 -0700 Subject: [PATCH 2/6] Moving Input Set [github_push] to Git --- .harness/github_push.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .harness/github_push.yaml diff --git a/.harness/github_push.yaml b/.harness/github_push.yaml new file mode 100644 index 0000000..776b7f2 --- /dev/null +++ b/.harness/github_push.yaml @@ -0,0 +1,26 @@ +inputSet: + name: github_push + tags: {} + identifier: github_push + orgIdentifier: default + projectIdentifier: IPA_Release + pipeline: + identifier: aiohttp_responses + template: + templateInputs: + properties: + ci: + codebase: + build: + type: branch + spec: + branch: <+trigger.branch> + stages: + - parallel: + - stage: + identifier: snyk_tests + type: CI + variables: + - name: RUN_SNYK + type: String + value: "FALSE" From 38d254b76d56d2b4f67bb82736fb69b817520f25 Mon Sep 17 00:00:00 2001 From: Alex Dorrell Date: Thu, 11 Apr 2024 08:32:57 -0700 Subject: [PATCH 3/6] Update pipeline aiohttp_responses --- .harness/pipeline.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.harness/pipeline.yaml b/.harness/pipeline.yaml index 0f5f682..a8dc506 100644 --- a/.harness/pipeline.yaml +++ b/.harness/pipeline.yaml @@ -3,8 +3,9 @@ pipeline: identifier: aiohttp_responses tags: {} template: - templateRef: shared_library - versionLabel: 0.0.2 + templateRef: account.shared_library + versionLabel: 1.1.0 + gitBranch: main templateInputs: properties: ci: From 0081fedb65dbf41f93bf1164dcd47b243248c8c9 Mon Sep 17 00:00:00 2001 From: Alex Dorrell Date: Thu, 11 Apr 2024 11:33:28 -0400 Subject: [PATCH 4/6] snyk filter --- .harness/snyk_filter.yaml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .harness/snyk_filter.yaml diff --git a/.harness/snyk_filter.yaml b/.harness/snyk_filter.yaml new file mode 100644 index 0000000..55bf683 --- /dev/null +++ b/.harness/snyk_filter.yaml @@ -0,0 +1,6 @@ +container: + enabled: false + exemptions: [] +oss: + enabled: true + exemptions: [] From aef88b883414abc58fafe2aad9952fccaac0bbda Mon Sep 17 00:00:00 2001 From: Alex Dorrell Date: Thu, 11 Apr 2024 08:33:54 -0700 Subject: [PATCH 5/6] Update pipeline aiohttp_responses --- .harness/pipeline.yaml | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/.harness/pipeline.yaml b/.harness/pipeline.yaml index a8dc506..f6f1215 100644 --- a/.harness/pipeline.yaml +++ b/.harness/pipeline.yaml @@ -37,6 +37,15 @@ pipeline: - name: black type: String value: black --check aiohttp_responses tests + - name: ruff + type: String + value: <+input> + - name: mypy + type: String + value: <+input> + - name: pylint + type: String + value: <+input> - stage: identifier: build_containers type: CI @@ -78,22 +87,6 @@ pipeline: - stage: identifier: snyk_tests type: CI - spec: - execution: - steps: - - parallel: - - step: - identifier: snyk_open_source - type: Snyk - spec: - advanced: - fail_on_severity: critical - - step: - identifier: parse_code - type: Snyk - spec: - advanced: - fail_on_severity: critical variables: - name: RUN_SNYK type: String From 612af3e81984c6e15da9ba67b0eccd4b87cc1397 Mon Sep 17 00:00:00 2001 From: Alex Dorrell Date: Thu, 11 Apr 2024 08:34:25 -0700 Subject: [PATCH 6/6] Update pipeline aiohttp_responses --- .harness/pipeline.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.harness/pipeline.yaml b/.harness/pipeline.yaml index f6f1215..d22f585 100644 --- a/.harness/pipeline.yaml +++ b/.harness/pipeline.yaml @@ -39,13 +39,13 @@ pipeline: value: black --check aiohttp_responses tests - name: ruff type: String - value: <+input> + value: "" - name: mypy type: String - value: <+input> + value: "" - name: pylint type: String - value: <+input> + value: "" - stage: identifier: build_containers type: CI