Skip to content

Task/12361 help refactor v1 - #62

Merged
Davihan11 merged 4 commits into
CESNET:mainfrom
Davihan11:task/12361-help-refactor-v1
Sep 18, 2026
Merged

Davihan11 merged 4 commits into
CESNET:mainfrom
Davihan11:task/12361-help-refactor-v1

Conversation

@Davihan11

Copy link
Copy Markdown
Collaborator

Group the 24 flat help lines into logical sections (Connection, Test selection, Traffic, Suricata, Results and logging, Advanced) with an aligned two-column layout rendered via a quoted heredoc, instead of one echo per line. Surface defaults inline (traffic duration 300, hugepages 6G, log level INFO) and document the .env fallback variables. Option parsing is unchanged; only the help text presentation differs.

Group the 24 flat help lines into logical sections (Connection, Test
selection, Traffic, Suricata, Results and logging, Advanced) with an
aligned two-column layout rendered via a quoted heredoc, instead of
one echo per line. Surface defaults inline (traffic duration 300,
hugepages 6G, log level INFO) and document the .env fallback variables.
Option parsing is unchanged; only the help text presentation differs.
@Davihan11
Davihan11 requested a lite review from Copilot September 9, 2026 11:16
@Davihan11 Davihan11 self-assigned this Sep 9, 2026
@Davihan11 Davihan11 added the documentation Improvements or additions to documentation label Sep 9, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The updated help text claims to document .env fallback variables but currently omits several variables that the script actually uses, making the help inaccurate/incomplete.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR refactors pytest_start.sh help output by replacing many individual echo calls with quoted heredocs and organizing options into clearer sections, while keeping option parsing unchanged.

Changes:

  • Replaced usage() and binary_search_usage() help output with quoted heredocs.
  • Grouped main help into logical sections (Connection, Test selection, Traffic, Suricata, Results and logging, Advanced) and surfaced some defaults inline.
  • Added a note about .env-provided defaults (currently incomplete vs the script’s actual environment variable fallbacks).
File summaries
File Description
pytest_start.sh Reformats and reorganizes CLI help text using heredocs and sections; no option parsing changes.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread pytest_start.sh Outdated
Comment thread pytest_start.sh Outdated
@lukashino

Copy link
Copy Markdown
Collaborator

otherwise accepted

Create .env.example listing all 13 fallback variables pytest_start.sh
consumes, with the corresponding script flags and built-in defaults.
Point the README's Environment variables section at it and complete the
variable list there (adds the previously undocumented
DEFAULT_SUITE_LOG_FILE; the flag mapping now accompanies each entry).
Also fix the -h help text to list every variable instead of an
ellipsis, so it no longer contradicts the PR description.
Replace real hostnames and MAC address with generic placeholders
so the example file doesn't reference specific lab machines.
@Davihan11 Davihan11 assigned matyas7dub and unassigned Davihan11 and matyas7dub Sep 9, 2026
@Davihan11
Davihan11 requested a review from matyas7dub September 9, 2026 11:30
@Davihan11 Davihan11 self-assigned this Sep 9, 2026
The lint job needs nothing but ruff, yet it installed the entire
requirements.txt (lbr_trex_client, scapy, paramiko, cryptography
builds). Extract the pinned ruff version from requirements.txt
instead, keeping CI and the declared dependency in sync while making
the job faster and less flaky.

@matyas7dub matyas7dub 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.

LGTM

@Davihan11
Davihan11 merged commit 3b2266c into CESNET:main Sep 18, 2026
1 check passed
@Davihan11
Davihan11 deleted the task/12361-help-refactor-v1 branch September 18, 2026 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants