feat(push): print a next-step hint after a successful build#1270
Draft
DaveHanns wants to merge 1 commit into
Draft
feat(push): print a next-step hint after a successful build#1270DaveHanns wants to merge 1 commit into
DaveHanns wants to merge 1 commit into
Conversation
`apify push` deploys but does not run. Today the success block ends
with:
Actor URL: https://console.apify.com/actors/<slug>
Build URL: https://console.apify.com/actors/<slug>#/builds/<n>
Users (and agents driving the CLI) frequently read the URL as "job
done" and stop there without ever invoking the Actor. That's fine
when the intent was purely "build and hand off to Console", but it's
the wrong default for a first-time deploy where the whole point is
to confirm the Actor works end-to-end.
Append a short next-steps block below the URLs, only on
`buildStatus === SUCCEEDED`, pointing at the two commands the user
almost certainly wants next:
Next: run it once to verify the build.
apify call <username>/<actor> # blocks and prints run summary
apify actors start <username>/<actor> # non-blocking
The block is suppressed on failed / aborted / timed-out builds
(where it would be noise) and in `--json` mode (which keeps its
existing machine-readable envelope).
Surfaced during an evaluation of Apify surfaces for agent-driven
Actor development.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
apify pushdeploys but does not run. Today the success block ends with:Users (and agents driving the CLI) frequently read that as "job done" and stop there without ever invoking the Actor. That's fine when the intent was purely "build and hand off to Console", but it's the wrong default for a first-time deploy where the whole point is to confirm the Actor works end-to-end.
This PR appends a short next-steps block below the URLs, only on
buildStatus === SUCCEEDED, pointing at the two commands the user almost certainly wants next:The block is suppressed on failed / aborted / timed-out builds (where it would be noise) and in
--jsonmode (which keeps its existing machine-readable envelope).Rationale
New Actor developers — and agents scripting the flow — tend to treat the printed Console URL as the terminal state. The CLI already knows the Actor's fully-qualified slug at this point; showing the two commands that run it costs one small block and closes the "build vs. run" cognitive gap.
Follow-ups (not in this PR)
A
--runflag onapify pushthat auto-invokesapify callafter a successful build is a natural next step, and could be added on top of this without changing the hint block. Left out here to keep the diff surgical.Test plan
apify pushon a healthy Actor prints the two next-step lines belowBuild URL:apify pushon a failing build (e.g. Dockerfile that exits non-zero) does not print the next-step blockapify push --jsonoutput is byte-for-byte unchanged from before this PRapify callandapify actors start's expected argument shapeSurfaced during an evaluation of Apify surfaces for agent-driven Actor development.
Co-Authored-By: Claude Opus 4.7 noreply@anthropic.com