Skip to content

Fix long running tests in support of migration to esbuild#1081

Open
MicroFish91 wants to merge 28 commits into
mainfrom
mwf/inc-lime
Open

Fix long running tests in support of migration to esbuild#1081
MicroFish91 wants to merge 28 commits into
mainfrom
mwf/inc-lime

Conversation

@MicroFish91

@MicroFish91 MicroFish91 commented May 19, 2026

Copy link
Copy Markdown
Contributor

Tests are now updated to be compatible with the ES build work. I also fixed a few smaller issues that cropped up since the tests hadn’t been running for a while.

One annoying change: I used to just delete the .vscode/ folder in each project between deployments and that worked just fine... but that’s apparently no longer enough. I assume a newer VS Code update introduced some kind of caching behavior that now has to be explicitly reset through the API; otherwise deployments can still pick up older cached settings even if the folder was deleted.

Update: The remote subscription we use only seems to support 1 container environment so I'm requesting an increase in quotas before I do a final verification pass

@MicroFish91 MicroFish91 changed the title Fix long running tests in support of migration to ES build Fix long running tests in support of migration to esbuild May 19, 2026
Comment thread .vscode/settings.json Outdated
".vscode-test": true
}
},
"js/ts.tsdk.path": "node_modules/typescript/lib",

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.

Fixes the mocha warnings that have been showing up

Comment thread .vscode/launch.json Outdated
return {
name: localize('containerAppEnvironment', 'Container Apps Environment'),
value: nonNullValueAndProp(context.managedEnvironment, 'name'),
value: context.managedEnvironment?.name ?? context.newManagedEnvironmentName ?? '',

@MicroFish91 MicroFish91 May 19, 2026

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.

Note for future confirmation views - we should prefer optionals over nonNull for these sections, I think it can still run when users select to create a new resource, in which case it could still be undefined when this gets run

MicroFish91 and others added 5 commits June 15, 2026 09:45
The native FC_* env var support in vscode-azureresourcegroups v0.12.7
has issues when relying solely on the logIn command path:
- setOverrideAzureSubscriptionProvider bypasses tree provider caching
  (checked fresh on every call), while the native path caches the
  subscription provider on first access
- If the tree renders before logIn completes, it may cache a
  stale/unsigned-in provider instance
- The alpha auth dependency may also have timing issues with signIn()
  under the native factory flow

Until the native path is stable, explicitly override the subscription
provider via the RG test API.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@MicroFish91 MicroFish91 marked this pull request as ready for review June 16, 2026 20:25
@MicroFish91 MicroFish91 requested a review from a team as a code owner June 16, 2026 20:25
@MicroFish91

MicroFish91 commented Jun 16, 2026

Copy link
Copy Markdown
Contributor Author

Going to go ahead and take this out of draft so people can review. I did verify that it passes remotely, but ever since they expanded our quota, we've still been getting intermittent restrictions which I messaged them about:

image

Just a heads up as you might notice that in some of the pipeline runs

@bwateratmsft bwateratmsft left a comment

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.

Looks good but see my chat message about the Mocha warnings

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.

2 participants