Skip to content

Conversation

@nwnt
Copy link
Member

@nwnt nwnt commented Oct 14, 2025

As a continuation of breaking #20736 down, I'm making the clients' data and report paths configurable from the new environment variables (DATA_PATHS and REPORT_PATH).

@serathius

@nwnt nwnt changed the title Migrate from fixed paths to env-based vars [Antithesis] Migrate from fixed paths to env-based vars Oct 14, 2025
@codecov
Copy link

codecov bot commented Oct 14, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 69.20%. Comparing base (81ed8ee) to head (04ed940).
⚠️ Report is 20 commits behind head on main.

Additional details and impacted files

see 19 files with indirect coverage changes

@@           Coverage Diff           @@
##             main   #20794   +/-   ##
=======================================
  Coverage   69.19%   69.20%           
=======================================
  Files         422      422           
  Lines       34821    34824    +3     
=======================================
+ Hits        24096    24101    +5     
+ Misses       9326     9323    -3     
- Partials     1399     1400    +1     

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 81ed8ee...04ed940. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

dataPaths = parseDataPaths(envDataPaths)
hosts = make([]string, 0, len(dataPaths))
for host := range dataPaths {
hosts = append(hosts, host+":2379")
Copy link
Member

Choose a reason for hiding this comment

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

Thought that ETCD_ROBUSTNESS_ENDPOINTS already include port numbers.

Copy link
Member Author

Choose a reason for hiding this comment

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

My bad, I didn't include this part in the code. This is now fixed.

@nwnt nwnt force-pushed the switch-to-paths-from-envs branch from e13cfd6 to 3b9c2ee Compare October 14, 2025 15:16
@nwnt nwnt force-pushed the switch-to-paths-from-envs branch from 3b9c2ee to 8382b93 Compare October 15, 2025 13:19
@nwnt nwnt force-pushed the switch-to-paths-from-envs branch from 8382b93 to 04ed940 Compare October 15, 2025 13:21
@serathius
Copy link
Member

/retest

_, reportPath, dirs := common.DefaultPaths(cfg)
_, reportPath, dirs := common.GetPaths(cfg)
if *local {
_, reportPath, dirs = common.LocalPaths(cfg)
Copy link
Member

Choose a reason for hiding this comment

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

For the future, would also good to move LocalPaths into GetPaths

@serathius serathius merged commit 5c1f17f into etcd-io:main Oct 16, 2025
33 checks passed
@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: nwnt, serathius

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

The pull request process is described here

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants