This document contains helpful information for developers working on the deploy-time-build project.
All text in PR title or description must be written in English.
Pull request titles must follow the Conventional Commits format. Only the following prefixes are allowed:
feat:- For new featuresfix:- For bug fixeschore:- For maintenance tasks, dependencies updates, etc.
Examples:
feat: add support for arm64 instancesfix: resolve build failure on Windowschore: update dependency versions
PRs with titles not following this format will fail validation checks.
src/- Main source codecontainer-image-build.ts- Container image building functionalitynodejs-build.ts- NodeJS build functionalitysoci-index-build.ts- SOCI index functionalitysingleton-project.ts- Utility for creating singleton CodeBuild projectstypes.ts- Type definitions
You should make sure the build succeeds by the following command before commiting a change:
npm run buildAfter a successful build, several files such as API.md might be updated. Please check git status and commit them if there are any changes.
The project uses snapshot tests for integration testing. When making infrastructure changes that affect the generated CloudFormation templates, you'll need to update the snapshot tests.
When you make changes that intentionally alter the infrastructure (like adding new resources or changing existing ones), the snapshot tests will fail. This is expected behavior.
After your changes are approved and merged, update the snapshot tests by running:
npx integ-runner --update-on-failedSome changes will create new resources and destroy old ones. This should be clearly noted in PRs.
The CI pipeline runs tests that verify the snapshot templates. Breaking changes will cause these tests to fail. When submitting PRs with intentional breaking changes, clearly document that these failures are expected.