Skip to content

[codex] Harden repo, add remote PR flow, and upgrade starter API#1

Merged
Rohan5commit merged 5 commits intomainfrom
codex/repo-hardening-and-api-starter
Apr 15, 2026
Merged

[codex] Harden repo, add remote PR flow, and upgrade starter API#1
Rohan5commit merged 5 commits intomainfrom
codex/repo-hardening-and-api-starter

Conversation

@Rohan5commit
Copy link
Copy Markdown
Owner

Summary

  • remove committed generated artifacts and add stronger ignore rules
  • add safer GitHub branch and pull-request support to the Modal remote runner
  • upgrade the NestJS Fastify sample into a documented health and compute-planning API
  • add GitHub Actions validation for Python, shell scripts, and the NestJS sample

Validation

  • GitHub Actions workflow added for Python unit checks, shell parsing, NestJS lint, build, unit, and e2e tests

@Rohan5commit Rohan5commit marked this pull request as ready for review April 15, 2026 16:20
Copilot AI review requested due to automatic review settings April 15, 2026 16:20
@Rohan5commit Rohan5commit merged commit bbe1c17 into main Apr 15, 2026
5 checks passed
@Rohan5commit Rohan5commit deleted the codex/repo-hardening-and-api-starter branch April 15, 2026 16:20
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

This PR hardens the repository for remote-first workflows, adds CI validation, and upgrades the NestJS Fastify sample from a stub into a small documented API.

Changes:

  • Added GitHub Actions CI for Python+shell validation and NestJS lint/build/unit/e2e tests
  • Hardened local snapshot ignore rules for Modal task syncing
  • Updated READMEs and the NestJS Fastify sample documentation to reflect new endpoints and workflows

Reviewed changes

Copilot reviewed 5 out of 34528 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
nestjs-fastify-boilerplate/README.md Replaces stock NestJS starter README with endpoint-focused documentation and usage scripts
modal_tasks.py Expands ignore rules to avoid syncing common generated/cached artifacts to Modal
README.md Updates repo-level docs for CLI offload and GitHub-only remote PR flow
.github/workflows/ci.yml Adds CI jobs for Python/shell validation and NestJS sample testing
.gemini/.env Removes committed Gemini routing env file (likely moving to local-only configuration)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.md
Comment on lines +67 to +74
MODAL_REMOTE_REPO_URL="https://github.com/Rohan5commit/Modal-terminal-instructions.git"
MODAL_REMOTE_REPO_BRANCH="main"
MODAL_REMOTE_PUSH="1"
MODAL_REMOTE_PUSH_BRANCH="codex/my-change"
MODAL_REMOTE_OPEN_PR="1"
MODAL_REMOTE_PR_BASE="main"
MODAL_REMOTE_PR_DRAFT="1"
MODAL_REMOTE_PR_TITLE="[modal] My remote change"
Copy link

Copilot AI Apr 15, 2026

Choose a reason for hiding this comment

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

The example config hard-codes a specific third-party repository URL, which is likely confusing/misleading for users of this repo. Recommend switching this to a placeholder (e.g., https://github.com/<org>/<repo>.git) or to this repository’s URL so the quickstart is self-contained.

Copilot uses AI. Check for mistakes.

# test coverage
$ npm run test:cov
curl -X POST http://localhost:3000/api/compute/plan -H 'content-type: application/json' -d '{"iterations":24000000,"workers":6,"salt":23}'
Copy link

Copilot AI Apr 15, 2026

Choose a reason for hiding this comment

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

This curl example is hard to read/copy reliably due to inline spacing and lack of line breaks. Consider formatting it across multiple lines with continuations (or at least consistent spacing) to make it more copy/paste-friendly.

Suggested change
curl -X POST http://localhost:3000/api/compute/plan -H 'content-type: application/json' -d '{"iterations":24000000,"workers":6,"salt":23}'
curl -X POST http://localhost:3000/api/compute/plan \
-H 'content-type: application/json' \
-d '{"iterations":24000000,"workers":6,"salt":23}'

Copilot uses AI. Check for mistakes.
Comment thread .github/workflows/ci.yml
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install modal
Copy link

Copilot AI Apr 15, 2026

Choose a reason for hiding this comment

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

CI installs modal without pinning or a requirements lock, which can introduce non-deterministic failures as dependencies evolve. Prefer installing from a pinned requirements file (e.g., requirements.txt/requirements-dev.txt) or pinning modal==... to keep CI reproducible.

Suggested change
python -m pip install modal
python -m pip install modal==0.72.39

Copilot uses AI. Check for mistakes.
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.

2 participants