Skip to content

refactor(project): move build behind a project backend - #2055

Merged
tejaskash merged 1 commit into
refactorfrom
feat/project-backend-build
Aug 20, 2026
Merged

refactor(project): move build behind a project backend#2055
tejaskash merged 1 commit into
refactorfrom
feat/project-backend-build

Conversation

@notgitika

@notgitika notgitika commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • introduce the ProjectBackend boundary selected by managedBy
  • move CDK build and synthesis behavior behind CdkBackend
  • preserve existing project build behavior and error handling

Stack

This is PR 1 of 4 decomposing #2001. Review and merge bottom-up.

  1. refactor(project): move build behind a project backend #2055 - backend build boundary (this PR)
  2. feat(project): add deploy command contract #2056 - deploy command contract
  3. feat(project): add CDK Toolkit adapter #2057 - CDK Toolkit adapter
  4. feat(project): implement safe CDK deployment #2058 - safe deployment implementation

typecheck, lint, format, test all pass

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.14%. Comparing base (33e2d2f) to head (8b4d37f).

Additional details and impacted files
@@            Coverage Diff            @@
##           refactor    #2055   +/-   ##
=========================================
  Coverage     97.14%   97.14%           
=========================================
  Files           382      383    +1     
  Lines         22884    22905   +21     
=========================================
+ Hits          22231    22252   +21     
  Misses          653      653           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions github-actions Bot removed the agentcore-harness-reviewing AgentCore Harness review in progress label Aug 20, 2026
@notgitika
notgitika marked this pull request as ready for review August 20, 2026 04:08
@notgitika
notgitika marked this pull request as draft August 20, 2026 04:19
@notgitika
notgitika marked this pull request as ready for review August 20, 2026 04:24

@Hweinstock Hweinstock left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

checkTool?: typeof requireTool;
};

/** Builds projects through the CDK app scaffolded by `agentcore project create`. */

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this would also be deploying eventually too right? (no need to change anything, just want to make sure I understand the vision)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yes!

@@ -229,47 +240,17 @@ export class FsProjectManager implements ProjectManager {
}

public async *build(project: Project): AsyncGenerator<ProjectEvent, void> {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nice, I really like how clean this is now!

@tejaskash tejaskash left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good

`Run 'cd ${cdkDir} && npm install'.`,
);
}
await this.checkTool("npm", "Install Node.js: https://nodejs.org/");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice!

@tejaskash
tejaskash merged commit b6ebd35 into refactor Aug 20, 2026
12 checks passed
@tejaskash
tejaskash deleted the feat/project-backend-build branch August 20, 2026 16:07
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.

4 participants