Closed flelli closed 1 month ago
After a little investigation the JSON file is actually correct, but at some point during a GitHub Actions pipeline it is modified and a big chunk in the middle of the file is lost.
If uploading the file with an actions/upload-artifact@v4
action the file is ok.
Nonetheless, when the action exits the file is corrupted.
It turns out the GitHub Actions console truncated the file when displaying it but the file is actually correct.
However some values can't be read by com.fasterxml.jackson. For example:
Caused by: com.fasterxml.jackson.databind.JsonMappingException: Numeric value (1730310718000) out of range of int (-2147483648 - 2147483647)
at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 281, column: 30] (through reference chain: com.mooltiverse.oss.nyx.state.State["releaseScope"]->com.mooltiverse.oss.nyx.entities.ReleaseScope["commits"]->java.util.ArrayList[0]->com.mooltiverse.oss.nyx.entities.git.Commit["date"])
seems that the date
field whose value is 1730308844000 is too big. This seems an issue due to the type of integers used to marshal (in Go) not matching with those used to unmarshal (with Jackson on Java).
At a first glance it looks like it's marshalled as unsigned integer and unmarshalled as a signed one.
Forking to https://github.com/mooltiverse/nyx/issues/330 and closing this issue
The GitHub Action produces non valid JSON output, like:
THe
releaseAssets
element is clearly malformed.