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.
@potiuk potiuk requested review from ashb and kaxil as code owners April 2, 2024 14:48
@potiuk potiuk requested a review from eladkal April 2, 2024 14:51
@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)
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.

3 participants