Skip to content

acc: Fix local inprocess tests when run from IDE#3056

Merged
denik merged 5 commits intomainfrom
denik/acc-inprocess
Jun 25, 2025
Merged

acc: Fix local inprocess tests when run from IDE#3056
denik merged 5 commits intomainfrom
denik/acc-inprocess

Conversation

@denik
Copy link
Copy Markdown
Contributor

@denik denik commented Jun 13, 2025

Changes

Why

Loading those env vars sets CLOUD_ENV which makes test runner ignore local tests.

Tests

Manually. Set selftest/basic Cloud=false and run it via IDE.

}

func testAccept(t *testing.T, inprocessMode bool, singleTest string) int {
// Load debug environment when debugging a single test run from an IDE.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can we keep it but under a flag? It's still valuable to have but by default can be turned off.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I added it to TestInprocess as a comment 9b10702

Easy enough to uncomment if you need it.

Copy link
Copy Markdown
Contributor

@shreyas-goenka shreyas-goenka Jun 13, 2025

Choose a reason for hiding this comment

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

The commented out code also works fine.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is the comment at L52 still accurate (present in the original PR)?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Partially, I moved it inside TestInprocess where other instruction is.

@denik denik temporarily deployed to test-trigger-is June 13, 2025 12:09 — with GitHub Actions Inactive
@denik denik enabled auto-merge June 13, 2025 12:10
@denik denik temporarily deployed to test-trigger-is June 13, 2025 12:30 — with GitHub Actions Inactive
@denik denik force-pushed the denik/acc-inprocess branch from 50f517a to 5a0663a Compare June 13, 2025 12:32
@denik denik temporarily deployed to test-trigger-is June 13, 2025 12:32 — with GitHub Actions Inactive
@denik denik temporarily deployed to test-trigger-is June 18, 2025 06:54 — with GitHub Actions Inactive
@denik denik force-pushed the denik/acc-inprocess branch from 2019076 to ab3a5c1 Compare June 23, 2025 14:43
@denik denik temporarily deployed to test-trigger-is June 23, 2025 14:43 — with GitHub Actions Inactive
@denik denik temporarily deployed to test-trigger-is June 24, 2025 13:29 — with GitHub Actions Inactive
denik added 5 commits June 25, 2025 09:18
- Do not load debug variables, this sets CLOUD_ENV which causes test
  runner to ignore local tests. Reverts #2765
- Better check in TestInprocess that test is actually run and not selected.
@denik denik force-pushed the denik/acc-inprocess branch from 8581ff6 to b7833bc Compare June 25, 2025 07:20
@denik denik temporarily deployed to test-trigger-is June 25, 2025 07:20 — with GitHub Actions Inactive
@denik denik disabled auto-merge June 25, 2025 09:41
@denik denik merged commit 79d0f89 into main Jun 25, 2025
21 of 23 checks passed
@denik denik deleted the denik/acc-inprocess branch June 25, 2025 09:41
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.

4 participants