You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/05/08 05:45:05 UTC
[GitHub] [airflow] dstandish opened a new pull request, #23564: Add version to migration prefix
dstandish opened a new pull request, #23564:
URL: https://github.com/apache/airflow/pull/23564
We don't really need the alembic revision id in the filename. having version instead is much more useful. having both of them takes up too much space.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] dstandish commented on pull request #23564: Add version to migration prefix
Posted by GitBox <gi...@apache.org>.
dstandish commented on PR #23564:
URL: https://github.com/apache/airflow/pull/23564#issuecomment-1121325166
> Would we have a conflict ? I think we will have two different names for migrations so the conflict will not be there. But if we agree to a numerical prefix, then just checking for duplicate numerical prefix will be enough.
>
> BTW. Are we sure 4 digits is enough 😄 ? Think 50 years ahead...
4 digits is 10,000 migrations :)
By that time all bets are off
The conflict should show up in migration ref doc
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] dstandish commented on pull request #23564: Add version to migration prefix
Posted by GitBox <gi...@apache.org>.
dstandish commented on PR #23564:
URL: https://github.com/apache/airflow/pull/23564#issuecomment-1122742100
so i tested the merge conflict experience, and found that the pre-commit hook would fail interminably because it would keep re-ordering the files. i found that if we merge the heads then that locks the ordering and the hook will then pass.
I also build out the merge heads command for users:
```bash
Update migration ref doc.................................................Failed
- hook id: update-migration-references
- exit code: 1
You have multiple alembic heads; please merge them with the `alembic merge` command and re-run pre-commit.
hint: `alembic merge -m 'merge heads 2468, 9adf' 246895566b3c 9adf8f4beff3`
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] dstandish merged pull request #23564: Add version to migration prefix
Posted by GitBox <gi...@apache.org>.
dstandish merged PR #23564:
URL: https://github.com/apache/airflow/pull/23564
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] dstandish commented on pull request #23564: Add version to migration prefix
Posted by GitBox <gi...@apache.org>.
dstandish commented on PR #23564:
URL: https://github.com/apache/airflow/pull/23564#issuecomment-1128012805
> Should we update any information here https://github.com/apache/airflow/blob/main/CONTRIBUTING.rst#metadata-database-updates ? Maybe not 🤷 but if there are helper points, feel free to add them over there
good idea
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] potiuk commented on pull request #23564: Add version to migration prefix
Posted by GitBox <gi...@apache.org>.
potiuk commented on PR #23564:
URL: https://github.com/apache/airflow/pull/23564#issuecomment-1121338837
> The conflict should show up in migration ref doc
Ah yeah I see - because it will be adjacent lines. Indeed. Good enough.
> By that time all bets are off
Well I've just learned (visited them) that "breeze" inspiration for development environment that I implemented in a robotics/ai company I worked before getting to Airflow is still there - alive an kicking even if they grew 10-fold and have different robots and "voyages" as we named them 5 years ago. So you never know ... :D.
Yeah. 10.000 migrations would be kinda time to rewrite it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] dstandish commented on pull request #23564: Add version to migration prefix
Posted by GitBox <gi...@apache.org>.
dstandish commented on PR #23564:
URL: https://github.com/apache/airflow/pull/23564#issuecomment-1121283812
> I think two PRs in parallel will conflict on the migrations-ref.rst anyway, so we should have an indicator anyway.
good point yeah i think we're OK.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] ashb commented on pull request #23564: Add version to migration prefix
Posted by GitBox <gi...@apache.org>.
ashb commented on PR #23564:
URL: https://github.com/apache/airflow/pull/23564#issuecomment-1121282325
I think two PRs in parallel will conflict on the migrations-ref.rst anyway, so we should have an indicator anyway.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] potiuk commented on pull request #23564: Add version to migration prefix
Posted by GitBox <gi...@apache.org>.
potiuk commented on PR #23564:
URL: https://github.com/apache/airflow/pull/23564#issuecomment-1121321872
Would we have a conflict ? I think we will have two different names for migrations so the conflict will not be there. But if we gree to a numerical prefix, then just checking for duplicate numerical prefix will be enough.
BTW. Are we sure 4 digits is enough 😄 ? Think 50 years ahead...
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] dstandish commented on pull request #23564: Add version to migration prefix
Posted by GitBox <gi...@apache.org>.
dstandish commented on PR #23564:
URL: https://github.com/apache/airflow/pull/23564#issuecomment-1122628223
doing some testing around the conflict resolution
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] potiuk commented on pull request #23564: Add version to migration prefix
Posted by GitBox <gi...@apache.org>.
potiuk commented on PR #23564:
URL: https://github.com/apache/airflow/pull/23564#issuecomment-1125355690
Rebase should fix it/
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] dstandish commented on pull request #23564: Add version to migration prefix
Posted by GitBox <gi...@apache.org>.
dstandish commented on PR #23564:
URL: https://github.com/apache/airflow/pull/23564#issuecomment-1122746779
Also part of this, i found that the "insert airflow version" logic (from airflow.version import version) doesn't work correctly when there's an old egg in the directory. but doing `from setup import version` works correctly in this case.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] potiuk commented on pull request #23564: Add version to migration prefix
Posted by GitBox <gi...@apache.org>.
potiuk commented on PR #23564:
URL: https://github.com/apache/airflow/pull/23564#issuecomment-1122758321
> I also build out the merge heads command for users:
❤️
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] dstandish commented on pull request #23564: Add version to migration prefix
Posted by GitBox <gi...@apache.org>.
dstandish commented on PR #23564:
URL: https://github.com/apache/airflow/pull/23564#issuecomment-1121260928
> Do we already check that the version numbers are unique?
>
> I'm thinking of the case where two parallel PRs add, for example. a new `109` migration. How should we handle that in terms of file naming? (It may already be handled TBF)
When the hook runs, it regenerates all the indexes and renamed the files If two parallel changes are merged without rebasing first i believe it would break main because precommit would rename in the correct order.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] github-actions[bot] commented on pull request #23564: Add version to migration prefix
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on PR #23564:
URL: https://github.com/apache/airflow/pull/23564#issuecomment-1127984092
The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest main at your convenience, or amend the last commit of the PR, and push it with --force-with-lease.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] kaxil commented on pull request #23564: Add version to migration prefix
Posted by GitBox <gi...@apache.org>.
kaxil commented on PR #23564:
URL: https://github.com/apache/airflow/pull/23564#issuecomment-1127984224
Should we update any information here https://github.com/apache/airflow/blob/main/CONTRIBUTING.rst#metadata-database-updates ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org