Skip to content

CVS-188020_on_commit_doc_tests#4272

Open
ngrozae wants to merge 14 commits into
mainfrom
on_commit_doc_tests
Open

CVS-188020_on_commit_doc_tests#4272
ngrozae wants to merge 14 commits into
mainfrom
on_commit_doc_tests

Conversation

@ngrozae

@ngrozae ngrozae commented Jun 3, 2026

Copy link
Copy Markdown
Collaborator

🛠 Summary

CVS-188020 enable documentation testing in CI

🧪 Checklist

  • Unit tests added.
  • The documentation updated.
  • Change follows security best practices.
    ``

Copilot AI review requested due to automatic review settings June 3, 2026 06:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Enables documentation testing in the on-commit CI pipeline by detecting Markdown changes within shell/console fenced code blocks and conditionally running a documentation test suite.

Changes:

  • Added ci/check_md_code_changes.sh to identify changed .md files where edits overlap with bash/bat/```console blocks.
  • Updated ci/build_test_OnCommit.groovy to collect those files and run a new “Documentation tests” stage when applicable.
  • Introduced placeholder text/commands in several demo READMEs (these should be removed before merging).

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
demos/vehicle_analysis_pipeline/python/README.md Adds a placeholder command inside a bash snippet (should be removed).
demos/universal-sentence-encoder/README.md Adds a placeholder command inside a bash snippet (should be removed).
demos/person_vehicle_bike_detection/python/README.md Adds placeholder text under prerequisites (should be removed).
demos/embeddings/README.md Adds placeholder text in the demo instructions (should be removed).
ci/check_md_code_changes.sh New script to detect Markdown code-block-overlapping changes (has correctness tweaks needed).
ci/build_test_OnCommit.groovy Wires the detection into Jenkins and adds a documentation test stage; introduces a sequential release-image stage impacting parallelism.

Comment thread demos/vehicle_analysis_pipeline/python/README.md Outdated
Comment thread demos/universal-sentence-encoder/README.md Outdated
Comment thread demos/person_vehicle_bike_detection/python/README.md
Comment thread demos/embeddings/README.md Outdated
Comment thread ci/check_md_code_changes.sh Outdated
Comment thread ci/check_md_code_changes.sh
Comment thread ci/build_test_OnCommit.groovy Outdated
@ngrozae ngrozae force-pushed the on_commit_doc_tests branch 2 times, most recently from 0c8c09f to eebde43 Compare June 3, 2026 08:35
@ngrozae ngrozae force-pushed the on_commit_doc_tests branch from eebde43 to fa6a1d2 Compare June 3, 2026 08:55
@ngrozae ngrozae force-pushed the on_commit_doc_tests branch 9 times, most recently from 1b6e538 to b0256d5 Compare June 5, 2026 13:01
…inux_doc=ovms_lnl][agent_name_windows_doc=ovms_win_lnl] add parameters override from commit
@ngrozae ngrozae force-pushed the on_commit_doc_tests branch 4 times, most recently from 25b1a44 to 8e853de Compare June 8, 2026 09:08
…nged_files_windows=demos/continuous_batching/README.md][agent_name_linux_doc=ovms_lnl] updates
@ngrozae ngrozae force-pushed the on_commit_doc_tests branch 2 times, most recently from 731e099 to faca86f Compare June 8, 2026 13:24
@ngrozae ngrozae force-pushed the on_commit_doc_tests branch from faca86f to 036d60f Compare June 8, 2026 13:55
@ngrozae ngrozae force-pushed the on_commit_doc_tests branch 4 times, most recently from cd0689e to a859749 Compare June 9, 2026 06:44
@ngrozae ngrozae requested a review from Copilot June 9, 2026 06:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

Comment thread ci/check_md_code_changes.sh
Comment thread ci/build_test_OnCommit.groovy Outdated
Comment thread ci/build_test_OnCommit.groovy Outdated
Comment thread ci/build_test_OnCommit.groovy Outdated
ngrozae added 2 commits June 9, 2026 09:59
…nged_files_windows=demos/continuous_batching/README.md][agent_name_linux_doc=ovms_lnl] cleanup
…nged_files_windows=demos/continuous_batching/README.md][agent_name_linux_doc=ovms_lnl] add input validation
@ngrozae ngrozae force-pushed the on_commit_doc_tests branch from a859749 to 4c2c172 Compare June 9, 2026 08:01
@ngrozae ngrozae requested review from atobiszei and dtrawins June 9, 2026 09:11
Comment thread ci/build_test_OnCommit.groovy Outdated
// [agent_name_windows_doc=<node>] - Run Windows doc tests on <node> (default: ovms_win_ptl)
//
// Override file list (space-separated, converted to pytest -k filter joined with ' or '):
// [doc_changed_files_linux=<files>] - Use <files> instead of auto-detected list (Linux)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// [doc_changed_files_linux=<files>] - Use <files> instead of auto-detected list (Linux)
// [test_doc_files_linux=<files>] - Use <files> instead of auto-detected list (Linux)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it will be easier to remember

Comment thread ci/build_test_OnCommit.groovy Outdated
// [disable_doc_tests_windows] - Skip the Windows documentation tests stage
//
// Override agent node:
// [agent_name_linux_doc=<node>] - Run Linux doc tests on <node> (default: ovms_ptl)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// [agent_name_linux_doc=<node>] - Run Linux doc tests on <node> (default: ovms_ptl)
// [test_agent_linux=<node>] - Run Linux doc tests on <node> (default: ovms_ptl)

It will be easier to remember

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this name was chosen to match previously used: agent_name_linux. Do you want only agent_name_linux_doc changed?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see your point but agent_name_linux is not to be defined in commit message. I think shorted name for will be less error prone when it needs to be entered manually. It is not a blocker from me but a suggestion. Let's check other reviewers.

@@ -1,43 +1,47 @@

custom_nodes
libOpenCL.so->libOpenCL.so.1.0.0

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are those changes related?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needed after change from redhat to ubuntu as default os

@dtrawins dtrawins left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we rename the special tags?

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.

3 participants