Skip to content

Commit ac09f3f

Browse files
committed
Merge branch 'master' into notInTelemetry
2 parents acd3fb3 + c44fa30 commit ac09f3f

File tree

28 files changed

+1209
-287
lines changed

28 files changed

+1209
-287
lines changed

buildspec/shared/linux-pre_build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ if [ "$TOOLKITS_CODEARTIFACT_DOMAIN" ] && [ "$TOOLKITS_CODEARTIFACT_REPO" ] && [
2222
fi
2323

2424
# TODO: move this to the "install" phase?
25-
export NODE_OPTIONS=--max-old-space-size=8192
25+
export NODE_OPTIONS='--max-old-space-size=8192'
2626
npm 2>&1 ci | run_and_report 2 'npm WARN deprecated' 'Deprecated dependencies must be updated.'

docs/TESTPLAN.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ The test suite has the following categories of tests:
4242
- Live in `src/testE2E`
4343
- These tests are heavier than Integration tests.
4444
- Some E2E tests have a more complicated architecture, described in [TEST_E2E](./TEST_E2E.md)
45+
- Performance Tests: **slow** tests
46+
- Live in `src/testInteg/perf`.
47+
- A subset of integration tests focused on catching performance regressions.
48+
- Use a combination of operation counting and system usage statistics such as cpu usage, memory usage, and duration.
49+
- Each test is often repeated 10 or more times for less variant system usage statistics, then median of runs is used.
4550

4651
## Test files
4752

package-lock.json

Lines changed: 28 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,13 @@
6363
"pretty-quick": "^4.0.0",
6464
"ts-node": "^10.9.1",
6565
"typescript": "^5.0.4",
66-
"webpack": "^5.83.0",
66+
"webpack": "^5.95.0",
6767
"webpack-cli": "^5.1.4",
6868
"webpack-dev-server": "^4.15.1",
6969
"webpack-merge": "^5.10.0"
7070
},
7171
"dependencies": {
72+
"@types/node": "^18.19.55",
7273
"vscode-nls": "^5.2.0",
7374
"vscode-nls-dev": "^4.0.4"
7475
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"date": "2024-10-17",
3+
"version": "1.30.0",
4+
"entries": [
5+
{
6+
"type": "Bug Fix",
7+
"description": "Various fixes and changes"
8+
}
9+
]
10+
}

packages/amazonq/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.30.0 2024-10-17
2+
3+
- **Bug Fix** Various fixes and changes
4+
15
## 1.29.0 2024-10-10
26

37
- **Bug Fix** Amazon Q /dev: include telemetry for workspace usage when generating new files

packages/amazonq/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "amazon-q-vscode",
33
"displayName": "Amazon Q",
44
"description": "Amazon Q is your generative AI-powered assistant across the software development lifecycle.",
5-
"version": "1.30.0-SNAPSHOT",
5+
"version": "1.31.0-SNAPSHOT",
66
"extensionKind": [
77
"workspace"
88
],

packages/amazonq/scripts/build/copyFiles.ts

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55

66
/* eslint-disable no-restricted-imports */
7-
import * as fs from 'fs-extra'
7+
import fs from 'fs'
88
import * as path from 'path'
99

1010
// Moves all dependencies into `dist`
@@ -73,33 +73,35 @@ const tasks: CopyTask[] = [
7373
},
7474
]
7575

76-
async function copy(task: CopyTask): Promise<void> {
76+
function copy(task: CopyTask): void {
7777
const src = path.resolve(projectRoot, task.target)
7878
const dst = path.resolve(outRoot, task.destination ?? task.target)
7979

8080
try {
81-
await fs.copy(src, dst, {
81+
fs.cpSync(src, dst, {
8282
recursive: true,
83-
overwrite: true,
83+
force: true,
8484
errorOnExist: false,
8585
})
8686
} catch (error) {
8787
throw new Error(`Copy "${src}" to "${dst}" failed: ${error instanceof Error ? error.message : error}`)
8888
}
8989
}
9090

91-
void (async () => {
92-
const args = process.argv.slice(2)
93-
if (args.includes('--vueHr')) {
94-
vueHr = true
95-
console.log('Using Vue Hot Reload webpacks from core/')
96-
}
91+
const args = process.argv.slice(2)
92+
if (args.includes('--vueHr')) {
93+
vueHr = true
94+
console.log('Using Vue Hot Reload webpacks from core/')
95+
}
9796

97+
function main() {
9898
try {
99-
await Promise.all(tasks.map(copy))
99+
tasks.map(copy)
100100
} catch (error) {
101101
console.error('`copyFiles.ts` failed')
102102
console.error(error)
103103
process.exit(1)
104104
}
105-
})()
105+
}
106+
107+
void main()

packages/amazonq/test/e2e/amazonq/framework/jsdomInjector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ export function injectJSDOM() {
3434
})
3535

3636
// jsdom doesn't have support for structuredClone. See https://github.com/jsdom/jsdom/issues/3363
37-
global.structuredClone = (val) => JSON.parse(JSON.stringify(val))
37+
global.structuredClone = (val: any) => JSON.parse(JSON.stringify(val))
3838
}

packages/core/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,6 @@
411411
"@types/circular-dependency-plugin": "^5.0.8",
412412
"@types/cross-spawn": "^6.0.6",
413413
"@types/diff": "^5.0.7",
414-
"@types/fs-extra": "^9.0.11",
415414
"@types/glob": "^8.1.0",
416415
"@types/js-yaml": "^4.0.5",
417416
"@types/jsdom": "^21.1.6",
@@ -423,7 +422,7 @@
423422
"@types/node-fetch": "^2.6.8",
424423
"@types/prismjs": "^1.26.0",
425424
"@types/proper-lockfile": "^4.1.4",
426-
"@types/readline-sync": "^1.4.3",
425+
"@types/readline-sync": "^1.4.8",
427426
"@types/semver": "^7.5.0",
428427
"@types/sinon": "^10.0.5",
429428
"@types/sinonjs__fake-timers": "^8.1.2",
@@ -488,7 +487,6 @@
488487
"cross-fetch": "^4.0.0",
489488
"cross-spawn": "^7.0.3",
490489
"fast-json-patch": "^3.1.1",
491-
"fs-extra": "^10.0.1",
492490
"glob": "^10.3.10",
493491
"got": "^11.8.5",
494492
"highlight.js": "^11.9.0",

0 commit comments

Comments
 (0)