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

[BACKPORT] Fix reproducibility of prepared provider packages (fix flit frontend)… #43687

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

potiuk
Copy link
Member

@potiuk potiuk commented Nov 5, 2024

… (#43683)

After some checks it turned out that reproducibility of produced packages depends not only on the build backend configured for the project but also on the build front-end used - because frontend is the one to modify meta-data in prepared packages - including the build tool used, it's version and metadata version supported by the front-end.

That's why in order to maintain reproducibility for anyone who builds the packages, we have to pin not only the build backend in pyproject.toml (flit-core) but also build fronted used (flit).

Since package preparation is done with breeze, we can do it by pinning flit (and just in case also flit-core) so that anyone who builds specific version of the package will use exactly the same flit as the person who built the original packages.

This way we will avoid reproducibility problems experienced with 1.5.0 release of FAB.

(cherry picked from commit 18ea01c)


^ 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.

@potiuk
Copy link
Member Author

potiuk commented Nov 5, 2024

Backport #43683

@potiuk potiuk requested review from jscheffl, utkarsharma2 and eladkal and removed request for ashb, eladkal and jedcunningham November 5, 2024 11:19
…apache#43683)

After some checks it turned out that reproducibility of produced
packages depends not only on the build backend configured for the
project but also on the build front-end used - because frontend is
the one to modify meta-data in prepared packages - including the build
tool used, it's version and metadata version supported by the front-end.

That's why in order to maintain reproducibility for anyone who builds
the packages, we have to pin not only the build backend in
pyproject.toml (flit-core) but also build fronted used (flit).

Since package preparation is done with breeze, we can do it by
pinning flit (and just in case also flit-core) so that anyone who
builds specific version of the package will use exactly the same flit
as the person who built the original packages.

This way we will avoid reproducibility problems experienced with 1.5.0
release of FAB.

(cherry picked from commit 18ea01c)
@potiuk potiuk force-pushed the backport-reproducibility-fix branch from 520f4d7 to 57d397d Compare November 5, 2024 13:28
@potiuk potiuk changed the title Fix reproducibility of prepared provider packages (fix flit frontend)… [BACKPORT] Fix reproducibility of prepared provider packages (fix flit frontend)… Nov 5, 2024
@potiuk potiuk merged commit ce002fa into apache:v2-10-test Nov 5, 2024
69 of 70 checks passed
@potiuk potiuk deleted the backport-reproducibility-fix branch November 5, 2024 14:26
utkarsharma2 pushed a commit that referenced this pull request Dec 4, 2024
…#43683) (#43687)

After some checks it turned out that reproducibility of produced
packages depends not only on the build backend configured for the
project but also on the build front-end used - because frontend is
the one to modify meta-data in prepared packages - including the build
tool used, it's version and metadata version supported by the front-end.

That's why in order to maintain reproducibility for anyone who builds
the packages, we have to pin not only the build backend in
pyproject.toml (flit-core) but also build fronted used (flit).

Since package preparation is done with breeze, we can do it by
pinning flit (and just in case also flit-core) so that anyone who
builds specific version of the package will use exactly the same flit
as the person who built the original packages.

This way we will avoid reproducibility problems experienced with 1.5.0
release of FAB.

(cherry picked from commit 18ea01c)
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