Skip to content

Check the size of coverage artifact if it was already downloaded #241

Open
@rhcu

Description

@rhcu

According to this, https://github.com/marco-c/firefox-code-coverage/blob/cc386da20f389fd5159746d56729e149029de6ae/firefox_code_coverage/codecoverage.py#L81, if there is a downloaded artifact, then we don't download a new one. However, there could be a wrong one: for example, because in the previous try there was a bad Internet connection, and the download was not finished but the file exists. Can this be checked too (for example, to check whether the size of those are equal)? Or won't this condition occur because of this: https://github.com/marco-c/firefox-code-coverage/blob/cc386da20f389fd5159746d56729e149029de6ae/firefox_code_coverage/codecoverage.py#L88?
I had the same problem, and I have an artifact that weights 147 bytes and has an empty .info file inside, what seems to be wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    reportPython tool to upload reports

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions