-
Notifications
You must be signed in to change notification settings - Fork 44
WIP Extending the rosdistro cache information #197
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
Draft
tfoote
wants to merge
51
commits into
master
Choose a base branch
from
extended_cache
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
dbbd5b3
Add support for rosdistro cache to hold the README and CHANGELOG cont…
tfoote 7673ee5
get everything working
tfoote c8f0247
add support for caching other content than package.xml
tfoote 5051dcb
Add timestamp of last update
tfoote 69ab352
Add rate limiting backoff on url fetches
tfoote ce2be60
use filepath in git plugin
tfoote 32efafc
fix clone logic for source packages and add a little debug
tfoote 667443e
add source cache linking logic for README.md and CHANGELOG.rst
tfoote 4fbaf6d
Add support for changelog and readme to github source provider
tfoote 9998ad2
Fixup remove debug
tfoote 0a5235e
add debug instrumentation
tfoote 2f085b8
filepaths for all source manifest providers
tfoote cd9669f
fix bug in compression logic
tfoote 886c3b1
debug for clearing content visibilty
tfoote be0a62e
better variable naming
tfoote 25f8cce
remove debug statement
tfoote 372e2fb
Differentiate which fetch is running
tfoote d673ca6
proof of concept truncating extra content
tfoote 86fbcde
Only update timestamp if something is crawled
tfoote d85c93d
improve readability of status messages, todo magic number
tfoote 70c9934
remove magic number
tfoote 8b8e32b
extend truncation message
tfoote 23e9b86
Make docs truncation idempotent
tfoote 6228ae2
simplify deduplication logic
tfoote 9bd8a78
Allow the collapse of any long string >300 right now
tfoote b2cb88f
truncate on initial insertion of docs
tfoote 56407dd
clearer cache loading message
tfoote 9657a2e
add debugging config option for faster development cycles
tfoote 2982685
fix loud load typo
tfoote 63ba475
restore items with new API
tfoote ff86598
refactor to generic _resources from package_xmls
tfoote f60979e
remove debugging truncate, it's in the sanitizer now
tfoote 94c5fd1
multi resource support for git
tfoote 47049ea
Print out url string not Result address
tfoote 6e184ca
First draft at a schema
tfoote 9b19db3
schema running for intermediate state
tfoote f432591
catch last_update_time and update SourceRepositoryCache docs
tfoote b7e0c2b
add environment variable to not wait as long for timeouts
tfoote b18a733
fix exception variable scopes
tfoote e730cc4
Switch release cache to release_resources as a dict avoid special cas…
tfoote 93ab5cf
improve visibility of progress on release updates
tfoote a69bdf5
Update the loading process and self declaration
tfoote 66cc8aa
backwards compatibility for self.package_xmls
tfoote c3c2cc6
deduplication logic is updated for the new structure
tfoote 03c2293
clean up last update time logic
tfoote 454afa1
Store the release_resources in the ReleaseCache
tfoote 33e6af5
fix backwards compat insertion
tfoote 813e7b6
add extra resource initializaiton to test mock
tfoote d6b5548
add missing import
tfoote a86fe10
Iterate filepaths correctly
tfoote ef1ee32
update tests for new storage format
tfoote File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,84 @@ | ||
| { | ||
| "$schema": "https://json-schema.org/draft/2020-12/schema", | ||
| "$id": "https://github.com/ros-infrastructure/rosdistro/TODO/rosdistro_cache_3.schema.json", | ||
| "title": "ROSDistro Cache Format 3 Schema", | ||
| "description": "Cache Format 3 for rosdistro", | ||
| "type": "object", | ||
| "properties": { | ||
| "version": { | ||
| "description": "The version of the rosdistro cache", | ||
| "type": "integer", | ||
| "minimum": 3, | ||
| "maximum": 3 | ||
| }, | ||
| "type": { | ||
| "description": "Clarifying the file type", | ||
| "type": "string" | ||
| }, | ||
| "source_repo_resources": { | ||
| "type": "object", | ||
| "patternProperties": { | ||
| "^.*$": {"$ref": "#/$defs/repository_resources"} | ||
| } | ||
| }, | ||
| "release_resources": { | ||
| "type": "object", | ||
| "additionalProperties": {"$ref": "#/$defs/package_resources"}, | ||
| "properties": { | ||
| "_last_update_time": { | ||
| "type": "string" | ||
| }, | ||
| "version": { | ||
| "type": "string" | ||
| } | ||
| }, | ||
| "required": ["version"] | ||
| }, | ||
| "additionalProperties": false | ||
| }, | ||
| "distribution_file": { | ||
| "type": "object", | ||
| "description": "rosdistro distribution_file" | ||
| }, | ||
| "name": { | ||
| "type": "string", | ||
| "description": "The name of the distribution being cached" | ||
| }, | ||
| "required": ["source_repo_resources", "distribution_file", "name"], | ||
| "$defs": { | ||
| "repository_resources": { | ||
| "type": "object", | ||
| "additionalProperties": {"$ref": "#/$defs/package_resources"}, | ||
| "properties": { | ||
| "_last_update_time": { | ||
| "type": "string" | ||
| }, | ||
| "_ref": { | ||
| "type": "string" | ||
| } | ||
| }, | ||
| "required": ["_ref"] | ||
| }, | ||
| "package_resources": { | ||
| "type": "object", | ||
| "properties": { | ||
| "CHANGELOG.rst": { | ||
| "type": "string", | ||
| "description": "Contents of the CHANGELOG.rst if it's available" | ||
| }, | ||
| "package.xml": { | ||
| "type": "string", | ||
| "description": "Contents of the package.xml if it's available" | ||
| }, | ||
| "package_path": { | ||
| "type": "string", | ||
| "description": "The package_path if it's available" | ||
| }, | ||
| "README.md": { | ||
| "type": "string", | ||
| "description": "Contents of the README.md if it's available" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️