Skip to content

Chore/wayne test pl#1358

Draft
wayne-grant wants to merge 2 commits into
mainfrom
chore/wayne-test-pl
Draft

Chore/wayne test pl#1358
wayne-grant wants to merge 2 commits into
mainfrom
chore/wayne-test-pl

Conversation

@wayne-grant

Copy link
Copy Markdown

Description

Provide description of this PR and changes, if linked Jira ticket doesn't cover it in full.

Checklist

  • Tests added and all succeed
  • Regenerated mocks, etc. (make generate)
  • Linted (make lint-fix)
  • README.md updated, if user-facing
  • License file updated, if new 3rd-party dependency is introduced

…IDE-2108]

Test_SmokeScanPrecedence_OSSEnabled_CodeDisabled flaked on Ubuntu CI:
the OSS scan never completed (ran to a 28s timeout), with config-file
errors from a parallel test in the logs.

Root cause: the smoke-test setup helpers mutated the process-global
xdg.ConfigHome (read by storage.NewStorageWithCallbacks via
xdg.ConfigFile) and restored it in t.Cleanup. When two smoke tests ran
concurrently, each writing its own t.TempDir() to that global, one
test's storage/folder-config resolved into another test's directory —
the folder config file was missing and the scan stalled.

Fix: drop the xdg.ConfigHome mutation and instead set an explicit
per-test SettingConfigFile on the engine configuration.
folderconfig.ConfigFileFromConfig returns that explicit path before ever
consulting the xdg global, so each test is fully isolated without
touching shared process state. Applied at all four setup sites
(precedence_smoke_test.go x3, ldx_sync_smoke_test.go).

Adds isolation-invariant regression tests proving ConfigFileFromConfig
returns the explicit path for the primary, legacy, and user-global keys
and never falls back to xdg.ConfigHome.

Produced by an automated flake-fix loop.
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ basti-snyk
❌ wayne-grant
You have signed the CLA already but the status is still pending? Let us recheck it.

@snyk-io

snyk-io Bot commented Jun 23, 2026

Copy link
Copy Markdown

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@wayne-grant wayne-grant force-pushed the chore/wayne-test-pl branch from 2534aed to 4d6281e Compare June 23, 2026 14:53
@wayne-grant wayne-grant force-pushed the chore/wayne-test-pl branch from 4d6281e to e9053c4 Compare June 23, 2026 15:07
@wayne-grant wayne-grant force-pushed the chore/wayne-test-pl branch from e9053c4 to a692449 Compare June 23, 2026 15:15
@wayne-grant wayne-grant force-pushed the chore/wayne-test-pl branch 4 times, most recently from 9d68393 to cb20d8d Compare June 24, 2026 12:06
@wayne-grant wayne-grant force-pushed the chore/wayne-test-pl branch from cb20d8d to 4d561b3 Compare June 24, 2026 13:47
@wayne-grant wayne-grant force-pushed the chore/wayne-test-pl branch from 4d561b3 to e11406b Compare June 24, 2026 14:55
@wayne-grant wayne-grant force-pushed the chore/wayne-test-pl branch from e11406b to dad69e7 Compare June 24, 2026 14:59
@wayne-grant wayne-grant force-pushed the chore/wayne-test-pl branch from dad69e7 to 4f057f2 Compare June 25, 2026 11:28
@wayne-grant wayne-grant force-pushed the chore/wayne-test-pl branch from 4f057f2 to 0e243f0 Compare June 25, 2026 14:43
@wayne-grant wayne-grant force-pushed the chore/wayne-test-pl branch from 0e243f0 to 9e7bb35 Compare June 26, 2026 10:57
@wayne-grant wayne-grant force-pushed the chore/wayne-test-pl branch from 9e7bb35 to 3aecc3a Compare June 26, 2026 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants