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

torchx: add metadata_urls to allow printing user links from the CLI #532

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

d4l3k
Copy link
Contributor

@d4l3k d4l3k commented Jun 22, 2022

Summary:
This adds a new metadata_urls to AppStatus and metadata to DescribeAppResponse. Metadata URLs are automatically returned from metadata values if they start with http:// or https://. This isn't quite as clean as a dedicated URLs field that we discussed in #509 but can work when calling status and not just during launch time.

This also enables a way for schedulers to return extra UI links and services that are scheduler specific but not available at launch time.

Differential Revision: D37353646

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported labels Jun 22, 2022
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D37353646

…ytorch#532)

Summary:
Pull Request resolved: pytorch#532

This adds a new `metadata_urls` to AppStatus and `metadata` to DescribeAppResponse. Metadata URLs are automatically returned from metadata values if they start with `http://` or `https://`. This isn't quite as clean as a dedicated URLs field that we discussed in pytorch#509 but can work when calling status and not just during launch time.

This also enables a way for schedulers to return extra UI links and services that are scheduler specific but not available at launch time.

Differential Revision: D37353646

fbshipit-source-id: dfe629bf75b489a9c842d1bb1d45d0edaf9ce7f0
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D37353646

@codecov
Copy link

codecov bot commented Jun 22, 2022

Codecov Report

Merging #532 (59c4975) into main (3e739b9) will decrease coverage by 0.01%.
The diff coverage is 80.00%.

@@            Coverage Diff             @@
##             main     #532      +/-   ##
==========================================
- Coverage   94.75%   94.74%   -0.02%     
==========================================
  Files          65       65              
  Lines        3949     3956       +7     
==========================================
+ Hits         3742     3748       +6     
- Misses        207      208       +1     
Impacted Files Coverage Δ
torchx/runner/api.py 96.17% <66.66%> (-0.54%) ⬇️
torchx/cli/cmd_status.py 94.18% <100.00%> (ø)
torchx/schedulers/api.py 94.18% <100.00%> (+0.06%) ⬆️
torchx/specs/api.py 99.61% <100.00%> (+<0.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3e739b9...59c4975. Read the comment docs.

@facebook-github-bot
Copy link
Contributor

Hi @d4l3k!

Thank you for your pull request.

We require contributors to sign our Contributor License Agreement, and yours needs attention.

You currently have a record in our system, but the CLA is no longer valid, and will need to be resubmitted.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants