Skip to content

Commit a94fdd5

Browse files
Muzaffer AydinMuzaffer Aydin
authored andcommitted
Merge branch 'master' into muaydin/docdb-polling-bug-fix
2 parents 3d41ed8 + ffd94b4 commit a94fdd5

File tree

176 files changed

+16458
-1702
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

176 files changed

+16458
-1702
lines changed

.github/CODEOWNERS

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
* @aws/aws-ides-team
22
packages/core/src/codewhisperer/ @aws/codewhisperer-team
33
packages/core/src/amazonqFeatureDev/ @aws/earlybird
4-
packages/core/src/codewhispererChat/ @aws/dexp
5-
packages/core/src/amazonq/ @aws/dexp
4+
packages/core/src/codewhispererChat/ @aws/flare
5+
packages/core/src/amazonq/ @aws/flare
66
packages/core/src/awsService/accessanalyzer/ @aws/access-analyzer

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
---
88

9-
<!--- REMINDER: Ensure that your PR meets the guidelines in CONTRIBUTING.md -->
9+
- Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time.
10+
- Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines).
1011

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

.github/workflows/node.js.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
env:
8585
# Unset NODE_OPTIONS because of https://github.com/codecov/uploader/issues/475
8686
NODE_OPTIONS: ''
87-
if: ${{ github.repository == 'aws/aws-toolkit-vscode' && github.ref == 'master' }}
87+
if: ${{ github.repository == 'aws/aws-toolkit-vscode' && github.event_name == 'pull_request' && github.base_ref == 'master' }}
8888
uses: codecov/codecov-action@v5
8989
with:
9090
flags: macos-toolkit-unittests
@@ -95,7 +95,7 @@ jobs:
9595
env:
9696
# Unset NODE_OPTIONS because of https://github.com/codecov/uploader/issues/475
9797
NODE_OPTIONS: ''
98-
if: ${{ github.repository == 'aws/aws-toolkit-vscode' && github.ref == 'master' }}
98+
if: ${{ github.repository == 'aws/aws-toolkit-vscode' && github.event_name == 'pull_request' && github.base_ref == 'master' }}
9999
uses: codecov/codecov-action@v5
100100
with:
101101
flags: macos-amazonq-unittests
@@ -154,7 +154,7 @@ jobs:
154154
env:
155155
# Unset NODE_OPTIONS because of https://github.com/codecov/uploader/issues/475
156156
NODE_OPTIONS: ''
157-
if: ${{ github.repository == 'aws/aws-toolkit-vscode' && github.ref == 'master' }}
157+
if: ${{ github.repository == 'aws/aws-toolkit-vscode' && github.event_name == 'pull_request' && github.base_ref == 'master' }}
158158
uses: codecov/codecov-action@v5
159159
with:
160160
flags: windows-unittests

CONTRIBUTING.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,12 @@ You can find documentation to create VSCode IDE settings for CodeCatalyst bluepr
238238
239239
Before sending a pull request:
240240
241+
1. Treat all work as PUBLIC. Private `feature/x` branches will _not_ be squash-merged at release time. This has several benefits:
242+
- Avoids mistakes (accidental exposure to public)!
243+
- Avoids needing to erase (squash-merge) history.
241244
1. Check that you are working against the latest source on the `master` branch.
242-
2. Check existing open, and recently merged, pull requests to make sure someone else hasn't addressed the problem already.
243-
3. Open an issue to discuss any significant work.
245+
1. Check existing open, and recently merged, pull requests to make sure someone else hasn't addressed the problem already.
246+
1. Open an issue to discuss any significant work.
244247
245248
To send a pull request:
246249

buildspec/shared/common.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,9 @@
66

77
# Ignore these patterns when deciding if the build should fail.
88
# - "waiting for browser": from `ssoAccessTokenProvider.test.ts`, unclear how to fix it.
9-
# - "Webview is disposed": only happens on vscode "minimum" (1.68.0)
109
# - "HTTPError: Response code …": caused by github rate-limiting.
1110
# - "npm WARN deprecated querystring": transitive dep of aws sdk v2 (check `npm ls querystring`), so that's blocked until we migrate to v3.
1211
_ignore_pat='Timed-out waiting for browser login flow\|HTTPError: Response code 403\|HTTPError: Response code 404\|npm WARN deprecated querystring\|npm WARN deprecated'
13-
if [ "$VSCODE_TEST_VERSION" = 'minimum' ]; then
14-
_ignore_pat="$_ignore_pat"'\|Webview is disposed'
15-
fi
1612

1713
# Do not print (noisy) lines matching these patterns.
1814
# - "ERROR:bus… Failed to connect to the bus": noise related to "xvfb". https://github.com/cypress-io/cypress/issues/19299

codecov.yml

Lines changed: 70 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,45 +5,98 @@ codecov:
55
notify:
66
require_ci_to_pass: no
77

8+
ignore:
9+
- 'node_modules/'
10+
- 'plugins/'
11+
- 'scripts/'
12+
- 'src.gen/'
13+
814
coverage:
915
precision: 2
1016
round: down
1117
range: '70...100'
1218

