Repository navigation
Add a smoke test workflow - #1
Merged
Merged
Conversation
The repository has no unit tests and the NMOS suites need a Node under test, so CI only checked style. Add a workflow that installs requirements.txt, loads every test suite and lists its tests, which catches broken imports and suite registration, and type checks the modules that are free of Pyright errors. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AkR6JBXMBPBA47L1yTBpXg
nmos-test.py --list-suites ends with an empty line, which the smoke test loop ran as a suite named "" and failed on. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AkR6JBXMBPBA47L1yTBpXg
On a clean install Pyright reports three things the local environment hid: requests.compat.json is a private import (reportPrivateImportUsage), junit_xml is typed so format_test_results() may return a TestSuite where json.loads() needs a str, and Config.py imports the optional UserConfig module, which does not exist in CI. Extend the existing suppressions, assert the string, drop Config.py from the checked files, and pin Pyright so a new release cannot turn the step red on its own. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AkR6JBXMBPBA47L1yTBpXg
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.
The repository has no unit tests and the NMOS suites need a Node under test, so CI only checked style (
Lint). This adds aTestworkflow that:requirements.txtandpyrightinto a virtual environment;--list-testson it, which catches broken imports and suite registration;It runs on pull requests, on pushes to
mainormaster, and by hand (workflow_dispatch).Verified
The same commands run locally in a Python 3.9 virtual environment: 26 suites listed, 0 failures; Pyright 0 errors on the 10 files; the YAML parses.
Not verified
The workflow itself has not run on GitHub.
ubuntu-latestships a much newer Python than the 3.8 of theDockerfile, so installingrequirements.txtthere is the likeliest failure. It runs no suite against a Node.🤖 Generated with Claude Code
https://claude.ai/code/session_01AkR6JBXMBPBA47L1yTBpXg