Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
0x2b3bfa0 authored Sep 11, 2021
1 parent 423b5ea commit e310b57
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 63 deletions.
19 changes: 1 addition & 18 deletions bin/cml/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -516,24 +516,7 @@ exports.builder = kebabcaseKeys({
description: 'Specifies the security group in AWS'
},
tfResource: {
hide: true,
alias: 'tf_resource'
},
destroyDelay: {
type: 'number',
default: 20,
hidden: true,
description: 'Destroy delay'
},
dockerMachine: {
type: 'string',
hidden: true,
description: 'Legacy docker-machine environment variable'
},
workdir: {
type: 'string',
hidden: true,
alias: 'path',
description: 'Runner working directory'
alias: 'tf_resource'
}
});
85 changes: 40 additions & 45 deletions bin/cml/runner.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,60 +10,55 @@ describe('CML e2e', () => {
Launch and register a self-hosted runner
Options:
--help Show help [boolean]
--version Show version number [boolean]
--log Maximum log level
--help Show help [boolean]
--version Show version number [boolean]
--log Maximum log level
[string] [choices: \\"error\\", \\"warn\\", \\"info\\", \\"debug\\"] [default: \\"info\\"]
--labels One or more user-defined labels for this runner
(delimited with commas)[string] [default: \\"cml\\"]
--idle-timeout Seconds to wait for jobs before shutting down.
Set to -1 to disable timeout
[number] [default: 300]
--name Name displayed in the repository once registered
--labels One or more user-defined labels for this runner
(delimited with commas) [string] [default: \\"cml\\"]
--idle-timeout Seconds to wait for jobs before shutting down. Set
to -1 to disable timeout [number] [default: 300]
--name Name displayed in the repository once registered
[string] [default: cml-{ID}]
--no-retry Do not restart workflow terminated due to
instance disposal or GitHub Actions timeout
[boolean]
--single Exit after running a single job
--no-retry Do not restart workflow terminated due to instance
disposal or GitHub Actions timeout [boolean]
--single Exit after running a single job
[boolean] [default: false]
--reuse Don't launch a new runner if an existing one has
the same name or overlapping labels
--reuse Don't launch a new runner if an existing one has
the same name or overlapping labels
[boolean] [default: false]
--driver Platform where the repository is hosted. If not
specified, it will be inferred from the
environment
[string] [choices: \\"github\\", \\"gitlab\\"]
--repo Repository to be used for registering the
runner. If not specified, it will be inferred
from the environment [string]
--token Personal access token to register a self-hosted
runner on the repository. If not specified, it
will be inferred from the environment
--driver Platform where the repository is hosted. If not
specified, it will be inferred from the
environment [string] [choices: \\"github\\", \\"gitlab\\"]
--repo Repository to be used for registering the runner.
If not specified, it will be inferred from the
environment [string]
--token Personal access token to register a self-hosted
runner on the repository. If not specified, it
will be inferred from the environment
[string] [default: ***]
--cloud Cloud to deploy the runner
--cloud Cloud to deploy the runner
[string] [choices: \\"aws\\", \\"azure\\", \\"gcp\\", \\"kubernetes\\"]
--cloud-region Region where the instance is deployed. Choices:
[us-east, us-west, eu-west, eu-north]. Also
accepts native cloud regions
--cloud-region Region where the instance is deployed. Choices:
[us-east, us-west, eu-west, eu-north]. Also
accepts native cloud regions
[string] [default: \\"us-west\\"]
--cloud-type Instance type. Choices: [m, l, xl]. Also
supports native types like i.e. t2.micro[string]
--cloud-gpu GPU type.
--cloud-type Instance type. Choices: [m, l, xl]. Also supports
native types like i.e. t2.micro [string]
--cloud-gpu GPU type.
[string] [choices: \\"nogpu\\", \\"k80\\", \\"v100\\", \\"tesla\\"]
--cloud-hdd-size HDD size in GB [number]
--cloud-ssh-private Custom private RSA SSH key. If not provided an
automatically generated throwaway key will be
used [string]
--cloud-spot Request a spot instance [boolean]
--cloud-spot-price Maximum spot instance bidding price in USD.
Defaults to the current spot bidding price
[number] [default: -1]
--cloud-startup-script Run the provided Base64-encoded Linux shell
script during the instance initialization
--cloud-hdd-size HDD size in GB [number]
--cloud-ssh-private Custom private RSA SSH key. If not provided an
automatically generated throwaway key will be used
[string]
--cloud-aws-security-group Specifies the security group in AWS
[string] [default: \\"\\"]
--tf-resource, --tf_resource"
--cloud-spot Request a spot instance [boolean]
--cloud-spot-price Maximum spot instance bidding price in USD.
Defaults to the current spot bidding price
[number] [default: -1]
--cloud-startup-script Run the provided Base64-encoded Linux shell script
during the instance initialization [string]
--cloud-aws-security-group Specifies the security group in AWS
[string] [default: \\"\\"]"
`);
});
});

0 comments on commit e310b57

Please sign in to comment.