Skip to content

fix(loader): warn for legacy file options - #809

Merged
imbajin merged 1 commit into
apache:masterfrom
hugegraph:fix/loader-response-file-deprecation
Oct 12, 2026
Merged

imbajin merged 1 commit into
apache:masterfrom
hugegraph:fix/loader-response-file-deprecation

Conversation

@imbajin

@imbajin imbajin commented Oct 12, 2026 •

Copy link
Copy Markdown
Member

Using --parallel-count inside an argument file parsed correctly but missed the deprecation warning because the check only inspected the original command line. Track the actual option name during JCommander validation so direct and argument-file inputs both warn once after successful validation.

--parser-threads remains silent. Positive-number checks, help and invalid-input behavior are preserved, and the Loader README explains the warning. This uses the existing parser without adding argument-file expansion or dependencies.

Validation: the argument-file regression fails before the fix and passes afterward; focused Maven option tests, EditorConfig, Checkstyle and three independent reviews passed. Related release-validation issue: TC21.

Change diagram

Warn once for the legacy Loader option after successful direct or response-file validation. This conceptual diagram does not replace the validation and scope notes above.
Warn once for the legacy Loader option after successful direct or response-file validation

- record deprecated aliases during option validation
- retain positive checks and post-validation warnings
- cover direct and file inputs with help and errors
- document argument-file warning behavior
@github-actions github-actions Bot added the loader hugegraph-loader label Oct 12, 2026
@codecov

codecov Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 44.76%. Comparing base (2692b6b) to head (fa1e8f8).

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #809   +/-   ##
=========================================
  Coverage     44.75%   44.76%           
  Complexity     3323     3323           
=========================================
  Files           377      377           
  Lines         22484    22488    +4     
  Branches       3005     3006    +1     
=========================================
+ Hits          10062    10066    +4     
  Misses        11351    11351           
  Partials       1071     1071           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@imbajin
imbajin merged commit e23a93b into apache:master Oct 12, 2026
28 checks passed
@imbajin
imbajin deleted the fix/loader-response-file-deprecation branch October 12, 2026 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

loader hugegraph-loader

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants