Skip to content

fix(tps): return errors from file-size parser and add E2E coverage#84

Merged
mrhillsman merged 4 commits into
mainfrom
fix/71-and-73
May 23, 2026
Merged

fix(tps): return errors from file-size parser and add E2E coverage#84
mrhillsman merged 4 commits into
mainfrom
fix/71-and-73

Conversation

@mrhillsman

Copy link
Copy Markdown
Contributor

Summary

  • Replace silent fallback in fileSizeBytes() and fileSizeMBCount() with explicit error returns, so invalid file-size params (e.g. 1.5G, 2GB, garbage) fail fast instead of silently using defaults
  • Extract shared parseFileSize() validator: positive integer + K/M/G suffix
  • Add netperf and python3 to the golden-image Containerfile with binary verification
  • Add E2E test for TPS workload covering server/client VM deployment, 3-port service creation, and cleanup
  • Document exact file-size format constraint in configuration reference

Resolves #71
Resolves #73

…lent fallback

fileSizeBytes() and fileSizeMBCount() silently fell back to default
values on parse failure, masking configuration errors. Extract a shared
parseFileSize() that validates format (positive integer + K/M/G suffix)
and return errors through buildServerUserdata/buildClientUserdata so
invalid file-size params fail fast at the orchestration layer.

Signed-off-by: Melvin Hillsman <mhillsma@redhat.com>
The tps workload server requires netperf and python3 but they were
missing from the golden-image pre-install list, causing cloud-init to
install them on every boot. Add both packages and verify netserver and
python3 binaries are present.

Signed-off-by: Melvin Hillsman <mhillsma@redhat.com>
Verify that the tps workload deploys both server and client VMs, creates
the three-port service (netperf-ctrl, netperf-data, http-data), and
cleans up all resources. Covers the multi-VM deployment path that was
previously untested end-to-end.

Signed-off-by: Melvin Hillsman <mhillsma@redhat.com>
@exe-prow-github-app
exe-prow-github-app Bot requested a review from OchiengEd May 23, 2026 20:22
@exe-prow-github-app

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mrhillsman

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@exe-prow-github-app exe-prow-github-app Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 23, 2026
Clarify that file-size must be a positive integer followed by K, M, or G
and that decimal values and binary suffixes are not supported.

Signed-off-by: Melvin Hillsman <mhillsma@redhat.com>
@mrhillsman
mrhillsman merged commit 54a78d8 into main May 23, 2026
3 of 4 checks passed
@mrhillsman
mrhillsman removed the request for review from OchiengEd May 24, 2026 04:05
@mrhillsman
mrhillsman deleted the fix/71-and-73 branch May 24, 2026 06:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files.

Projects

None yet

1 participant