Skip to content

fix(build): add missing pdf-parse dep, add docker build in staging#1213

Merged
waleedlatif1 merged 2 commits intostagingfrom
fix/b
Sep 1, 2025
Merged

fix(build): add missing pdf-parse dep, add docker build in staging#1213
waleedlatif1 merged 2 commits intostagingfrom
fix/b

Conversation

@waleedlatif1
Copy link
Collaborator

Summary

add missing pdf-parse dep that caused a build failure, also added docker build in staging so we can detect failures to the docker build in staging, removed tag-related logic.

Type of Change

  • Bug fix

Testing

Tested build manually.

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel
Copy link

vercel bot commented Sep 1, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
docs Ready Ready Preview Comment Sep 1, 2025 8:00pm
sim Building Building Preview Comment Sep 1, 2025 8:00pm

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

Greptile Summary

This PR addresses a build failure by adding the missing pdf-parse dependency and implements Docker build testing for the staging branch. The changes span two files:

Package Dependency Fix: The PR adds the missing pdf-parse version 1.1.1 runtime dependency to apps/sim/package.json. This was causing build failures because the code was attempting to use PDF parsing functionality, but only the TypeScript type definitions (@types/pdf-parse) were present without the actual runtime package. This is a common oversight when adding new functionality where developers include type support but forget the corresponding runtime dependency.

Docker Build Workflow Enhancement: The PR modifies .github/workflows/build.yml to support building Docker images on the staging branch in addition to main. The workflow now triggers on both branches but implements conditional logic to ensure Docker registry operations (login, push, manifest creation) only occur for the main branch. For staging builds, it creates architecture-specific tags using the commit SHA (staging-${{ github.sha }}-${{ matrix.arch }}) but doesn't push them to the registry. The PR also removes all tag-based triggers and semantic versioning logic, simplifying the build process to focus on branch-specific builds.

These changes integrate with the existing CI/CD pipeline by allowing earlier detection of Docker build issues in the staging environment before code reaches the main branch, while maintaining the existing production deployment process unchanged.

Confidence score: 2/5

  • This PR has a critical flaw in the Docker workflow implementation that undermines its stated purpose
  • Score lowered because staging Docker builds are configured but never pushed to registry, making build failure detection ineffective
  • Pay close attention to .github/workflows/build.yml conditional logic and consider whether staging builds should actually be pushed

2 files reviewed, 1 comment

Edit Code Review Bot Settings | Greptile

@waleedlatif1 waleedlatif1 merged commit 5bbb349 into staging Sep 1, 2025
4 of 5 checks passed
@waleedlatif1 waleedlatif1 deleted the fix/b branch September 1, 2025 20:10
waleedlatif1 added a commit that referenced this pull request Sep 1, 2025
…1213)

* fix(build): add missing pdf-parse dep

* add docker build (no push) in staging
waleedlatif1 added a commit that referenced this pull request Sep 2, 2025
…1213)

* fix(build): add missing pdf-parse dep

* add docker build (no push) in staging
arenadeveloper02 pushed a commit to arenadeveloper02/p2-sim that referenced this pull request Sep 19, 2025
…imstudioai#1213)

* fix(build): add missing pdf-parse dep

* add docker build (no push) in staging
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.

1 participant