Repository navigation
tests: fix red dev CI (rich line wrap, missing demo sources, ruff for… - #719
Conversation
…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.
|
🎉 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! |
|
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. |
|
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 |
|
As long as it does not break CI, we are good! |
CI on
devhas been red since #692 was merged (latest run on b970ba7). There are three separate failures, all in tests:pstim.py,pacq.pyandsimpm.py, which are not indemo/(pstim.pyandpacq.pyare innintan/, andsimpm.pydoesn'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, sotest_demo_workflows_generate.pyfails for all 3 build types. I added them toKNOWN_UNSUPPORTEDas xfail for now.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" andassertInfails. The test now ignores line breaks. The build behaviour itself was already correct.ruff formatontests/test_cli.py(3 long lines rewrapped).Tested locally with the same pytest command as CI: 402 passed, 6 xfailed, 4 skipped.
ruff format --checkandruff checkare clean.Question: should the two generalcontrol demos be fixed (copy the scripts from
nintan/? where shouldsimpm.pycome from?) or removed? Happy to do either in a follow-up.