From 756162b177a94f7c83bac853719459927fe56276 Mon Sep 17 00:00:00 2001 From: Tom Hu <88201630+thomasrockhu-codecov@users.noreply.github.com> Date: Fri, 22 May 2026 06:26:39 -0600 Subject: [PATCH 1/5] ci: remove Enforce License Compliance workflow (#347) Removes the Enforce License Compliance GitHub Actions workflow. --- .github/workflows/enforce-license-compliance.yml | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 .github/workflows/enforce-license-compliance.yml diff --git a/.github/workflows/enforce-license-compliance.yml b/.github/workflows/enforce-license-compliance.yml deleted file mode 100644 index 86be7410..00000000 --- a/.github/workflows/enforce-license-compliance.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: Enforce License Compliance - -on: - pull_request: - branches: [main, master] - -jobs: - enforce-license-compliance: - runs-on: ubuntu-latest - steps: - - name: 'Enforce License Compliance' - uses: getsentry/action-enforce-license-compliance@57ba820387a1a9315a46115ee276b2968da51f3d # main - with: - fossa_api_key: ${{ secrets.FOSSA_API_KEY }} From 9c01d492dc6327df3cd76ebb0af2e5914ae6e80c Mon Sep 17 00:00:00 2001 From: Calvin Yau Date: Tue, 23 Jun 2026 12:34:42 -0700 Subject: [PATCH 2/5] Added pipeline .harness/pipelines/example-python-1782243273911.yaml --- .../example-python-1782243273911.yaml | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .harness/pipelines/example-python-1782243273911.yaml diff --git a/.harness/pipelines/example-python-1782243273911.yaml b/.harness/pipelines/example-python-1782243273911.yaml new file mode 100644 index 00000000..c17de680 --- /dev/null +++ b/.harness/pipelines/example-python-1782243273911.yaml @@ -0,0 +1,33 @@ +pipeline: + name: Build example-python + identifier: Build_codecov_example_python_1782243281624 + projectIdentifier: calvin + orgIdentifier: default + stages: + - stage: + name: Build + identifier: Build + type: CI + spec: + cloneCodebase: true + execution: + steps: + - step: + type: Run + name: Echo Welcome Message + identifier: Echo_Welcome_Message + spec: + shell: Sh + command: echo "Welcome to Harness CI" + platform: + os: Linux + arch: Amd64 + runtime: + type: Cloud + spec: {} + properties: + ci: + codebase: + connectorRef: account.Github + repoName: codecov/example-python + build: <+input> From eb08dd01903a92f704fc6701d31db64a5598317f Mon Sep 17 00:00:00 2001 From: Calvin Yau Date: Tue, 23 Jun 2026 12:34:43 -0700 Subject: [PATCH 3/5] Added input set .harness/Build_codecov_example_python_1782243281624-pr-trigger-input-set-1782243283201.yaml --- ...3281624-pr-trigger-input-set-1782243283201.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .harness/Build_codecov_example_python_1782243281624-pr-trigger-input-set-1782243283201.yaml diff --git a/.harness/Build_codecov_example_python_1782243281624-pr-trigger-input-set-1782243283201.yaml b/.harness/Build_codecov_example_python_1782243281624-pr-trigger-input-set-1782243283201.yaml new file mode 100644 index 00000000..3ca5367c --- /dev/null +++ b/.harness/Build_codecov_example_python_1782243281624-pr-trigger-input-set-1782243283201.yaml @@ -0,0 +1,14 @@ +inputSet: + name: Build_codecov_example_python_1782243281624-pr-trigger-input-set + identifier: Build_codecov_example_python_1782243281624prtriggerinputset + orgIdentifier: default + projectIdentifier: calvin + pipeline: + identifier: Build_codecov_example_python_1782243281624 + properties: + ci: + codebase: + build: + type: PR + spec: + number: <+trigger.prNumber> From d9d3970e7db384c5a6a2e0663899dae3ccb4c3c9 Mon Sep 17 00:00:00 2001 From: Calvin Yau Date: Tue, 23 Jun 2026 12:34:45 -0700 Subject: [PATCH 4/5] Added input set .harness/Build_codecov_example_python_1782243281624-push-trigger-input-set-1782243284714.yaml --- ...81624-push-trigger-input-set-1782243284714.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .harness/Build_codecov_example_python_1782243281624-push-trigger-input-set-1782243284714.yaml diff --git a/.harness/Build_codecov_example_python_1782243281624-push-trigger-input-set-1782243284714.yaml b/.harness/Build_codecov_example_python_1782243281624-push-trigger-input-set-1782243284714.yaml new file mode 100644 index 00000000..990893c4 --- /dev/null +++ b/.harness/Build_codecov_example_python_1782243281624-push-trigger-input-set-1782243284714.yaml @@ -0,0 +1,14 @@ +inputSet: + name: Build_codecov_example_python_1782243281624-push-trigger-input-set + identifier: Build_codecov_example_python_1782243281624pushtriggerinputset + orgIdentifier: default + projectIdentifier: calvin + pipeline: + identifier: Build_codecov_example_python_1782243281624 + properties: + ci: + codebase: + build: + type: branch + spec: + branch: <+trigger.branch> From 39ae9b5a31ff43a5aa0460c754e69438a81470c9 Mon Sep 17 00:00:00 2001 From: Tom Hu <88201630+thomasrockhu-codecov@users.noreply.github.com> Date: Tue, 21 Jul 2026 18:03:45 -0600 Subject: [PATCH 5/5] Harness (#350) * Create pipeline Build example-python * Update pipeline Build example-python * Update pipeline Build example-python * Update pipeline Build example-python * Update pipeline Build example-python * Update pipeline Build example-python * Update pipeline Build example-python * Update pipeline Build example-python --- .../projects/codecov/pipelines/CI.yaml | 76 +++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 .harness/orgs/codecov/projects/codecov/pipelines/CI.yaml diff --git a/.harness/orgs/codecov/projects/codecov/pipelines/CI.yaml b/.harness/orgs/codecov/projects/codecov/pipelines/CI.yaml new file mode 100644 index 00000000..ff83b086 --- /dev/null +++ b/.harness/orgs/codecov/projects/codecov/pipelines/CI.yaml @@ -0,0 +1,76 @@ +pipeline: + name: Build example-python + identifier: Build_codecov_example_python_1782243281624 + projectIdentifier: codecov + orgIdentifier: codecov + stages: + - stage: + name: Build + identifier: Build + type: CI + spec: + cloneCodebase: true + execution: + steps: + - step: + type: Run + name: Install dependencies + identifier: Install_dependencies + spec: + shell: Sh + command: |- + python -m pip install --upgrade pip + pip install -r requirements.txt + pip install codecov-cli + - step: + type: Run + name: Run tests and collect coverage + identifier: Run_tests_and_collect_coverage + spec: + shell: Sh + command: pytest --cov app --cov-report=lcov:lcov.info + - step: + type: Run + name: Upload coverage to Harness + identifier: Upload_coverage_to_Harness + spec: + shell: Sh + command: hcli cov upload --file=lcov.info + envVariables: + CI_ENABLE_HCLI_FOR_TESTS: "true" + - step: + type: Run + name: Upload coverage to Codecov -- arg token + identifier: Upload_coverage_to_Codecov_arg_token + spec: + shell: Sh + command: codecovcli --verbose do-upload -t ${CODECOV_TOKEN} --fail-on-error + envVariables: + CODECOV_TOKEN: <+secrets.getValue("CODECOV_TOKEN")> + - step: + type: Run + name: Upload coverage to Codecov -- env token + identifier: Upload_coverage_to_Codecov_env_token + spec: + shell: Sh + command: codecovcli --verbose do-upload --fail-on-error + envVariables: + CODECOV_TOKEN: <+secrets.getValue("CODECOV_TOKEN")> + platform: + os: Linux + arch: Amd64 + runtime: + type: Cloud + spec: {} + failureStrategies: + - onFailure: + errors: + - AllErrors + action: + type: MarkAsFailure + properties: + ci: + codebase: + connectorRef: codecov + repoName: example-python + build: <+input>