Repository navigation
Conversation
…and new scripts - Added a pre-commit hook to check for explicit test marks in Python and JavaScript files. - Updated `package.json` to include new test commands for unit tests and browser tests. - Introduced `check_test_marks.py` for Python and `check-test-marks.mjs` for JavaScript to validate test classifications. - Created `select_checks.py` to determine the scope of heavy checks based on the PR diff. - Added new scripts for listing browser tests and running unit tests with specified layers and hardware. - Updated `pyproject.toml` to register new pytest markers for hardware and CI layers. - Enhanced documentation to reflect changes in test classification and validation processes. Signed-off-by: wangyu <410167048@qq.com>
11 tasks
## summary - Merge upstream CodeQL and Markdown text changes, preserving both security-scanning and cross-language classification documentation. - Register CPU marks and frontend/browser catalog entries for the newly merged tests without changing their layer or gate behavior. ## validation - 134 focused Python CI/security regression cases passed on Windows. - 827 frontend unit tests passed; TypeScript and i18n checks passed. - 13 text CLI cases passed in WSL against the local working tree. - Shared pre-commit checks, actionlint and staged diff checks passed. Refs: ThinkFlowLab#273
- Updated the `pre-commit.yml` workflow file to remove bilingual descriptions from the outputs, simplifying the language to English only for clarity. - Adjusted the names of the output parameters to maintain consistency and improve readability. No functional changes were made to the workflow logic. Signed-off-by: wangyu <410167048@qq.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.
Summary
Add a hardware-platform axis and explicit classification checks across Python tests, frontend unit files and browser journeys, without activating a reduced CI selection.
cpu,cuda,rocm,xpuandnpu; explicitly tag current Python tests. Genericgpu, SKU and card-count marks are not supported.pre-commit.yml. Preserve static-before-heavy dependencies, documentation-only receipts and the stable release aggregate. Group supporting scripts underscripts/pre-commit/.Latest main
526ece2ais merged, including #347 and #344. The documentation conflict preserves both security-scanning and classification guidance. Newly added Python, frontend and browser tests are registered with explicit CPU classifications; the new Markdown browser gate remains enabled.Validation
On merge commit
3449083a:--noEmit, mark/browser inventories, i18n, shared pre-commit checks (including actionlint), and staged diff checks passed.pillow_heif; the existing WSL environment supplied the application dependencies.Full application pytest, browser UI/media journeys and real-provider acceptance were not run. Hosted Actions results remain to be checked. Windows Node 24.14.0 is older than the repository's pinned CI version.
Refs #273 (PR-4b, with cross-language classification and pre-commit workflow organization).