Skip to content

Conversation

@osdemah
Copy link
Contributor

@osdemah osdemah commented Jan 2, 2025

Problem

mvn and gradle files are not included in repo archives for Q.

Solution

Add a wellKnownSubnames list to include files with mvn and gradle in their path.


  • Treat all work as PUBLIC. Private feature/x branches will not be squash-merged at release time.
  • Your code changes must meet the guidelines in CONTRIBUTING.md.
  • License: I confirm that my contribution is made under the terms of the Apache 2.0 license.

@osdemah osdemah requested a review from a team as a code owner January 2, 2025 19:59
@github-actions
Copy link

github-actions bot commented Jan 2, 2025

  • This pull request modifies code in src/* but no tests were added/updated.
    • Confirm whether tests should be added or ensure the PR description explains why tests are not required.

@osdemah osdemah changed the title Include mvn and gradle files in repo archives fix: Include mvn and gradle files in repo archives Jan 2, 2025
@osdemah osdemah closed this Jan 2, 2025
@osdemah osdemah reopened this Jan 2, 2025
@osdemah osdemah changed the title fix: Include mvn and gradle files in repo archives fix(amazonq): Include mvn and gradle files in repo archives Jan 2, 2025
@osdemah osdemah closed this Jan 2, 2025
@osdemah osdemah reopened this Jan 2, 2025
return true
}
for (const subname of wellKnownSubnames) {
if (filename.includes(subname)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

this is a very loose check.

surely these changes deserve a test...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this implicitness was intentional, as I wouldn't want to chase down specific extensions/file names for them. but we could also just include the missing file names and extensions. updated to the latter and added some tests.

@justinmk3
Copy link
Contributor

LGTM after lint issues are fixed

@justinmk3
Copy link
Contributor

merging latest master (again) will fix the "tech debt" test failure.

there are still lint issues that need to be fixed here.

@justinmk3 justinmk3 merged commit 0ca35b8 into aws:master Jan 7, 2025
26 checks passed
@justinmk3
Copy link
Contributor

@osdemah E2E and Integ tests are failing after merging this (I forgot to run them for this PR).

karanA-aws pushed a commit to karanA-aws/aws-toolkit-vscode that referenced this pull request Jan 17, 2025
## Problem
mvn and gradle files are not included in repo archives for Q.

## Solution
Add them to the `isCodeFile()` condition.
s7ab059789 pushed a commit to s7ab059789/aws-toolkit-vscode that referenced this pull request Feb 19, 2025
## Problem
mvn and gradle files are not included in repo archives for Q.

## Solution
Add them to the `isCodeFile()` condition.
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.

3 participants