Skip to content

Conversation

@yma955
Copy link
Member

@yma955 yma955 commented Feb 15, 2022

No description provided.

@yma955 yma955 requested a review from ligangty February 15, 2022 09:04
@coveralls
Copy link

coveralls commented Feb 15, 2022

Pull Request Test Coverage Report for Build 1851362673

  • 65 of 71 (91.55%) changed or added relevant lines in 7 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.5%) to 78.917%

Changes Missing Coverage Covered Lines Changed/Added Lines %
charon/config.py 2 3 66.67%
charon/cmd/command.py 0 2 0.0%
charon/storage.py 22 25 88.0%
Totals Coverage Status
Change from base Build 1851271931: 0.5%
Covered Lines: 1385
Relevant Lines: 1755

💛 - Coveralls

@yma955 yma955 force-pushed the main branch 2 times, most recently from c32fead to 94acb1e Compare February 15, 2022 09:22
Copy link
Member

@ligangty ligangty left a 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.

'uploading')
return

manifest_bucket = self.__client.Bucket(manifest_bucket_name)
Copy link
Member

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.


prefix_ = remove_prefix(prefix, "/")

manifest_name, manifest_full_path = write_manifest(valid_mvn_paths, top_level, prod_key)
Copy link
Member

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.

# 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")
Copy link
Member

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")
Copy link
Member

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.

Copy link
Member Author

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.


prefix_ = remove_prefix(prefix, "/")

manifest_name, manifest_full_path = write_manifest(valid_paths, target_dir, product)
Copy link
Member

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 uploading manifest to s3")
client.upload_manifest(manifest_name, manifest_full_path, target, manifest_bucket_name)
logger.info("Manifest uploading is done\n")
Copy link
Member

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")
Copy link
Member

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.

@yma955
Copy link
Member Author

yma955 commented Feb 16, 2022

The tests are failed caused by downloading from repo 'appstream'. It seems that the mirrors can't access? @ligangty

@ligangty
Copy link
Member

The tests are failed caused by downloading from repo 'appstream'. It seems that the mirrors can't access? @ligangty

@yma88 Seems it is caused by centos8 yum repo issues. I've corrected it to use centos7, please rebase and try again.

@yma955
Copy link
Member Author

yma955 commented Feb 16, 2022

The tests are failed caused by downloading from repo 'appstream'. It seems that the mirrors can't access? @ligangty

@yma88 Seems it is caused by centos8 yum repo issues. I've corrected it to use centos7, please rebase and try again.

@ligangty It's passed, thanks!

Copy link
Member

@ligangty ligangty left a comment

Choose a reason for hiding this comment

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

LGTM

@yma955 yma955 merged commit 2b077da into Commonjava:main Feb 16, 2022
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.

3 participants