Skip to content
Merged
Changes from 1 commit
Commits
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
89 changes: 89 additions & 0 deletions .harness/pythonsdkpublish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
inputSet:
name: python-sdk-publish
identifier: pythonsdkpublish
orgIdentifier: default
projectIdentifier: IPA_Release
pipeline:
identifier: publish_python_sdk
properties:
ci:
codebase:
build:
type: tag
spec:
tag: <+trigger.tag>
stages:
- stage:
identifier: build_info
type: CI
spec:
infrastructure:
type: KubernetesDirect
spec:
nodeSelector:
node_group: <+input>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how do these inputs get populated? it looks like a node taint issue in harness is causing the build to fail

@Sung96kim Sung96kim Aug 6, 2024

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

- parallel:
- stage:
identifier: code_checks
template:
templateInputs:
type: CI
variables:
- name: RUN_LINTER
type: String
value: "TRUE"
- name: isort
type: String
value: <+input>
- name: black
type: String
value: <+input>
- name: ruff
type: String
value: <+input>
- name: mypy
type: String
value: <+input>
- name: pylint
type: String
value: <+input>
- stage:
identifier: build_containers
type: CI
variables:
- name: test_poetry_args
type: String
value: <+input>
- name: deploy_poetry_args
type: String
value: <+input>
- name: test_ram
type: String
value: 2G
- name: deploy_ram
type: String
value: 2G
- parallel:
- stage:
identifier: snyk_tests
type: CI
variables:
- name: RUN_SNYK
type: String
value: "FALSE"
- name: container_ram
type: String
value: 2G
variables:
- name: repo
type: String
value: indico-client-python
- name: service
type: String
value: indico-client-python
- name: RUN_UNITTESTS
type: String
value: "TRUE"
- name: RUN_PUBLISH
type: String
value: "TRUE"