fix(actions): compute hello world wf#5109
Conversation
|
🚅 Deployed to the rivet-pr-5109 environment in rivet-frontend
|
|
Code Review PR 5109 Summary: This PR makes two changes.
server.js Bug: Log fires before server is ready to accept connections server.listen is asynchronous. The callback fires after the OS bind completes. Moving the log to module level means it prints before listen succeeds. If listen fails (e.g. port already bound), the message will have already printed, giving users a false signal that the server is ready. Recommendation: Keep console.log inside the listen callback, updating only the message text. server.js Code quality: empty callback Replacing the callback with an empty arrow function is a no-op. Either omit the callback entirely or restore a meaningful log inside it. compute-hello-world.yml Semantic issue: workflow_dispatch no longer tags :latest The original behavior tagged :latest for both push and workflow_dispatch. The new code silently drops :latest from manual dispatch runs. If an operator triggers a manual run to hotfix the image, :latest will not be updated and may be left stale. Whether this is intentional is not clear - the PR description is blank. If intentional, add a comment explaining the rationale. compute-hello-world.yml Code quality: empty string produces a blank tag line When github.event_name is workflow_dispatch, the ternary evaluates to an empty string, giving docker/build-push-action a tags input with a blank line. Most versions of the action ignore empty entries silently, but this is fragile. General
Summary table | Location | Severity | Finding | The medium-severity server.js issue (log before bind) is the most important to address before merge. |
140985f to
3a5c9b2
Compare

Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context.
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Checklist: