shahar1 opened a new issue, #31450:
URL: https://github.com/apache/airflow/issues/31450
### Apache Airflow version
main (development)
### What happened
After pulling the latest four commits (#31278 - #31446) and rebuilding
breeze Docker images, I'm getting the following errors (which might be related
to the latest PR, #31446):
````bash
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/alembic/script/base.py", line
246, in _catch_revision_errors
yield
File "/usr/local/lib/python3.8/site-packages/alembic/script/base.py", line
456, in _upgrade_revs
for script in reversed(list(revs))
File "/usr/local/lib/python3.8/site-packages/alembic/script/revision.py",
line 797, in iterate_revisions
revisions, heads = fn(
File "/usr/local/lib/python3.8/site-packages/alembic/script/revision.py",
line 1452, in _collect_upgrade_revisions
current_revisions = self.get_revisions(lower)
File "/usr/local/lib/python3.8/site-packages/alembic/script/revision.py",
line 525, in get_revisions
return sum([self.get_revisions(id_elem) for id_elem in id_], ())
File "/usr/local/lib/python3.8/site-packages/alembic/script/revision.py",
line 525, in <listcomp>
return sum([self.get_revisions(id_elem) for id_elem in id_], ())
File "/usr/local/lib/python3.8/site-packages/alembic/script/revision.py",
line 550, in get_revisions
return tuple(
File "/usr/local/lib/python3.8/site-packages/alembic/script/revision.py",
line 551, in <genexpr>
self._revision_for_ident(rev_id, branch_label)
File "/usr/local/lib/python3.8/site-packages/alembic/script/revision.py",
line 622, in _revision_for_ident
raise ResolutionError(
alembic.script.revision.ResolutionError: No such revision or branch
'14db5484317e'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/bin/airflow", line 33, in <module>
sys.exit(load_entry_point('apache-airflow', 'console_scripts',
'airflow')())
File "/opt/airflow/airflow/__main__.py", line 48, in main
args.func(args)
File "/opt/airflow/airflow/cli/cli_config.py", line 52, in command
return func(*args, **kwargs)
File "/opt/airflow/airflow/cli/commands/db_command.py", line 37, in initdb
db.initdb()
File "/opt/airflow/airflow/utils/session.py", line 76, in wrapper
return func(*args, session=session, **kwargs)
File "/opt/airflow/airflow/utils/db.py", line 723, in initdb
upgradedb(session=session)
File "/opt/airflow/airflow/utils/session.py", line 73, in wrapper
return func(*args, **kwargs)
File "/opt/airflow/airflow/utils/db.py", line 1606, in upgradedb
command.upgrade(config, revision=to_revision or "heads")
File "/usr/local/lib/python3.8/site-packages/alembic/command.py", line
385, in upgrade
script.run_env()
File "/usr/local/lib/python3.8/site-packages/alembic/script/base.py", line
582, in run_env
util.load_python_file(self.dir, "env.py")
File "/usr/local/lib/python3.8/site-packages/alembic/util/pyfiles.py",
line 94, in load_python_file
module = load_module_py(module_id, path)
File "/usr/local/lib/python3.8/site-packages/alembic/util/pyfiles.py",
line 110, in load_module_py
spec.loader.exec_module(module) # type: ignore
File "<frozen importlib._bootstrap_external>", line 843, in exec_module
File "<frozen importlib._bootstrap>", line 219, in
_call_with_frames_removed
File "/opt/airflow/airflow/migrations/env.py", line 117, in <module>
run_migrations_online()
File "/opt/airflow/airflow/migrations/env.py", line 111, in
run_migrations_online
context.run_migrations()
File "<string>", line 8, in run_migrations
File
"/usr/local/lib/python3.8/site-packages/alembic/runtime/environment.py", line
928, in run_migrations
self.get_context().run_migrations(**kw)
File
"/usr/local/lib/python3.8/site-packages/alembic/runtime/migration.py", line
615, in run_migrations
for step in self._migrations_fn(heads, self):
File "/usr/local/lib/python3.8/site-packages/alembic/command.py", line
374, in upgrade
return script._upgrade_revs(revision, rev)
File "/usr/local/lib/python3.8/site-packages/alembic/script/base.py", line
452, in _upgrade_revs
return [
File "/usr/local/lib/python3.8/contextlib.py", line 131, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/local/lib/python3.8/site-packages/alembic/script/base.py", line
278, in _catch_revision_errors
raise util.CommandError(resolution) from re
alembic.util.exc.CommandError: Can't locate revision identified by
'14db5484317e'
Error: check_environment returned 1. Exiting.
````
### What you think should happen instead
Breeze should start successfully without errors
### How to reproduce
1. Download the latest `airflow` repository..
2. Install `breeze`.
3. Run `breeze start-airflow`. and wait for an error.
4. Then, run: `breeze ci-image build --upgrade-to-newer-dependencies` as
suggested - still doesn't work.
### Operating System
Debian 11 (on WSL2)
### Versions of Apache Airflow Providers
_No response_
### Deployment
Official Apache Airflow Helm Chart
### Deployment details
_No response_
### Anything else
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]