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

Some fixes for OutputCoverallsJsonCoverage #64

Merged
merged 1 commit into from
Jan 8, 2019

Conversation

markuspf
Copy link
Member

  • Check whether a file that occurs in the profiling data exists before
    outputting coverage (and trying to run md5sum on it)
  • Catch the case where pathtoremove is empty, because GAP's ReplacedString
    does not terminate in that case

…rallsJson

 * Check whether a file that occurs in the profiling data exists before
   outputting coverage (and trying to run md5sum on it)
 * Catch the case where pathtoremove is empty, because GAP's ReplacedString
   does not terminate in that case
@@ -760,6 +761,14 @@ function(data, outfile, jobid, pathtoremove)
return SplitString(str, " ")[1];
end;

# GAP's ReplacedString does not terminate for
# empty string to replace
Copy link
Member

Choose a reason for hiding this comment

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

Probably should be a bug report for GAP, too? (perhaps you already made one, I did not check)

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 have indeed: gap-system/gap#3134

@@ -783,13 +792,13 @@ function(data, outfile, jobid, pathtoremove)
prev := false;

for file in data.line_info do
if file[1] <> "stream" then
if IsExistingFile(file[1]) then
Copy link
Member

Choose a reason for hiding this comment

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

Could the same fix please be applied to the codecov generator function a few lines above this one?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure, though strictly speaking this is not necessary for codecov output (as we don't care whether the file currently exists).

I wonder whether we can compute the md5sum for a file and put that into the profiling output?

@ChrisJefferson
Copy link
Member

Just checking, is this ready to be merged?

@markuspf
Copy link
Member Author

markuspf commented Jan 8, 2019

Yeah, though I will make another PR that will add some more stuff (giving the ci service name, and outputting the option parallel in the json.

@ChrisJefferson ChrisJefferson merged commit 4ba3b85 into gap-packages:master Jan 8, 2019
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