Skip to content

fix: 'run:inside' args ordering (W-22693654)#3727

Merged
sbosio merged 1 commit into
mainfrom
sbosio/fix-run-inside
May 27, 2026
Merged

fix: 'run:inside' args ordering (W-22693654)#3727
sbosio merged 1 commit into
mainfrom
sbosio/fix-run-inside

Conversation

@sbosio
Copy link
Copy Markdown
Contributor

@sbosio sbosio commented May 27, 2026

Summary

In PR #3633 we provided a fix for the issue reported on Github issue #3631. The fix included reordering the static class member args to ensure dyno_name was the first positional argument.

In PR #3667 we inadvertently reverted that ordering because the perfectionist/sort-objects rule was applied. That linter rule shouldn't be ever applied to the args static class member, because positioning is relevant for the commands to work correctly.

Type of Change

Breaking Changes (major semver update)

  • Add a ! after your change type to denote a change that breaks current behavior

Feature Additions (minor semver update)

  • feat: Introduces a new feature to the codebase

Patch Updates (patch semver update)

  • fix: Bug fix
  • deps: Dependency upgrade
  • revert: Revert a previous commit
  • chore: Change that does not affect production code
  • refactor: Refactoring existing code without changing behavior
  • test: Add/update/remove tests

Testing

Notes:
There's a Fir test app available in our Fir Test space named test-cli-run-inside or you can use your own test app.

Steps:

  1. Checkout this branch and run npm install && npm run build.
  2. Check that you have the most recent version of Heroku CLI (v11.4.0) and run heroku run:inside web-c8c859bf9-2rk6q bash -a test-cli-run-inside, you'll observe the error bash is either not "up" or doesn't exist. being raised.
  3. Check the fixed implementation with ./bin/run run:inside web-c8c859bf9-2rk6q bash -a test-cli-run-inside, the dyno connection should be correctly established and a bash session opened. Use exit to quit the session and close the connection to the dyno.

Screenshots (if applicable)

Captura de pantalla 2026-05-27 a la(s) 11 46 08

Related Issues

GitHub issue: #3726
GUS work item: W-22693654

@sbosio sbosio requested a review from a team as a code owner May 27, 2026 15:24
@sbosio sbosio temporarily deployed to AcceptanceTests May 27, 2026 15:24 — with GitHub Actions Inactive
@sbosio sbosio temporarily deployed to AcceptanceTests May 27, 2026 15:24 — with GitHub Actions Inactive
@sbosio sbosio temporarily deployed to AcceptanceTests May 27, 2026 15:24 — with GitHub Actions Inactive
@sbosio sbosio temporarily deployed to AcceptanceTests May 27, 2026 15:24 — with GitHub Actions Inactive
Copy link
Copy Markdown
Contributor

@tlowrimore-heroku tlowrimore-heroku left a comment

Choose a reason for hiding this comment

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

LGTM!

@sbosio sbosio merged commit 355113e into main May 27, 2026
17 checks passed
@sbosio sbosio deleted the sbosio/fix-run-inside branch May 27, 2026 15:50
michaelmalave added a commit that referenced this pull request May 29, 2026
* fix: add missing warning to 'data:pg:migrate' (W-22544849) (#3716)

fix: add missing warning to 'data:pg:migrate'

* chore: add CLAUDE.md and Copilot instructions pointing to AGENTS.md (#3724)

Both Claude Code and GitHub Copilot Code Review look for tool-specific
instruction files (CLAUDE.md and .github/copilot-instructions.md
respectively). Point both at the canonical AGENTS.md so we don't have
to maintain duplicate guidelines per tool.

* fix: pass empty string to rl.write in repl finally block (W-22295448) (#3721)

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix: 'run:inside' args ordering (W-22693654) (#3727)

fix: 'run:inside' args ordering

* Centralize PG upgrade SDK calls in src/lib/pg/sdk-adapter.ts by adding shared runUpgrade/prepareUpgrade/dryRunUpgrade helpers and refactor the corresponding upgrade commands to use them instead of repeating inline SDK method casting.

* Tighten ps SDK adapter typings by replacing broad unknown casts with targeted @ts-expect-error annotations and explicit function types to document current heroku-types gaps while keeping calls type-safe.

* Refactor ps commands to remove the dedicated SDK adapter, inline SDK interactions in ps:index/ps:scale, and update lockfile and unit tests to match the simplified implementation and typing behavior

* Refactor ps:index to unify extended/non-extended dyno fetching and simplify quota parameter handling, while tightening ps:scale type-safe shield size formatting to avoid unsafe fallback conversions

---------

Co-authored-by: Santiago Bosio <santiago.bosio@gmail.com>
Co-authored-by: Eric <eblack@salesforce.com>
Co-authored-by: Johnny Winn <88165065+heroku-johnny@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
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