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

SchedulerInterface/PollScheduler: Add _loop property #1278

Merged

Conversation

zmedico
Copy link
Member

@zmedico zmedico commented Feb 23, 2024

This allows async_aux_get to easily verify the identity of the underlying loop so that this assertion will not fail:

_start_with_metadata
	(settings.configdict["pkg"]["SRC_URI"],) = aux_get_task.future.result()
											   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/portage/dbapi/porttree.py", line 786, in async_aux_get
	raise AssertionError(
AssertionError: async_aux_get called from thread <_MainThread(MainThread, started 281473559502880)> with loop <_emerge.Scheduler.Scheduler._iface_class object at 0xffff8e3a8840>
Terminated

Fixes: 389bb30 ("async_aux_get: Use EbuildMetadataPhase deallocate_config future")
Bug: https://bugs.gentoo.org/925333

@zmedico zmedico marked this pull request as draft February 23, 2024 16:31
@zmedico zmedico force-pushed the bug_925333_SchedulerInterface_loop_property branch from 1a60f46 to 0d088a3 Compare February 23, 2024 17:20
@zmedico zmedico changed the title SchedulerInterface: Add _loop property SchedulerInterface/PollScheduler: Add _loop property Feb 23, 2024
@zmedico zmedico marked this pull request as ready for review February 23, 2024 18:01
@zmedico zmedico force-pushed the bug_925333_SchedulerInterface_loop_property branch from 0d088a3 to 9a60497 Compare February 24, 2024 03:56
This allows async_aux_get to easily verify the identity of
the underlying loop so that this assertion will not fail:

_start_with_metadata
    (settings.configdict["pkg"]["SRC_URI"],) = aux_get_task.future.result()
                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/portage/dbapi/porttree.py", line 786, in async_aux_get
    raise AssertionError(
AssertionError: async_aux_get called from thread <_MainThread(MainThread, started 281473559502880)> with loop <_emerge.Scheduler.Scheduler._iface_class object at 0xffff8e3a8840>
Terminated

Fixes: 389bb30 ("async_aux_get: Use EbuildMetadataPhase deallocate_config future")
Bug: https://bugs.gentoo.org/925333
Signed-off-by: Zac Medico <zmedico@gentoo.org>
@zmedico zmedico force-pushed the bug_925333_SchedulerInterface_loop_property branch from 9a60497 to acb69a6 Compare February 24, 2024 04:25
Use the settings reference from the config pool as
intended to prevent a KeyError similar to bug 924319
but triggered by emerge --dynamic-deps.

Fixes: f9ea958 ("MetadataRegen: Use EbuildMetadataPhase deallocate_config")
Bug: https://bugs.gentoo.org/925350
Signed-off-by: Zac Medico <zmedico@gentoo.org>
@zmedico zmedico force-pushed the bug_925333_SchedulerInterface_loop_property branch from 72940e5 to d06515e Compare February 24, 2024 13:40
@gentoo-bot gentoo-bot merged commit d06515e into gentoo:master Feb 24, 2024
11 checks passed
@zmedico zmedico deleted the bug_925333_SchedulerInterface_loop_property branch February 24, 2024 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants