Skip to content

Conversation

@roger-zhangg
Copy link
Member

Problem

fix #6000
Fix flaky test here
https://github.com/aws/aws-toolkit-vscode/actions/runs/11822049864/job/32938204047?pr=5988

Solution

The flaky issue happens when the file failed to be created before test run
move file preparation step into beforeEach so it will be more reliable.


License: I confirm that my contribution is made under the terms of the Apache 2.0 license.

@roger-zhangg roger-zhangg requested a review from a team as a code owner November 13, 2024 19:44
const workspaceUri = vscode.workspace.workspaceFolders?.[0]?.uri
assert.ok(workspaceUri)
await fs.writeFile(vscode.Uri.joinPath(workspaceUri, 'template.yaml'), 'random text')
const prevInfo = await fs.readFileText(vscode.Uri.joinPath(workspaceUri, 'template.yaml'))
Copy link
Contributor

Choose a reason for hiding this comment

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

Just for future reference: can also use waitUntil to retry.

@justinmk3 justinmk3 merged commit b173d6c into aws:master Nov 13, 2024
22 of 25 checks passed
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.

unreliable test: AppBuilder walkthrough create project build an app with appcomposer overwrite:

2 participants