-
Notifications
You must be signed in to change notification settings - Fork 11
Feature of adding product manifest generating and removing #135
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
Conversation
Pull Request Test Coverage Report for Build 1851362673
💛 - Coveralls |
c32fead to
94acb1e
Compare
ligangty
left a comment
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.
LGTM except some comments.
charon/storage.py
Outdated
| 'uploading') | ||
| return | ||
|
|
||
| manifest_bucket = self.__client.Bucket(manifest_bucket_name) |
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.
You can use self.__get_bucket(name) instead.
charon/pkgs/maven.py
Outdated
|
|
||
| prefix_ = remove_prefix(prefix, "/") | ||
|
|
||
| manifest_name, manifest_full_path = write_manifest(valid_mvn_paths, top_level, prod_key) |
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.
I think this step can be skipped with a log if manifest_bucket_name is not specified.
charon/pkgs/maven.py
Outdated
| # 5. Do manifest uploading | ||
| logger.info("Start uploading manifest to s3") | ||
| s3_client.upload_manifest(manifest_name, manifest_full_path, target, manifest_bucket_name) | ||
| logger.info("Manifest uploading is done\n") |
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.
I think this step can be skipped with a log if manifest_bucket_name is not specified.
| # 4. Delete related manifest from s3 | ||
| logger.info("Start deleting manifest from s3") | ||
| s3_client.delete_manifest(prod_key, target, manifest_bucket_name) | ||
| logger.info("Manifest deletion is done\n") |
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.
I think this step can be skipped with a log if manifest_bucket_name is not specified.
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.
@ligangty The case was already covered inside the delete_manifest method, others are sorted based on the comment.
charon/pkgs/npm.py
Outdated
|
|
||
| prefix_ = remove_prefix(prefix, "/") | ||
|
|
||
| manifest_name, manifest_full_path = write_manifest(valid_paths, target_dir, product) |
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.
I think this step can be skipped with a log if manifest_bucket_name is not specified.
charon/pkgs/npm.py
Outdated
|
|
||
| logger.info("Start uploading manifest to s3") | ||
| client.upload_manifest(manifest_name, manifest_full_path, target, manifest_bucket_name) | ||
| logger.info("Manifest uploading is done\n") |
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.
I think this step can be skipped with a log if manifest_bucket_name is not specified.
|
|
||
| logger.info("Start deleting manifest from s3") | ||
| client.delete_manifest(product, target, manifest_bucket_name) | ||
| logger.info("Manifest deletion is done\n") |
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.
I think this step can be skipped with a log if manifest_bucket_name is not specified.
|
The tests are failed caused by downloading from repo 'appstream'. It seems that the mirrors can't access? @ligangty |
ligangty
left a comment
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.
LGTM
No description provided.