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

Check-out the target commit when preparing PROD build artifacts #38678

Conversation

potiuk
Copy link
Member

@potiuk potiuk commented Apr 2, 2024

We have now a separate job that prepares and uploads artifacts when PROD image is being prepared for K8S testing. This saves a bit of time to prepare PROD image. However this step had a bug - it checked out the main version of code when preparing airflow and provider packages, so it was really testing the "previous" merge not the "current" PR.

This PR switches the job to prepare artifacts to use the same checkout strategy as the other build-image workflow jobs.


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

We have now a separate job that prepares and uploads artifacts
when PROD image is being prepared for K8S testing. This saves a bit
of time to prepare PROD image. However this step had a bug - it
checked out the `main` version of code when preparing airflow and
provider packages, so it was really testing the "previous" merge
not the "current" PR.

This PR switches the job to prepare artifacts to use the same
checkout strategy as the other build-image workflow jobs.
@higrys
Copy link

higrys commented Apr 2, 2024

Testing it in my fork (the only way to test build-image workflow):

@potiuk
Copy link
Member Author

potiuk commented Apr 2, 2024

Of course commented as the "non-committer" user :)

@potiuk
Copy link
Member Author

potiuk commented Apr 2, 2024

looks good. Merging .

@potiuk potiuk merged commit eb541ae into apache:main Apr 2, 2024
67 checks passed
@potiuk potiuk deleted the use-target-commit-when-preparing-prod-build-artifacts branch April 2, 2024 15:28
@potiuk potiuk added this to the Airflow 2.9.0 milestone Apr 2, 2024
ephraimbuddy pushed a commit that referenced this pull request Apr 2, 2024
We have now a separate job that prepares and uploads artifacts
when PROD image is being prepared for K8S testing. This saves a bit
of time to prepare PROD image. However this step had a bug - it
checked out the `main` version of code when preparing airflow and
provider packages, so it was really testing the "previous" merge
not the "current" PR.

This PR switches the job to prepare artifacts to use the same
checkout strategy as the other build-image workflow jobs.

(cherry picked from commit eb541ae)
ephraimbuddy pushed a commit that referenced this pull request Apr 2, 2024
We have now a separate job that prepares and uploads artifacts
when PROD image is being prepared for K8S testing. This saves a bit
of time to prepare PROD image. However this step had a bug - it
checked out the `main` version of code when preparing airflow and
provider packages, so it was really testing the "previous" merge
not the "current" PR.

This PR switches the job to prepare artifacts to use the same
checkout strategy as the other build-image workflow jobs.

(cherry picked from commit eb541ae)
idantepper pushed a commit to idantepper/airflow that referenced this pull request Apr 3, 2024
…he#38678)

We have now a separate job that prepares and uploads artifacts
when PROD image is being prepared for K8S testing. This saves a bit
of time to prepare PROD image. However this step had a bug - it
checked out the `main` version of code when preparing airflow and
provider packages, so it was really testing the "previous" merge
not the "current" PR.

This PR switches the job to prepare artifacts to use the same
checkout strategy as the other build-image workflow jobs.
idantepper pushed a commit to idantepper/airflow that referenced this pull request Apr 3, 2024
…he#38678)

We have now a separate job that prepares and uploads artifacts
when PROD image is being prepared for K8S testing. This saves a bit
of time to prepare PROD image. However this step had a bug - it
checked out the `main` version of code when preparing airflow and
provider packages, so it was really testing the "previous" merge
not the "current" PR.

This PR switches the job to prepare artifacts to use the same
checkout strategy as the other build-image workflow jobs.
mathiaHT pushed a commit to mathiaHT/airflow that referenced this pull request Apr 4, 2024
…he#38678)

We have now a separate job that prepares and uploads artifacts
when PROD image is being prepared for K8S testing. This saves a bit
of time to prepare PROD image. However this step had a bug - it
checked out the `main` version of code when preparing airflow and
provider packages, so it was really testing the "previous" merge
not the "current" PR.

This PR switches the job to prepare artifacts to use the same
checkout strategy as the other build-image workflow jobs.
utkarsharma2 pushed a commit to astronomer/airflow that referenced this pull request Apr 22, 2024
…he#38678)

We have now a separate job that prepares and uploads artifacts
when PROD image is being prepared for K8S testing. This saves a bit
of time to prepare PROD image. However this step had a bug - it
checked out the `main` version of code when preparing airflow and
provider packages, so it was really testing the "previous" merge
not the "current" PR.

This PR switches the job to prepare artifacts to use the same
checkout strategy as the other build-image workflow jobs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants