Skip to content

Hotfix/failing sim tests in ci - #41

Merged
ch-ahindura merged 2 commits into
sopherapps:mainfrom
ch-ahindura:hotfix/failing-sim-tests-in-ci
Aug 7, 2026
Merged

Hotfix/failing sim tests in ci#41
ch-ahindura merged 2 commits into
sopherapps:mainfrom
ch-ahindura:hotfix/failing-sim-tests-in-ci

Conversation

@ch-ahindura

Copy link
Copy Markdown
Collaborator

Why

The GitHub actions were failing to run and push the new release

Fixed

  • qpi-driver/py: a quantify tuner or executor creates its data directory's parents.
    quantify-core's own mkdir is not recursive, so bin/data in a fresh checkout
    failed at construction.

quantify-core's `set_datadir` does a non-recursive `os.mkdir`, so pointing it at
a directory whose *parent* does not exist yet dies with a FileNotFoundError
naming the child rather than the missing parent. A driver defaulting to
`./bin/data` in a checkout where nothing has run `make build` never starts.

It hid locally because `bin/` is left behind by any earlier build, and `mkdir`
only needs the parent: removing `bin/data` alone still passes. CI has no `bin/`
at all, which is where `make test-py-loop` failed — 4 failed, 34 errors, every
one of them the quantify half of the parametrised loop. The qblox half passes
because that tuner sets no data directory.

Fixed in `compat/quantify`, which is the seam both the tuner and the executor
already import `set_datadir` through, and whose job is smoothing over exactly
this kind of edge. The not-installed stub keeps its no-op behaviour.
A patch: the release carries one fix, to the quantify data directory's parents.

Every component that declares a version:

- qpi-ui (main.go, the dashboard's package.json, the WiX installer manifest)
- qpi-driver py, js and the Go CLI's Version var
- qpi-client py and js

The Python packages read their version from installed metadata and fall back to a
literal, so the literal moves too — and with it the two tests that assert the
fallback path by patching metadata to raise.

Five lockfiles regenerated. The README's release URLs move as well; they 404 until
the tag exists.

Makefile's VERSION is bumped for consistency but referenced nowhere else in it.

Not verified by a test run, at the author's request.

@Tinitto Tinitto left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ch-ahindura
ch-ahindura merged commit d1f4f37 into sopherapps:main Aug 7, 2026
20 checks passed
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.

2 participants