Put packer build in the terraform graph#2889
Conversation
this simplifies the process, reduces the number of steps
PR SummaryHigh Risk Overview Init and deploy workflows now install Packer and plugins where needed; provider Makefiles split Reviewed by Cursor Bugbot for commit 2778415. Bugbot is set up for automated code reviews on this repo. Configure here. |
❌ 3 Tests Failed:
View the full list of 3 ❄️ flaky test(s)
To view more test analytics, go to the Test Analytics Dashboard |
There was a problem hiding this comment.
Code Review
The fileset call in packer-image.tf matches all files in the Packer directory, including manifest.json which is updated at the end of every Packer build. This creates a perpetual diff loop where every successful build modifies manifest.json, changing the files hash and triggering another rebuild on the next Terraform run. Filtering out manifest.json from the file dependencies list prevents this rebuild loop.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
# Conflicts: # iac/provider-aws/nomad-cluster-disk-image/Makefile # iac/provider-gcp/.terraform.lock.hcl # iac/provider-gcp/nomad-cluster-disk-image/Makefile # iac/provider-gcp/nomad-cluster-disk-image/main.pkr.hcl # iac/provider-gcp/nomad-cluster-disk-image/main.tf
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bc127b2a0c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c9087e2d45
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0647a29b49
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 20b6d0fcac
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 2778415. Configure here.
| # e2b-orch node image itself is built by the packer_image resource during the regular | ||
| # `make plan && make apply` (Terraform drives Packer via the toowoxx/packer provider). | ||
| @ $(MAKE) -C nomad-cluster-disk-image init | ||
|
|
There was a problem hiding this comment.
apply-init skips Packer plugin install
Medium Severity
apply-init only applies module.init, but a full apply now runs the packer_image resource and needs the Packer CLI plus provider plugins on the machine. init still runs nomad-cluster-disk-image init; apply-init does not, so a path of apply-init then plan/apply (as in deploy-infra locally, without the composite action’s Packer steps) can fail when Packer builds the node image.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit 2778415. Configure here.


This simplifies the process, reduces the number of steps