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

Support for downloading resources from URL or GIT #3

Open
jscotka opened this issue Feb 21, 2018 · 0 comments
Open

Support for downloading resources from URL or GIT #3

jscotka opened this issue Feb 21, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@jscotka
Copy link
Collaborator

jscotka commented Feb 21, 2018

I would like to have there some similar syntax what I has in my PoC for metadata downloading some files from URLs or git repositories.

User story

It allows me to have metadata and load them also from network or another location
see example config lines like: https://github.com/fedora-modularity/meta-test-family/blob/master/mtf/metadata/examples/general-component/tests/metadata.yaml#L8

download_urls:
  downloaded_test.py: "https://raw.githubusercontent.com/fedora-modularity/meta-test-family/devel/mtf/metadata/examples/general-component/tests/simple.py"
  somedir/metadata.yaml: "some link to another metadata"
clone_gits:
  downloaded_git: "https://github.com/container-images/memcached.git"
import_tests:
  /some/localfs/location/where/to/search/for/metadata

It will clone or dowload files locally as files or subdirectories

How it should work

  • load metadata
  • find these items what downloads/refer something
  • reload metadata again with these updates
    (do not do it recursively) -> can causes loops, to allow just one round of this reloading

summary

  • have stored metadata elegantly in various places, easy to use
    • eg. I want to load metadata for some generic tests / linters and run them together with my tests what are in some github repo
    • or another location on same disc means that I can add there this url param with file:///... for example
    • or via this import_tests as simplier solution how to not copy local files to another location and load these metedatas
  • this is important feature for my usecases in MTF
  • could be implemented by separated class, module, file, whatwill use metadata and this recursive loading could be lead externally or via some option, cmd line argument. I think it is beneficial to have it directly there and not as part of MTF, what will do this part and interpret this items in metadata files
  • It helps to deploy tests for local scheduler and keep tests close to metadata
@psss psss added the enhancement New feature or request label May 22, 2018
@psss psss changed the title RFE: add support for downloading resources from URL or GIT to project/metadata specification Support for downloading resources from URL or GIT May 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants