Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: make command's run startup-hook.sh [RM-159] #9275

Merged
merged 2 commits into from
May 1, 2024

Conversation

NicholasBlaskey
Copy link
Contributor

@NicholasBlaskey NicholasBlaskey commented May 1, 2024

Ticket

Description

Commands run a startup-hook.sh if specified.

Test Plan

e2e test + manual

echo "echo startup ran" > startup-hook.sh && det cmd run -i startup-hook.sh sleep 5

Should show

[2024-05-01T13:36:47.483447Z] d78bcca2 || startup ran

Checklist

  • Changes have been manually QA'd
  • User-facing API changes need the "User-facing API Change" label.
  • Release notes should be added as a separate file under docs/release-notes/.
    See Release Note for details.
  • Licenses should be included for new code which was copied and/or modified from any external code.

@NicholasBlaskey NicholasBlaskey requested a review from a team as a code owner May 1, 2024 13:37
@cla-bot cla-bot bot added the cla-signed label May 1, 2024
@determined-ci determined-ci added the documentation Improvements or additions to documentation label May 1, 2024
@determined-ci determined-ci requested a review from a team May 1, 2024 13:37
Copy link

codecov bot commented May 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 44.58%. Comparing base (b78020d) to head (c2e9936).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9275      +/-   ##
==========================================
+ Coverage   44.56%   44.58%   +0.01%     
==========================================
  Files        1275     1275              
  Lines      156216   156216              
  Branches     2451     2451              
==========================================
+ Hits        69625    69652      +27     
+ Misses      86351    86324      -27     
  Partials      240      240              
Flag Coverage Δ
backend 41.75% <ø> (+0.05%) ⬆️
harness 64.09% <ø> (ø)
web 35.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

see 7 files with indirect coverage changes

Copy link

netlify bot commented May 1, 2024

Deploy Preview for determined-ui canceled.

Name Link
🔨 Latest commit c2e9936
🔍 Latest deploy log https://app.netlify.com/sites/determined-ui/deploys/66327c23a2eac90008e520de

@NicholasBlaskey NicholasBlaskey enabled auto-merge (squash) May 1, 2024 13:53
**Improvements**

- Commands: Commands now support automatically running a ``startup-hook.sh`` when one is present in
the commands context directory.
Copy link
Member

Choose a reason for hiding this comment

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

  • Commands: Commands now support automatically executing a startup-hook.sh script if it is present in the command's context directory.

Copy link
Member

@tara-det-ai tara-det-ai left a comment

Choose a reason for hiding this comment

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

suggested edit

@determined-ci determined-ci requested a review from a team May 1, 2024 17:29
@NicholasBlaskey NicholasBlaskey merged commit 670ac40 into main May 1, 2024
88 of 100 checks passed
@NicholasBlaskey NicholasBlaskey deleted the fix_command_entrypoint branch May 1, 2024 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants