[Dev] Fix "environment variable already defined" error in sqllogictest when test_env is used - #21305
Conversation
|
I can see this: // setup this test runner with Config-based env, then override with ephemerals (only WORKING_DIR at this point)
for (auto &kv : test_config.GetTestEnvMap()) {
runner.environment_variables[kv.first] = kv.second;
}And the Aha, figured it out So for the next run, |
|
This pull request is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
|
This pull request was closed because it has been stale for 30 days with no activity. |
|
Thanks! |
Conflict-free merge of the clean commits between resolutions: - Fix crash when storage path is not set (duckdb#23174) - Zero the inlined buffer in string_t's length-only constructor (duckdb#23201) - [Dev] Fix "environment variable already defined" error in sqllogictest when `test_env` is used (duckdb#21305) - parquet: initialize `ParquetReader::rows_read` (duckdb#23205)
…t when `test_env` is used (duckdb#21305) This PR is a follow-up to duckdb#21099 Problem is fixed by making sure `test_env` gets loaded only once, and we make sure environment variables provided by `test_env` don't get falsely flagged as "double defined"
Conflict-free merge of the clean commits between resolutions: - Fix crash when storage path is not set (duckdb#23174) - Zero the inlined buffer in string_t's length-only constructor (duckdb#23201) - [Dev] Fix "environment variable already defined" error in sqllogictest when `test_env` is used (duckdb#21305) - parquet: initialize `ParquetReader::rows_read` (duckdb#23205)
Brings these v1.5-variegata commits; they do not overlap with the main/v2.0 line, so they merge with no conflicts: - Fix crash when storage path is not set (duckdb#23174) - Zero the inlined buffer in string_t's length-only constructor (duckdb#23201) - [Dev] Fix "environment variable already defined" error in sqllogictest when `test_env` is used (duckdb#21305) - parquet: initialize `ParquetReader::rows_read` (duckdb#23205)
Brings these v1.5-variegata commits; they do not overlap with the main/v2.0 line, so they merge with no conflicts: - Fix crash when storage path is not set (duckdb#23174) - Zero the inlined buffer in string_t's length-only constructor (duckdb#23201) - [Dev] Fix "environment variable already defined" error in sqllogictest when `test_env` is used (duckdb#21305) - parquet: initialize `ParquetReader::rows_read` (duckdb#23205)
…t when `test_env` is used (duckdb/duckdb#21305) This PR is a follow-up to #21099 Problem is fixed by making sure `test_env` gets loaded only once, and we make sure environment variables provided by `test_env` don't get falsely flagged as "double defined" Upstream-Commit: duckdb/duckdb@dc6a0be
This PR is a follow-up to #21099
Problem is fixed by making sure
test_envgets loaded only once, and we make sure environment variables provided bytest_envdon't get falsely flagged as "double defined"