Skip to content

fix: do not run bound class setup before setup_cache - #54

Merged
HaoZeke merged 2 commits into
airspeed-velocity:mainfrom
HaoZeke:fix/52-bound-setup-cache
Aug 15, 2026
Merged

HaoZeke merged 2 commits into
airspeed-velocity:mainfrom
HaoZeke:fix/52-bound-setup-cache

Conversation

@HaoZeke

@HaoZeke HaoZeke commented Aug 15, 2026

Copy link
Copy Markdown
Member

Class-level setup(self) no longer runs in do_setup_cache.

Discovery collects bound methods. inspect.signature omits self, so
bind() treated the tutorial setup(self) as a module hook and inverted
the documented setup_cache then setup order. That is #52 (datalad CI,
and the writing-benchmarks example).

Module-level setup(*args, **kwargs) still runs first (asv#1592). Bound
setup(self, n) still waits for do_setup.

Includes a discovery-shaped regression test and the 0.3.1 notes.

Closes #52.

inspect.signature omits self on bound methods, so bind() treated
idiomatic setup(self) as a module hook and inverted the documented
setup_cache then setup order (asv_runner#52).
@github-actions

Copy link
Copy Markdown

Documentation preview for this PR: documentation.zip. Unzip and open index.html in a browser (Sphinx HTML under the zip root).

@HaoZeke
HaoZeke merged commit aa50301 into airspeed-velocity:main Aug 15, 2026
13 checks passed
@HaoZeke
HaoZeke deleted the fix/52-bound-setup-cache branch August 15, 2026 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Regression in 0.2.2: do_setup_cache runs class-level setup(self) before setup_cache

1 participant