1319
status:
1420
project:
21+
# Note: `default` measures the entire project.
22+
# It does NOT define defaults "inherited" by other `project` items.
23+
# https://docs.codecov.com/docs/commit-status
1524
default:
16-
target: 70%
17-
threshold: 5%
18-
informational: true
25+
informational: true # Always pass. Ignore `target`, `threshold`, etc.
26+
target: 80
27+
threshold: 5
28+
only_pulls: true
1929
codewhisperer:
30+
informational: true # Always pass. Ignore `target`, `threshold`, etc.
2031
paths:
21-
- packages/core/src/codewhisperer/*
32+
- 'packages/core/src/codewhisperer/'
33+
- 'packages/core/src/amazonq*/*'
34+
- 'packages/amazonq/src/'
2235
flags:
2336
- 'codewhisperer'
37+
target: 80
38+
threshold: 5
39+
only_pulls: true
2440
amazonqFeatureDev:
41+
informational: true # Always pass. Ignore `target`, `threshold`, etc.
2542
paths:
26-
- packages/core/src/amazonqFeatureDev/*
43+
- 'packages/core/src/amazonqFeatureDev/*'
2744
flags:
2845
- 'amazonqFeatureDev'
46+
target: 80
47+
threshold: 5
48+
only_pulls: true
2949
amazonqGumby:
50+
informational: true # Always pass. Ignore `target`, `threshold`, etc.
3051
paths:
31-
- packages/core/src/amazonqGumby/*
52+
- 'packages/core/src/amazonqGumby/*'
53+
target: 80
54+
threshold: 5
55+
only_pulls: true
3256
codewhispererChat:
57+
informational: true # Always pass. Ignore `target`, `threshold`, etc.
3358
paths:
34-
- packages/core/src/codewhispererChat/*
59+
- 'packages/core/src/codewhispererChat/*'
60+
target: 80
61+
threshold: 5
62+
only_pulls: true
3563
applicationcomposer:
64+
informational: true # Always pass. Ignore `target`, `threshold`, etc.
3665
paths:
37-
- packages/core/src/applicationcomposer/*
66+
- 'packages/core/src/applicationcomposer/*'
67+
target: 80
68+
threshold: 5
69+
only_pulls: true
3870
stepFunctions:
39-
target: 50%
40-
threshold: 10%
71+
informational: true # Always pass. Ignore `target`, `threshold`, etc.
4172
paths:
42-
- packages/core/src/stepFunctions/*
73+
- 'packages/core/src/stepFunctions/*'
74+
target: 50
75+
threshold: 10
76+
only_pulls: true
4377
threatComposer:
78+
informational: true # Always pass. Ignore `target`, `threshold`, etc.
79+
paths:
80+
- 'packages/core/src/threatComposer/*'
81+
target: 80
82+
threshold: 5
83+
only_pulls: true
84+
tests:
85+
# Most code in test/ should always be "covered"!
86+
target: 95
4487
paths:
45-
- packages/core/src/threatComposer/*
46-
patch: false
88+
- '**/test/**'
89+
patch:
90+
default:
91+
# Note: `default` measures the entire project.
92+
# It does NOT define defaults "inherited" by other `project` items.
93+
# https://docs.codecov.com/docs/commit-status
94+
target: 90
95+
threshold: 5
96+
only_pulls: true
97+
informational: false # Fail if PR changes are not covered.
98+
# branches:
99+
# - master
47100
changes: false
48101

49102
comment: false
@@ -54,7 +107,9 @@ github_checks:
54107
flags:
55108
codewhisperer:
56109
paths:
57-
- packages/core/src/codewhisperer/
110+
- 'packages/core/src/codewhisperer/'
111+
- 'packages/core/src/amazonq*/*'
112+
- 'packages/amazonq/src/'
58113
amazonqFeatureDev:
59114
paths:
60-
- packages/core/src/amazonqFeatureDev/
115+
- 'packages/core/src/amazonqFeatureDev/'

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"generateNonCodeFiles": "npm run generateNonCodeFiles -w packages/ --if-present"
4040
},
4141
"devDependencies": {
42-
"@aws-toolkits/telemetry": "^1.0.282",
42+
"@aws-toolkits/telemetry": "^1.0.284",
4343
"@playwright/browser-chromium": "^1.43.1",
4444
"@types/he": "^1.2.3",
4545
"@types/vscode": "^1.68.0",
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"date": "2024-12-03",
3+
"version": "1.39.0",
4+
"entries": [
5+
{
6+
"type": "Feature",
7+
"description": "Added a getting started page for exploring amazon q agents"
8+
},
9+
{
10+
"type": "Feature",
11+
"description": "`/test` in Q chat to generate unit tests for java and python"
12+
},
13+
{
14+
"type": "Feature",
15+
"description": "`/doc` in Q chat to generate and update documentation for your project"
16+
},
17+
{
18+
"type": "Feature",
19+
"description": "Amazon Q Code Scan is now Amazon Q Code Review"
20+
},
21+
{
22+
"type": "Feature",
23+
"description": "`/review` in Q chat to scan your code for vulnerabilities and quality issues, and generate fixes"
24+
},
25+
{
26+
"type": "Feature",
27+
"description": "Security Scan: New TreeView to display security scan issues and vulnerabilities detected in your project. The TreeView provides an organized and hierarchical view of the scan results, making it easier to navigate and prioritize the issues that need to be addressed."
28+
},
29+
{
30+
"type": "Feature",
31+
"description": "Security Scan: Added ability to suppress or ignore security issues"
32+
}
33+
]
34+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Bug Fix",
3+
"description": "@workspace is missing from the welcome to q chat tab"
4+
}

0 commit comments

Comments
 (0)