Skip to content

tests: fix red dev CI (rich line wrap, missing demo sources, ruff for… - #719

Merged
pradeeban merged 1 commit into
ControlCore-Project:devfrom
SahilKumar965:fix/dev-ci
Nov 28, 2026
Merged

pradeeban merged 1 commit into
ControlCore-Project:devfrom
SahilKumar965:fix/dev-ci

Conversation

@SahilKumar965

@SahilKumar965 SahilKumar965 commented Nov 27, 2026 •

Copy link
Copy Markdown

CI on dev has been red since #692 was merged (latest run on b970ba7). There are three separate failures, all in tests:

  1. generalcontrol / generalcontroler demos: both graphml files use pstim.py, pacq.py and simpm.py, which are not in demo/ (pstim.py and pacq.py are in nintan/, and simpm.py doesn't seem to exist anywhere in the repo history). Since feat(build): fail early when a node's source file is missing #692 a missing source is a hard error, so test_demo_workflows_generate.py fails for all 3 build types. I added them to KNOWN_UNSUPPORTED as xfail for now.
  2. test_force_refuses_a_directory_that_is_not_a_study: Rich wraps the error at 80 columns, so when the temp path is long the line break falls inside "does not look like a study" and assertIn fails. The test now ignores line breaks. The build behaviour itself was already correct.
  3. lint: ruff format on tests/test_cli.py (3 long lines rewrapped).

Tested locally with the same pytest command as CI: 402 passed, 6 xfailed, 4 skipped. ruff format --check and ruff check are clean.

Question: should the two generalcontrol demos be fixed (copy the scripts from nintan/? where should simpm.py come from?) or removed? Happy to do either in a follow-up.

# without fix (origin/dev)
7 failed, 401 passed, 4 skipped, 2 xpassed
1 file would be reformatted

# with fix (fix/dev-ci)
402 passed, 4 skipped, 6 xfailed, 2 xpassed
79 files already formatted / All checks passed!

…mat)

- test_build_force: ignore Rich's line wrapping when matching the error.
- test_demo_workflows_generate: mark generalcontrol/generalcontroler as
  known unsupported; their sources pstim.py, pacq.py, simpm.py are not in
  demo/, and mkconcore now errors on missing sources (918e6d6).
- test_cli: apply ruff format so the lint job passes.
@github-actions

Copy link
Copy Markdown

🎉 Welcome aboard, @SahilKumar965! Thank you for your first pull request in concore.

Please ensure that you are contributing to the dev branch.

Your contribution means a lot to us. We'll review it shortly.

Please ensure you have reviewed our:

If you have any questions, feel free to ask. Happy coding!

@pradeeban

Copy link
Copy Markdown
Member

Question: should the two generalcontrol demos be fixed (copy the scripts from nintan/? where should simpm.py come from?) or removed? Happy to do either in a follow-up.

You can either fix (I am not sure whether it is an easy fix. Looks like a legacy file. But I do not want to remove it either. One middle-ground option would be to prevent it from the test builds.

@SahilKumar965

Copy link
Copy Markdown
Author

Thanks @pradeeban This PR already does the middle-ground option: both demos are in KNOWN_UNSUPPORTED, so they run as expected failures and don't break CI. I can switch it to skipping them completely if you prefer.

The red test (3.10) job isn't from this PR. lxml 6.2.0 came out yesterday, and with it find("y:NodeLabel") / find("y:EdgeLabel") return None, so mkconcore finds no nodes and writes empty build scripts. dev fails the same way (66 failures). I opened #720 to fix that. With #720 and this PR together, the full suite passes on Python 3.9 and 3.12 (0 failed).

@pradeeban

Copy link
Copy Markdown
Member

As long as it does not break CI, we are good!

@pradeeban
pradeeban merged commit 983cdfe into ControlCore-Project:dev Nov 28, 2026
13 of 17 checks passed
@SahilKumar965
SahilKumar965 deleted the fix/dev-ci branch November 30, 2026 17:00
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