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 generation of commit history after moving providers #43412

Merged
merged 1 commit into from
Oct 27, 2024

Conversation

potiuk
Copy link
Member

@potiuk potiuk commented Oct 27, 2024

Another teething problem after moving providers in #42505. After moving providers, the history of the current folder in "providers" only contains changes after the move - it does not include changes from before the move - and since we always regenerate the full list of commits - they were missing.

We cannot use --follow - because git log --follow only works for single files, not directories, but since the move was very predictable ("airflow/providers/nnn" ->
"airflow/providers/src/airflow/providers/nnn") we can add the old path to git log command to get both - pre and post move commit history.


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

Another teething problem after moving providers in apache#42505. After
moving providers, the history of the current folder in "providers"
only contains changes after the move - it does not include
changes from before the move - and since we always regenerate
the full list of commits - they were missing.

We cannot use `--follow` - because `git log --follow` only
works for single files, not directories, but since the move
was very predictable ("airflow/providers/nnn" ->
"airflow/providers/src/airflow/providers/nnn") we can add the old
path to `git log` command to get both - pre and post move commit
history.
@potiuk
Copy link
Member Author

potiuk commented Oct 27, 2024

Yep - it nicely works in CI as well:

Screenshot 2024-10-27 at 12 36 17

Compared to (in main):

Screenshot 2024-10-27 at 12 37 43

@potiuk
Copy link
Member Author

potiuk commented Oct 27, 2024

The doc failure is unrelated - seems that sqlalchemy doc inventory was temporarily unavailable. Merging - since the changes are only in "doc generation" and it already passed.

@potiuk potiuk merged commit 4e3c96f into apache:main Oct 27, 2024
66 of 67 checks passed
@potiuk potiuk deleted the fix-provider-commit-list branch October 27, 2024 11:39
ellisms pushed a commit to ellisms/airflow that referenced this pull request Nov 13, 2024
Another teething problem after moving providers in apache#42505. After
moving providers, the history of the current folder in "providers"
only contains changes after the move - it does not include
changes from before the move - and since we always regenerate
the full list of commits - they were missing.

We cannot use `--follow` - because `git log --follow` only
works for single files, not directories, but since the move
was very predictable ("airflow/providers/nnn" ->
"airflow/providers/src/airflow/providers/nnn") we can add the old
path to `git log` command to get both - pre and post move commit
history.
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.

2 participants