Repository navigation
Strengthen release validation assertions and evidence - #178
Merged
Merged
Conversation
loverustfs
marked this pull request as ready for review
November 28, 2026 14:14
Signed-off-by: loverustfs <[email protected]>
Signed-off-by: loverustfs <[email protected]>
Check wire status and exact errors for malformed completion manifests. Verify the assembled bytes for a valid short final part and a single short part.
Signed-off-by: loverustfs <[email protected]>
overtrue
requested changes
Nov 28, 2026
Collaborator
There was a problem hiding this comment.
Code review comments (based on the latest commit 1aa285fd8f):
The latest commit fixes the previously failing test_sensitive_diagnostics.py, the validation-migration-review.json summary, and the S3C-305 multipart validation. All 9 CI checks are now passing. However, several real defects and operational edge cases remain in the script implementation. I recommend fixing them before merging:
- Dual-stack host resolution will always fail (
rustfs_performance_test.shrecord_performance_candidate):address="$(getent ahosts "${target%:9000}" | awk '$2 == "STREAM" {print $1}' | sort -u)"returns both IPv4 and IPv6 addresses. Whenever the host has dual-stack resolution, the subsequent[[ "${address}" =~ ^[0-9.]+$ ]]check will necessarily fail. Prefergetent ahostsv4, and also addneed_cmd getent cmp.
- Repository-level variable
RUSTFS_WARP_BUDGET_JSONconflicts with the optionalpackage_sha256(.github/workflows/rustfs-performance-test.yml+rustfs_performance_test.shstep5_benchmark):- Whenever the persistent repository variable
vars.RUSTFS_WARP_BUDGET_JSONis set, every run exportsWARP_BUDGET_FILE.step5_benchmarkthen requires a 64-characterPACKAGE_SHA256wheneverWARP_BUDGET_FILEis present, which will cause all scheduled or nightly runs that do not manually passpackage_sha256to fail.
- Whenever the persistent repository variable
- Remote script paths are unescaped, and service state checks are insufficient (
scripts/lib/package_candidate.sh):printf 'pkg="%s"\n' "${package}"interpolates the path into a double-quoted remote script. Useprintf 'pkg=%q\n' "${package}"instead so special characters are not interpreted by the remote shell.- Checking only that
systemctl show --property=MainPID --value rustfsis a positive integer does not rule outactivating/deactivating. Also verifyActiveState=active.
- Security test assertion and error-code extraction edge cases (
rustfs-security-test.sh):case_iam_105_readonly_boundary()callsassert_aws_okafterrm_bucket "${bucket}", which checks the leftover globalAWS_CODEfrom the previousaws_run, not the exit status ofrm_bucketitself.aws_error_code()anchors at the start of the line with^An error occurred ...and does not pipe to| head -1. Prefixed AWS CLI errors (e.g.fatal error: An error occurred (...)) or multi-line errors can miss the match or fail exact comparison.
- Minor issues in the upgrade script and regression tests:
- In
stop_upgrade_observation()inrustfs-upgrade-test.sh, write[ -n "${UPGRADE_PROBE_PID:-}" ]so it remains compatible when the script is sourced underset -u.main()addedneed_cmd cmpbut is missingneed_cmd timeout. - In
test_site101()inrustfs-replication-test.sh, keep the original(.sites | length == 2)so a 3-site setup with an emptydeploymentIDdoes not pass incorrectly. - In the raw string
r"""..."""intest_rustfs_upgrade.py,printf '%064d -\\n'should be\n.
- In
overtrue
approved these changes
Nov 30, 2026
overtrue
left a comment
Collaborator
There was a problem hiding this comment.
Approved on commit 147107c. All five items from the previous review have been addressed and verified:
- Performance host resolution & budget gating (
rustfs_performance_test.sh,.github/workflows/rustfs-performance-test.yml,test_rustfs_performance_testing.py):record_performance_candidatenow usesgetent ahostsv4,step5_benchmarkchecksneed_cmd getentandneed_cmd cmp,run_remotelogs tostderr, and the workflow only enablesRUSTFS_WARP_BUDGET_FILEwhen a candidate package SHA-256 is supplied. The unit test now sourcesrustfs_performance_test.shdirectly and covers dual-stackgetent ahostsvsahostsv4. - Remote package verification (
scripts/lib/package_candidate.sh,test_rustfs_upgrade.py):verify_running_package_candidatenow safely shell-escapespkgandexpectedvia%q, checkssha256sum < "$pkg", and enforcesActiveState == activealongsideMainPID. Regression tests cover special characters in filenames plusactivating/deactivatingstates, and fix the\nescape in the raw test harness. - Security assertions & error parsing (
rustfs-security-test.sh,test_rustfs_security.py):case_iam_105_readonly_boundarynow invokesaws_run s3api delete-bucketbeforeassert_aws_ok, andaws_error_codematches prefixed/multi-lineAn error occurred (...) when callingoutput cleanly. - Upgrade & replication scripts (
rustfs-upgrade-test.sh,rustfs-replication-test.sh,test_rustfs_replication.py):stop_upgrade_observationuses${UPGRADE_PROBE_PID:-},main()checks bothneed_cmd cmpandneed_cmd timeout, andtest_site101preserves(.sites | length == 2)with regression coverage for 3-site / duplicate IDs.
All 9 CI checks are green and mergeStateStatus is CLEAN.
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.
Changes
Verification
Independent failure domains, a production-shaped performance budget, mixed-version upgrade and rollback need dedicated runs. No workflow enablement or dispatch is part of this PR.
Additional S3 verification on RustFS 1.0.7
The original S3C-305 fixture put the 1 MiB part last and described it as non-final. The revised case submits a genuinely undersized non-final part, checks the exact 400/EntityTooSmall error, and exercises small final and single-part positive controls with byte-exact GETs. The live service rejected the reversed part order with 400/InvalidPartOrder and passed both positive controls. Four fixture regressions cover request shape and verdict propagation.
An independent set of 58 unique release checks yielded 56 passes and two failures. It includes four Object Lock cases and 555 assertions across 19 strict encryption and KMS checks. The 404 NoSuchKey response carried matching request-ID headers but its XML omitted RequestId. The scanner-disabled Veeam capacity endpoint returned 503/ServiceUnavailable; its later authorization stage was not reached. This 58-case set excludes the 17 S3 cases above. S3C-305 is counted once.
Final local regression rerun
All 66 upgrade and performance fixture tests passed in 67.227 seconds at
1aa285fwith their original subprocess deadlines. The local fixture used Python 3.13, boto3, the AWS CLI, GNU timeout and Bash 5.3. This supersedes the partial local run above.The two failing release assertions were repeated on native RustFS
ea4c226on isolated volumes. The missing-object 404 carried the same request ID in the XML, both headers and the request completion log. With the scanner disabled, the authenticated Veeam capacity GET returned 200 on its first attempt and satisfied the capacity, ETag and LastModified assertions. The 75-case totals above describe 1.0.7.