From a36a066dc49a8c98697aef281eaa3a44f3330111 Mon Sep 17 00:00:00 2001 From: Calvin Yau Date: Mon, 4 May 2026 16:22:09 -0700 Subject: [PATCH 1/7] chore: Add harness yml --- .harness/pipeline.yml | 50 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .harness/pipeline.yml diff --git a/.harness/pipeline.yml b/.harness/pipeline.yml new file mode 100644 index 00000000..cb1bfea2 --- /dev/null +++ b/.harness/pipeline.yml @@ -0,0 +1,50 @@ +# this file is used when repo in Harness is configured to be Remote instead of Inline + +pipeline: + name: First Pipeline + identifier: First_Pipeline + projectIdentifier: default_project + orgIdentifier: default + tags: {} + properties: + ci: + codebase: + connectorRef: GitHub_Connector + repoName: example-python + build: <+input> + stages: + - stage: + name: Test + identifier: build + description: "" + type: CI + spec: + cloneCodebase: true + caching: + enabled: true + override: true + paths: [] + buildIntelligence: + enabled: true + platform: + os: Linux + arch: Amd64 + runtime: + type: Cloud + spec: {} + execution: + steps: + - step: + type: Run + name: Run flow + identifier: Run_1 + spec: + shell: Sh + command: |- + echo "Using remote config version" + python3 -m pip install --upgrade "pip==26.1" + python3 -m pip install -r requirements.txt + python3 -m pip install -v git+https://github.com/codecov/codecov-cli.git@cy/harness_ci#subdirectory=codecov-cli + pytest --cov app --junitxml=junit.xml -o junit_family=legacy + codecov-cli --verbose upload-process --fail-on-error -t f7dfc3ad-4fa8-4e62-ab9f-4a33e2894f46 + description: Install requirements, install codecov-cli from branch, run tests, then upload From 47d583e69d540366dacd325d9f97380f52c224a7 Mon Sep 17 00:00:00 2001 From: Calvin Yau Date: Tue, 5 May 2026 10:05:01 -0700 Subject: [PATCH 2/7] chore: Remove pipeline.yml file --- .harness/pipeline.yml | 50 ------------------------------------------- 1 file changed, 50 deletions(-) delete mode 100644 .harness/pipeline.yml diff --git a/.harness/pipeline.yml b/.harness/pipeline.yml deleted file mode 100644 index cb1bfea2..00000000 --- a/.harness/pipeline.yml +++ /dev/null @@ -1,50 +0,0 @@ -# this file is used when repo in Harness is configured to be Remote instead of Inline - -pipeline: - name: First Pipeline - identifier: First_Pipeline - projectIdentifier: default_project - orgIdentifier: default - tags: {} - properties: - ci: - codebase: - connectorRef: GitHub_Connector - repoName: example-python - build: <+input> - stages: - - stage: - name: Test - identifier: build - description: "" - type: CI - spec: - cloneCodebase: true - caching: - enabled: true - override: true - paths: [] - buildIntelligence: - enabled: true - platform: - os: Linux - arch: Amd64 - runtime: - type: Cloud - spec: {} - execution: - steps: - - step: - type: Run - name: Run flow - identifier: Run_1 - spec: - shell: Sh - command: |- - echo "Using remote config version" - python3 -m pip install --upgrade "pip==26.1" - python3 -m pip install -r requirements.txt - python3 -m pip install -v git+https://github.com/codecov/codecov-cli.git@cy/harness_ci#subdirectory=codecov-cli - pytest --cov app --junitxml=junit.xml -o junit_family=legacy - codecov-cli --verbose upload-process --fail-on-error -t f7dfc3ad-4fa8-4e62-ab9f-4a33e2894f46 - description: Install requirements, install codecov-cli from branch, run tests, then upload From 1ede940261aaa79e59914b04e63d1c013881e3df Mon Sep 17 00:00:00 2001 From: Calvin Yau Date: Tue, 5 May 2026 10:35:37 -0700 Subject: [PATCH 3/7] feat: sample change --- app/calculator.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/calculator.py b/app/calculator.py index 4f380e8e..bc32c7e2 100644 --- a/app/calculator.py +++ b/app/calculator.py @@ -14,3 +14,5 @@ def divide(x, y): return 'Cannot divide by 0' return x * 1.0 / y + def test(): + return 'sample change' \ No newline at end of file From f96270e08ee57ffbb50ad1a6e8e332f95358f9b8 Mon Sep 17 00:00:00 2001 From: Calvin Date: Tue, 5 May 2026 10:57:36 -0700 Subject: [PATCH 4/7] Create Git Controlled Pipeline --- .harness/pipelines.yml | 48 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .harness/pipelines.yml diff --git a/.harness/pipelines.yml b/.harness/pipelines.yml new file mode 100644 index 00000000..863a6b03 --- /dev/null +++ b/.harness/pipelines.yml @@ -0,0 +1,48 @@ +pipeline: + name: Git Controlled Pipeline + identifier: Git_Controlled_Pipeline + projectIdentifier: default_project + orgIdentifier: default + tags: {} + properties: + ci: + codebase: + connectorRef: GitHub_Connector + repoName: example-python + build: <+input> + stages: + - stage: + name: Test + identifier: build + description: "" + type: CI + spec: + cloneCodebase: true + caching: + enabled: true + override: true + paths: [] + buildIntelligence: + enabled: true + platform: + os: Linux + arch: Amd64 + runtime: + type: Cloud + spec: {} + execution: + steps: + - step: + type: Run + name: Run flow + identifier: Run_1 + spec: + shell: Sh + command: |- + echo "Using remote config version" + python3 -m pip install --upgrade "pip==26.1" + python3 -m pip install -r requirements.txt + python3 -m pip install -v git+https://github.com/codecov/codecov-cli.git@cy/harness_ci#subdirectory=codecov-cli + pytest --cov app --junitxml=junit.xml -o junit_family=legacy + codecov-cli --verbose upload-process --fail-on-error -t f7dfc3ad-4fa8-4e62-ab9f-4a33e2894f46 + description: Install requirements, install codecov-cli from branch, run tests, then upload From 03ed702f1035e7c832e31a5ae6cd24ea38b87be0 Mon Sep 17 00:00:00 2001 From: Calvin Date: Tue, 5 May 2026 13:23:54 -0700 Subject: [PATCH 5/7] Create inputset Git Input Set --- .harness/input-set-default.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .harness/input-set-default.yml diff --git a/.harness/input-set-default.yml b/.harness/input-set-default.yml new file mode 100644 index 00000000..d94e1d8b --- /dev/null +++ b/.harness/input-set-default.yml @@ -0,0 +1,14 @@ +inputSet: + name: Git Input Set + identifier: Git_Input_Set + orgIdentifier: default + projectIdentifier: default_project + pipeline: + identifier: Git_Controlled_Pipeline + properties: + ci: + codebase: + build: + type: branch + spec: + branch: <+trigger.branch> From 1bc35aa4ad5ba8ec3ca7120fb81feb586cfb585e Mon Sep 17 00:00:00 2001 From: Calvin Yau Date: Tue, 5 May 2026 13:34:32 -0700 Subject: [PATCH 6/7] chore: Another change --- app/calculator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/calculator.py b/app/calculator.py index bc32c7e2..7af76776 100644 --- a/app/calculator.py +++ b/app/calculator.py @@ -15,4 +15,4 @@ def divide(x, y): return x * 1.0 / y def test(): - return 'sample change' \ No newline at end of file + return 'sample change again' \ No newline at end of file From 2aa01f7e7a8c317e57efc2b3ba0d3c1f80a46c99 Mon Sep 17 00:00:00 2001 From: Calvin Yau Date: Tue, 5 May 2026 13:56:06 -0700 Subject: [PATCH 7/7] chore: More change --- app/calculator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/calculator.py b/app/calculator.py index 7af76776..bc32c7e2 100644 --- a/app/calculator.py +++ b/app/calculator.py @@ -15,4 +15,4 @@ def divide(x, y): return x * 1.0 / y def test(): - return 'sample change again' \ No newline at end of file + return 'sample change' \ No newline at end of file