Repository navigation
usability aspects improved - #87
Merged
Merged
Conversation
Collaborator
…ssion Known issue #17 records that the suite's green is order-dependent and that a release.sh run can therefore abort on something unrelated to the release. Measured it: run every test file in reverse collection order and origin/master reports 2 failed, 3364 passed, where alphabetical is clean. One of the two is real, and it is not a segfault. `gini.domain.fragments.FRAGMENTS` is a module-level dict built once at import, and four test files write to it without putting it back — test_compose assigns into it directly five times, and test_content_and_forks, test_authoring_build2 and test_fragment_terminals author a YAML pack into the user content layer and call F.reload(). Whatever they add is then visible to every test that runs afterwards. Alphabetically test_catalog runs before test_content_and_forks and never sees it. Reverse the order and test_archetypes_reference_real_concepts_and_elements fails asserting `a.spirit` against `t-lan-fork` — a fragment authored by a test file it has never heard of, whose spirit is empty because a test had no reason to set one. Nothing in that failure points at the cause, which is the part that would cost someone an afternoon. Fixed in conftest rather than in the four files, because the leak is the class and not the instance: an autouse fixture snapshots the registry and rebinds a clean copy afterwards, which undoes an in-place write as well as a reload(). LOAD_WARNINGS is mutated in place, so it is restored in place. About twenty entries per test; the cost is not measurable against a four-minute suite. Proven rather than assumed, both ways: with the fixture disabled the polluter-then-victim pair fails, with it enabled it passes, and the four polluting files still pass on their own. Reverse order over the whole suite: origin/master 2 failed, this branch 0 failed / 3367 passed. The OTHER reverse-order failure is NOT order-dependent and is not fixed here — I nearly reported it as such. test_tc_routes' version check fails in any checkout that has never been built, because on_disk() reads _version.py (absent) while __version__ falls back to "0.0.0+unknown"; it fails alone, in any order. It passes on a tree where dev.sh install has run. Worth its own look, as a question about what that test should assert in a source checkout. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Reported: pressing the window close button with a lab running does nothing, and gBuilder looks
hung. The guard was never broken — it refuses correctly, and it has always explained itself. It
explains itself to `ctx.log`, which paints in the console dock behind the canvas, and that is not
where anyone is looking at the moment a window declines to shut.
From outside, a refused close with no visible answer is indistinguishable from a frozen app, and
the obvious next move is to kill the process — which leaves exactly the orphaned containers the
guard exists to prevent. So the guard now also warns, modally, naming the way out ("press Stop").
The log line stays: it is still the right place for the record.
Two tests, and the second matters as much as the first — a prompt that appears when nothing is
running would be its own bug: refusing says so on screen, and an idle window closes with no dialog
in the way. Mutation-checked by deleting the QMessageBox line, which fails the first and only the
first.
The three tests that already drove closeEvent needed the modal muted or they would have sat on it
for ever in a headless run. They record the calls rather than dropping them, because "it refused"
and "it said so" are separate assertions and only the second was missing.
Note this is one instance of a pattern, not a one-off: the same silent-refusal shape is in
`_open_console` (an xv6 element has no web dashboard, so the menu item logs and appears to do
nothing) and in `_sign_in` (a half-configured course server returns early, or opens Settings, with
no answer on screen). Both were reported in the same breath as this one. They are not fixed here —
each needs its own look at what the right answer on screen actually is.
Full suite: 3369 passed, 20 skipped.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Two reported bugs. One is a real logic error; the other is a menu offering something impossible. **"Log in not working as the user — partially working."** `_sign_in` captures `force` into a local and clears `self._force_new_signin` on the very next line, and then the live-session shortcut tests the ATTRIBUTE — which is now always False, so the branch always won. Switching account therefore did half of what it says: `_sign_in_as` writes the new username into Settings, and `_sign_in` resumes the PREVIOUS session, logging "resuming your session as <the new name>" while the session, and every submission and receipt made under it, still belonged to the old account. That is worse than not working, because it looks like it worked. One word: test the local. **"Click on the xv6 machine, options are not working."** The right-click menu offers the same four actions to every element and only ever gated them on the lab running. An xv6 Machine has no browser UI, so "Open console" became enabled the moment you pressed Run, did nothing when clicked, and wrote its reason to the console dock behind the canvas. `cloud_catalog.has_web_console` answers the per-TYPE question — which is what a menu needs, and unlike `_last_services` it answers with nothing running — so the item is now disabled for elements that can never have one, with a tooltip that says which of the two reasons it is. "Run the topology first" on an element that will never have a console is advice that cannot be taken. Checked against the README's console column: object store, dashboards, metrics, tracing, load generator, web app, OS Zoo and Desktop yes; xv6, host, router, database, cache no. Sign-in's other exits now answer too — a half-configured course names the missing fields instead of opening Settings mutely, and a client that cannot be built says so instead of returning. The modals cost more than the fixes. Five existing tests drive `_sign_in`, and one of them hung the run for good the moment a QMessageBox appeared — the same trap as the quit guard, found by the suite rather than by review. `test_user_pill` gets an autouse fixture muting `information` and `warning` only: `question` picks a branch from its return value, and silencing that would quietly rewrite the behaviour under test. Mutation-checked both ways: restoring `self._force_new_signin` fails the switch-account test and only that one. Full suite 3372 passed, 20 skipped. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Trottier lab hosts have the podman CLI and no docker binary; every subprocess used to hardcode docker, so Run never started. Detect the engine once, prefix compose and image calls with it, and let cAdvisor degrade instead of demanding Docker's graphdriver. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.