Skip to content

Conversation

@Hweinstock
Copy link
Contributor

@Hweinstock Hweinstock commented Mar 18, 2025

Problem

collectFiles and collectFilesForIndex serve different purposes, but implement the same core functionality. This core functionality should be not duplicated in two places.

Solution

  • Increase testing coverage for both methods.
  • Refactor collectFiles to be general enough to handle collectFilesForIndex use case. This includes the ability to avoid reading the files when we are indexing.
  • collectFilesForIndex now directly calls collectIndex then does its additional logic with the result.

Verification

  • Tested @workspace in chat with some different prompts. Seems to behave the same as before.
  • Tested /review on a project.

  • 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.

@Hweinstock
Copy link
Contributor Author

Hweinstock commented Mar 18, 2025

/runIntegrationTests

@Hweinstock Hweinstock marked this pull request as ready for review March 18, 2025 21:40
@Hweinstock Hweinstock requested review from a team as code owners March 18, 2025 21:40
@Hweinstock Hweinstock changed the title refactor(workspaceutil): unify file collecting utilities. (WIP) refactor(workspaceutil): unify file collecting utilities Mar 18, 2025
Copy link
Contributor

@jpinkney-aws jpinkney-aws left a comment

Choose a reason for hiding this comment

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

🎉

@Hweinstock Hweinstock merged commit 5ff53ba into aws:master Mar 19, 2025
30 of 32 checks passed
@Hweinstock Hweinstock deleted the cleanUp/collectFiles branch March 19, 2025 15:17
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