Skip to content

Commit

Permalink
fix: workaround continue-on-error for ORT (#133)
Browse files Browse the repository at this point in the history
* fix: workaround continue-on-error for ORT
  • Loading branch information
tataranovich authored Dec 20, 2024
1 parent 93aa819 commit 6047685
Show file tree
Hide file tree
Showing 16 changed files with 53 additions and 43 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/generic_docker_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
lfs: true
- uses: epam/ai-dial-ci/actions/[email protected].0
- uses: epam/ai-dial-ci/actions/[email protected].1
with:
image_name: ghcr.io/${{ env.IMAGE_NAME }}
image_tag: test
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/generic_docker_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
is_latest: ${{ steps.semantic_versioning.outputs.is_latest }}
latest_tag: ${{ steps.semantic_versioning.outputs.latest_tag }}
steps:
- uses: epam/ai-dial-ci/actions/[email protected].0
- uses: epam/ai-dial-ci/actions/[email protected].1
id: semantic_versioning

release:
Expand All @@ -78,14 +78,14 @@ jobs:
- calculate_version
- test
steps:
- uses: epam/ai-dial-ci/actions/[email protected].0
- uses: epam/ai-dial-ci/actions/[email protected].1
with:
latest_tag: ${{ needs.calculate_version.outputs.latest_tag }}
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
lfs: true
token: ${{ secrets.ACTIONS_BOT_TOKEN }}
- uses: epam/ai-dial-ci/actions/[email protected].0
- uses: epam/ai-dial-ci/actions/[email protected].1
with:
ghcr_username: ${{ github.actor }}
ghcr_password: ${{ secrets.ACTIONS_BOT_TOKEN }}
Expand All @@ -102,7 +102,7 @@ jobs:
${{ github.ref == 'refs/heads/development' && format('{0}/{1}:{2}', 'ghcr.io', env.IMAGE_NAME, 'development') || ''}}
${{ startsWith(github.ref, 'refs/heads/release-') && needs.calculate_version.outputs.is_latest == 'true' && format('{0}:{1}', env.IMAGE_NAME, 'latest') || ''}}
${{ startsWith(github.ref, 'refs/heads/release-') && needs.calculate_version.outputs.is_latest == 'true' && format('{0}/{1}:{2}', 'ghcr.io', env.IMAGE_NAME, 'latest') || ''}}
- uses: epam/ai-dial-ci/actions/[email protected].0
- uses: epam/ai-dial-ci/actions/[email protected].1
with:
tag_version: ${{ needs.calculate_version.outputs.next_version }}
changelog_file: "/tmp/my_changelog" # comes from generate_release_notes step; TODO: beautify
4 changes: 3 additions & 1 deletion .github/workflows/generic_docker_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,11 @@ jobs:
with:
lfs: true
- uses: oss-review-toolkit/ort-ci-github-action@9acdf1e56f1b42972b12274ae56c35bf70a5f65b # v1.0.1
env:
CONTINUE_ON_ERROR: ${{ inputs.bypass_checks || inputs.bypass_ort }} # Hack to use the input below as a boolean
with:
image: "ghcr.io/oss-review-toolkit/ort:${{ inputs.ort_version }}"
allow-dynamic-versions: "true"
fail-on: "violations"
ort-cli-args: "-P ort.forceOverwrite=true --stacktrace"
continue-on-error: ${{ inputs.bypass_checks || inputs.bypass_ort }}
continue-on-error: ${{ fromJSON(env.CONTINUE_ON_ERROR) }}
2 changes: 1 addition & 1 deletion .github/workflows/java_dependency_review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
lfs: true
persist-credentials: false
ref: ${{ github.event.pull_request.head.sha }}
- uses: epam/ai-dial-ci/actions/[email protected].0
- uses: epam/ai-dial-ci/actions/[email protected].1
with:
java_version: ${{ inputs.java_version }}
java_distribution: ${{ inputs.java_distribution }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/java_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
lfs: true
- uses: epam/ai-dial-ci/actions/[email protected].0
- uses: epam/ai-dial-ci/actions/[email protected].1
with:
java_version: ${{ inputs.java_version }}
java_distribution: ${{ inputs.java_distribution }}
Expand All @@ -88,7 +88,7 @@ jobs:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
lfs: true
- uses: epam/ai-dial-ci/actions/[email protected].0
- uses: epam/ai-dial-ci/actions/[email protected].1
with:
image_name: ghcr.io/${{ env.IMAGE_NAME }}
image_tag: test
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/java_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
is_latest: ${{ steps.semantic_versioning.outputs.is_latest }}
latest_tag: ${{ steps.semantic_versioning.outputs.latest_tag }}
steps:
- uses: epam/ai-dial-ci/actions/[email protected].0
- uses: epam/ai-dial-ci/actions/[email protected].1
id: semantic_versioning

release:
Expand All @@ -90,22 +90,22 @@ jobs:
- calculate_version
- test
steps:
- uses: epam/ai-dial-ci/actions/[email protected].0
- uses: epam/ai-dial-ci/actions/[email protected].1
with:
latest_tag: ${{ needs.calculate_version.outputs.latest_tag }}
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
lfs: true
token: ${{ secrets.ACTIONS_BOT_TOKEN }}
- uses: epam/ai-dial-ci/actions/[email protected].0
- uses: epam/ai-dial-ci/actions/[email protected].1
with:
java_version: ${{ inputs.java_version }}
java_distribution: ${{ inputs.java_distribution }}
- name: Set version
shell: bash
run: |
sed -i -E "s/^([ \t]*version[ \t]*=[ \t]*)[\"'].*[\"']/\1\"${{ needs.calculate_version.outputs.next_version }}\"/g" build.gradle
- uses: epam/ai-dial-ci/actions/[email protected].0
- uses: epam/ai-dial-ci/actions/[email protected].1
with:
ghcr_username: ${{ github.actor }}
ghcr_password: ${{ secrets.ACTIONS_BOT_TOKEN }}
Expand All @@ -123,7 +123,7 @@ jobs:
${{ startsWith(github.ref, 'refs/heads/release-') && needs.calculate_version.outputs.is_latest == 'true' && format('{0}:{1}', env.IMAGE_NAME, 'latest') || ''}}
${{ startsWith(github.ref, 'refs/heads/release-') && needs.calculate_version.outputs.is_latest == 'true' && format('{0}/{1}:{2}', 'ghcr.io', env.IMAGE_NAME, 'latest') || ''}}
- uses: gradle/actions/dependency-submission@cc4fc85e6b35bafd578d5ffbc76a5518407e1af0 # v4.2.1
- uses: epam/ai-dial-ci/actions/[email protected].0
- uses: epam/ai-dial-ci/actions/[email protected].1
with:
tag_version: ${{ needs.calculate_version.outputs.next_version }}
changelog_file: "/tmp/my_changelog" # comes from generate_release_notes step; TODO: beautify
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/java_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
lfs: true
- uses: epam/ai-dial-ci/actions/[email protected].0
- uses: epam/ai-dial-ci/actions/[email protected].1
with:
java_version: ${{ inputs.java_version }}
java_distribution: ${{ inputs.java_distribution }}
Expand All @@ -69,7 +69,7 @@ jobs:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
lfs: true
- uses: epam/ai-dial-ci/actions/[email protected].0
- uses: epam/ai-dial-ci/actions/[email protected].1
with:
java_version: ${{ inputs.java_version }}
java_distribution: ${{ inputs.java_distribution }}
Expand All @@ -87,9 +87,11 @@ jobs:
with:
lfs: true
- uses: oss-review-toolkit/ort-ci-github-action@9acdf1e56f1b42972b12274ae56c35bf70a5f65b # v1.0.1
env:
CONTINUE_ON_ERROR: ${{ inputs.bypass_checks || inputs.bypass_ort }} # Hack to use the input below as a boolean
with:
image: "ghcr.io/oss-review-toolkit/ort:${{ inputs.ort_version }}"
allow-dynamic-versions: "true"
fail-on: "violations"
ort-cli-args: "-P ort.forceOverwrite=true --stacktrace -P ort.analyzer.enabledPackageManagers=Gradle"
continue-on-error: ${{ inputs.bypass_checks || inputs.bypass_ort }}
continue-on-error: ${{ fromJSON(env.CONTINUE_ON_ERROR) }}
2 changes: 1 addition & 1 deletion .github/workflows/node_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
lfs: true
- uses: epam/ai-dial-ci/actions/[email protected].0
- uses: epam/ai-dial-ci/actions/[email protected].1
with:
image_name: ghcr.io/${{ env.IMAGE_NAME }}
image_tag: test
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/node_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
is_latest: ${{ steps.semantic_versioning.outputs.is_latest }}
latest_tag: ${{ steps.semantic_versioning.outputs.latest_tag }}
steps:
- uses: epam/ai-dial-ci/actions/[email protected].0
- uses: epam/ai-dial-ci/actions/[email protected].1
id: semantic_versioning

release:
Expand All @@ -99,14 +99,14 @@ jobs:
- calculate_version
- test
steps:
- uses: epam/ai-dial-ci/actions/[email protected].0
- uses: epam/ai-dial-ci/actions/[email protected].1
with:
latest_tag: ${{ needs.calculate_version.outputs.latest_tag }}
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
lfs: true
token: ${{ secrets.ACTIONS_BOT_TOKEN }}
- uses: epam/ai-dial-ci/actions/[email protected].0
- uses: epam/ai-dial-ci/actions/[email protected].1
with:
node_version: ${{ inputs.node_version }}
clean_install: true
Expand All @@ -115,7 +115,7 @@ jobs:
shell: bash
run: |
npm version ${{ needs.calculate_version.outputs.next_version }} --no-git-tag-version || true # upstream branch may already be updated
- uses: epam/ai-dial-ci/actions/[email protected].0
- uses: epam/ai-dial-ci/actions/[email protected].1
with:
ghcr_username: ${{ github.actor }}
ghcr_password: ${{ secrets.ACTIONS_BOT_TOKEN }}
Expand Down Expand Up @@ -155,7 +155,7 @@ jobs:
IS_LATEST: ${{ needs.calculate_version.outputs.is_latest == 'true' }}
IS_DEVELOPMENT_BRANCH: ${{ github.ref == 'refs/heads/development' }}
IS_RELEASE_BRANCH: ${{ startsWith(github.ref, 'refs/heads/release-') }}
- uses: epam/ai-dial-ci/actions/[email protected].0
- uses: epam/ai-dial-ci/actions/[email protected].1
with:
tag_version: ${{ needs.calculate_version.outputs.next_version }}
changelog_file: "/tmp/my_changelog" # comes from generate_release_notes step; TODO: beautify
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/node_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
lfs: true
- uses: epam/ai-dial-ci/actions/[email protected].0
- uses: epam/ai-dial-ci/actions/[email protected].1
with:
node_version: ${{ inputs.node_version }}
clean_install: "true"
Expand All @@ -73,7 +73,7 @@ jobs:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
lfs: true
- uses: epam/ai-dial-ci/actions/[email protected].0
- uses: epam/ai-dial-ci/actions/[email protected].1
with:
node_version: ${{ inputs.node_version }}
clean_install: "true"
Expand All @@ -90,7 +90,7 @@ jobs:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
lfs: true
- uses: epam/ai-dial-ci/actions/[email protected].0
- uses: epam/ai-dial-ci/actions/[email protected].1
with:
node_version: ${{ inputs.node_version }}
clean_install: "true"
Expand All @@ -108,9 +108,11 @@ jobs:
with:
lfs: true
- uses: oss-review-toolkit/ort-ci-github-action@9acdf1e56f1b42972b12274ae56c35bf70a5f65b # v1.0.1
env:
CONTINUE_ON_ERROR: ${{ inputs.bypass_checks || inputs.bypass_ort }} # Hack to use the input below as a boolean
with:
image: "ghcr.io/oss-review-toolkit/ort:${{ inputs.ort_version }}"
allow-dynamic-versions: "true"
fail-on: "violations"
ort-cli-args: "-P ort.forceOverwrite=true --stacktrace -P ort.analyzer.enabledPackageManagers=NPM"
continue-on-error: ${{ inputs.bypass_checks || inputs.bypass_ort }}
continue-on-error: ${{ fromJSON(env.CONTINUE_ON_ERROR) }}
2 changes: 1 addition & 1 deletion .github/workflows/python_docker_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
lfs: true
- uses: epam/ai-dial-ci/actions/[email protected].0
- uses: epam/ai-dial-ci/actions/[email protected].1
with:
image_name: ghcr.io/${{ env.IMAGE_NAME }}
image_tag: test
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/python_docker_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
is_latest: ${{ steps.semantic_versioning.outputs.is_latest }}
latest_tag: ${{ steps.semantic_versioning.outputs.latest_tag }}
steps:
- uses: epam/ai-dial-ci/actions/[email protected].0
- uses: epam/ai-dial-ci/actions/[email protected].1
id: semantic_versioning

release:
Expand All @@ -86,7 +86,7 @@ jobs:
- calculate_version
- test
steps:
- uses: epam/ai-dial-ci/actions/[email protected].0
- uses: epam/ai-dial-ci/actions/[email protected].1
with:
latest_tag: ${{ needs.calculate_version.outputs.latest_tag }}
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand All @@ -97,7 +97,7 @@ jobs:
shell: bash
run: |
sed -i "s/^version = .*/version = \"${{ needs.calculate_version.outputs.non_semver_next_version }}\"/g" pyproject.toml
- uses: epam/ai-dial-ci/actions/[email protected].0
- uses: epam/ai-dial-ci/actions/[email protected].1
with:
ghcr_username: ${{ github.actor }}
ghcr_password: ${{ secrets.ACTIONS_BOT_TOKEN }}
Expand All @@ -114,7 +114,7 @@ jobs:
${{ github.ref == 'refs/heads/development' && format('{0}/{1}:{2}', 'ghcr.io', env.IMAGE_NAME, 'development') || ''}}
${{ startsWith(github.ref, 'refs/heads/release-') && needs.calculate_version.outputs.is_latest == 'true' && format('{0}:{1}', env.IMAGE_NAME, 'latest') || ''}}
${{ startsWith(github.ref, 'refs/heads/release-') && needs.calculate_version.outputs.is_latest == 'true' && format('{0}/{1}:{2}', 'ghcr.io', env.IMAGE_NAME, 'latest') || ''}}
- uses: epam/ai-dial-ci/actions/[email protected].0
- uses: epam/ai-dial-ci/actions/[email protected].1
with:
tag_version: ${{ needs.calculate_version.outputs.next_version }}
changelog_file: "/tmp/my_changelog" # comes from generate_release_notes step; TODO: beautify
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/python_docker_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
lfs: true
- uses: epam/ai-dial-ci/actions/[email protected].0
- uses: epam/ai-dial-ci/actions/[email protected].1
with:
python_version: ${{ inputs.python_version }}
- name: Test
Expand All @@ -64,7 +64,7 @@ jobs:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
lfs: true
- uses: epam/ai-dial-ci/actions/[email protected].0
- uses: epam/ai-dial-ci/actions/[email protected].1
with:
python_version: ${{ inputs.python_version }}
- name: Test
Expand All @@ -81,9 +81,11 @@ jobs:
with:
lfs: true
- uses: oss-review-toolkit/ort-ci-github-action@9acdf1e56f1b42972b12274ae56c35bf70a5f65b # v1.0.1
env:
CONTINUE_ON_ERROR: ${{ inputs.bypass_checks || inputs.bypass_ort }} # Hack to use the input below as a boolean
with:
image: "ghcr.io/oss-review-toolkit/ort:${{ inputs.ort_version }}"
allow-dynamic-versions: "true"
fail-on: "violations"
ort-cli-args: "-P ort.forceOverwrite=true --stacktrace -P ort.analyzer.enabledPackageManagers=Poetry"
continue-on-error: ${{ inputs.bypass_checks || inputs.bypass_ort }}
continue-on-error: ${{ fromJSON(env.CONTINUE_ON_ERROR) }}
2 changes: 1 addition & 1 deletion .github/workflows/python_package_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
lfs: true
- uses: epam/ai-dial-ci/actions/[email protected].0
- uses: epam/ai-dial-ci/actions/[email protected].1
with:
python_version: ${{ inputs.python_version }}
- run: make build
8 changes: 4 additions & 4 deletions .github/workflows/python_package_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
non_semver_next_version: ${{ steps.semantic_versioning.outputs.non_semver_next_version }}
latest_tag: ${{ steps.semantic_versioning.outputs.latest_tag }}
steps:
- uses: epam/ai-dial-ci/actions/[email protected].0
- uses: epam/ai-dial-ci/actions/[email protected].1
id: semantic_versioning

release:
Expand All @@ -88,14 +88,14 @@ jobs:
- calculate_version
- test
steps:
- uses: epam/ai-dial-ci/actions/[email protected].0
- uses: epam/ai-dial-ci/actions/[email protected].1
with:
latest_tag: ${{ needs.calculate_version.outputs.latest_tag }}
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
lfs: true
token: ${{ secrets.ACTIONS_BOT_TOKEN }}
- uses: epam/ai-dial-ci/actions/[email protected].0
- uses: epam/ai-dial-ci/actions/[email protected].1
with:
python_version: ${{ inputs.python_version }}
- name: Set version
Expand All @@ -109,7 +109,7 @@ jobs:
make publish
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
- uses: epam/ai-dial-ci/actions/[email protected].0
- uses: epam/ai-dial-ci/actions/[email protected].1
with:
tag_version: ${{ needs.calculate_version.outputs.non_semver_next_version }}
changelog_file: "/tmp/my_changelog" # comes from generate_release_notes step; TODO: beautify
Expand Down
Loading

0 comments on commit 6047685

Please sign in to comment.