question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ComponentStore fails to include filename when pulling by version or tag

See original GitHub issue

Looking at the comments around ComponentStore more closely, I don’t think this is a bug, but rather my misunderstanding of the intended behavior: I’ll need to adjust how I publish my components. The further question about using ComponentStore to load standard components (in a comment below) still stands. Leaving this here to get clarification:

What steps did you take:

components = ComponentStore(
    url_search_prefixes=[ "https://www.example.com/kubeflow/components/" ]
)
  • fetched a versioned component using:
download_from_gcs_op = components.load_component("gcp/storage/download_dirs", tag="0.1.0")

What happened:

With appropriate debugging, it became apparent this was causing a failure because the ComponentStore is attempting to fetch https://www.example.com/kubeflow/components/gcp/storage/download_dirs/versions/tags/0.1.0 and not https://www.example.com/kubeflow/components/gcp/storage/download_dirs/versions/tags/0.1.0/component.yaml.

What did you expect to happen:

Component to be retrieved from https://www.example.com/kubeflow/components/gcp/storage/download_dirs/versions/tags/0.1.0/component.yaml.

Environment:

KFP SDK version: kfp 1.1.0a1

Anything else you would like to add:

I’m unclear if this is intentional, and tagged components should be stored in files bearing the tag as a filename (and no extension). If not, I could probably do a PR, as the reason for this is pretty clear:

https://github.com/kubeflow/pipelines/blob/master/sdk/python/kfp/components/_component_store.py#L131

Note that the component_file_name is in an else block, so is only added if digest and tag are not specified.

/kind bug

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
jackwhelptoncommented, Jul 12, 2021

It’d still be really handy to have this feature: this is a blocker for us sharing component code directly from GitHub Enterprise… a review of the above PR would be great.

0reactions
stale[bot]commented, Jul 8, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tags Not Working in Email and in Filename - Google Groups
I created a new Google Form for Grade Changes and am trying to use tags so that the subject in the email and...
Read more >
How to reset selected file with input tag file type in Angular 2?
First, you need to add #someValue to your input so you can read it in the component: <input #myInput type="file" placeholder="File Name" ...
Read more >
Create a Downloadable Link using HTML5 Download Attribute
Turn your into a download link instead. The downloaded file will be the same as the original filename OR you can pass in...
Read more >
Generating tags from file names - MusicBrainz Picard
Generating tags from file names . Sometimes files have poor quality tags or no tags at all, but the file names are well...
Read more >
User Manual - TagScanner
Version 5.1.594 ... information from file names, and extract text from tags and filenames. ... their new path does not have a disk-based...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found