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

Metadata quality verification API #1874

Merged
merged 29 commits into from
Nov 16, 2020
Merged

Metadata quality verification API #1874

merged 29 commits into from
Nov 16, 2020

Conversation

sir-sigurd
Copy link
Member

@sir-sigurd sir-sigurd commented Oct 30, 2020

Description

This adds workflow parameter to Package.push() and Package.build() functions.

TODO

  • Decide on workflow values for 'don't use workflow' and 'use default'
  • Store the used workflow ID and URL with versionID
  • Unit tests
  • Documentation
    • Update docstrings
    • Document workflows/config.yml
    • Run build.py for new docstrings
  • Changelog entry
  • Move JSON Schema for config validation to its own file

@codecov-io
Copy link

codecov-io commented Oct 31, 2020

Codecov Report

Merging #1874 (a02ee21) into master (1da0973) will increase coverage by 0.49%.
The diff coverage is 98.38%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1874      +/-   ##
==========================================
+ Coverage   89.86%   90.35%   +0.49%     
==========================================
  Files          62       64       +2     
  Lines        7411     7757     +346     
==========================================
+ Hits         6660     7009     +349     
+ Misses        751      748       -3     
Flag Coverage Δ
api-python 89.28% <98.38%> (+0.84%) ⬆️
lambda 92.40% <ø> (ø)

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

Impacted Files Coverage Δ
api/python/setup.py 0.00% <ø> (ø)
api/python/quilt3/util.py 82.68% <44.44%> (+0.83%) ⬆️
api/python/quilt3/workflows/__init__.py 98.91% <98.91%> (ø)
api/python/quilt3/backends/base.py 89.56% <100.00%> (+0.23%) ⬆️
api/python/quilt3/data_transfer.py 81.39% <100.00%> (+0.35%) ⬆️
api/python/quilt3/packages.py 92.35% <100.00%> (+0.26%) ⬆️
api/python/tests/integration/test_packages.py 100.00% <100.00%> (ø)
api/python/tests/integration/test_workflows.py 100.00% <100.00%> (ø)

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 1da0973...a02ee21. Read the comment docs.

@sir-sigurd sir-sigurd force-pushed the workflows branch 5 times, most recently from 4ef658c to 6c42504 Compare November 1, 2020 15:42
@sir-sigurd sir-sigurd force-pushed the workflows branch 3 times, most recently from 66d32f3 to 3c2c3a4 Compare November 2, 2020 22:05
@sir-sigurd sir-sigurd force-pushed the workflows branch 6 times, most recently from a02b3f5 to da8036f Compare November 3, 2020 14:50
@sir-sigurd sir-sigurd requested a review from akarve November 4, 2020 18:48
@sir-sigurd sir-sigurd marked this pull request as ready for review November 5, 2020 09:28
"additionalProperties": false,
"properties": {
"version": {
"const": "1"
Copy link
Member

Choose a reason for hiding this comment

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

Do we want semver for this?

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't quite understand how it works for schemas 🤷‍♂️. I think I need to look for example.

Copy link
Member

Choose a reason for hiding this comment

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

Well at a bare minimum, make it a string?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's already a string.

*New in Quilt 3.3*

`quilt3` provides API to ensure quality of package metadata. To start use it you need to create
configuration file in your registry under `.quilt/workflows/config.yml`. For example:
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't we provide this as a constant from quilt3, or from an API?

Copy link
Member Author

@sir-sigurd sir-sigurd Nov 12, 2020

Choose a reason for hiding this comment

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

I think that currently we don't have a good place for it.

Copy link
Member

Choose a reason for hiding this comment

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

@akarve
Copy link
Member

akarve commented Nov 10, 2020

I will do more testing once we get this on stage, as well as some wordsmithing on the docs, but overall looks good. Added some comments and suggestions.

@sir-sigurd sir-sigurd changed the title [WIP] Metadata quality verification API Metadata quality verification API Nov 12, 2020
@sir-sigurd sir-sigurd requested a review from akarve November 12, 2020 16:41
@sir-sigurd sir-sigurd merged commit 7bc5bab into master Nov 16, 2020
@sir-sigurd sir-sigurd deleted the workflows branch November 16, 2020 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants