Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CI issues related to the GitHub action upload-artifact #2188

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

tatiana
Copy link
Collaborator

@tatiana tatiana commented Sep 20, 2024

Fix CI issues, as experienced in https://github.com/astronomer/astro-sdk/actions/runs/10957200761/job/30424844404\?pr\=2187

Error: This request has automatically failed because it uses a deprecated version of `actions/upload-artifact: v2`. Learn more: https://github.blog/changelog/2024-02-13-deprecation-notice-v1-and-v2-of-the-artifact-actions/

This PR also fixes the issue that would come after, similar to what we experienced in the Ray Provider and Cosmos projects.

Copy link
Collaborator Author

@tatiana tatiana left a comment

Choose a reason for hiding this comment

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

We need to apply the two recommended commits before merging this PR. They are in place only so we can validate the changes to the CI workflow within this branch.

@@ -1,16 +1,10 @@
name: Build and test astro Python SDK
on:
push:
branches: [ 'main', 'release-**' ]
branches: [ 'main', 'release-**', 'fix-ci' ]
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Suggested change
branches: [ 'main', 'release-**', 'fix-ci' ]
branches: [ 'main', 'release-**' ]

Comment on lines 6 to 7
- 'python-sdk/**'
- '.github/workflows/ci-python-sdk.yaml'
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Suggested change
- 'python-sdk/**'
- '.github/workflows/ci-python-sdk.yaml'
- 'python-sdk/**'
- '.github/workflows/ci-python-sdk.yaml'
pull_request:
branches: [ 'main', 'release-**' ]
paths:
- 'python-sdk/**'
- '.github/workflows/ci-python-sdk.yaml'
- '*'

@@ -601,6 +602,7 @@ jobs:
name: constraints-${{ matrix.python }}-${{ matrix.airflow }}
path: ./python-sdk/constraints-${{ matrix.python }}-${{ matrix.airflow }}
if-no-files-found: error
include-hidden-files: true

Code-Coverage:
if: github.event.action != 'labeled'
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I just noticed some tests failed due to uploading artefacts with the same name; this has to be addressed before we merge this PR. This project thas not been actively maintained for a while, so we may uncover other issues before this PR can be merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants