mirror of
https://github.com/enso-org/enso.git
synced 2024-12-24 05:12:31 +03:00
Prevent reading broken IR caches by changing their serialVersionUID (#3692)
Many engine PRs modify builtins or other engine internals and then they are subject to [incremental CI runtime errors](https://www.pivotaltracker.com/n/projects/2539304/stories/182868680) as outdated `IR` caches from global space at `~/.local/share/enso/cache/ir/Standard/Builtins/0.0.0-dev/0.0.0-dev/Standard/Builtins` are read in. This PR provides solution for that problem by explicitly defining `IR.Module` `serialVersionUID`. By changing the `serialVersionUID` one prevents previously saved `IR` caches to be loaded into the running process. Change the `serialVersionUID` whenever you see errors caused by reading outdated `IR` caches in the CI. # Important Notes Whenever one needs to avoid loading previous `IR` caches, go to `case class IR.Module` and change the `@SerialVersionUID(3692L)` to **number of your pull request**.
This commit is contained in:
parent
4c82b657de
commit
af24f5e543
@ -298,6 +298,9 @@ object IR {
|
||||
* @param passData the pass metadata associated with this node
|
||||
* @param diagnostics compiler diagnostics for this node
|
||||
*/
|
||||
@SerialVersionUID(
|
||||
3692L
|
||||
) // prevents reading broken caches, see PR-3692 for details
|
||||
sealed case class Module(
|
||||
imports: List[Module.Scope.Import],
|
||||
exports: List[Module.Scope.Export],
|
||||
|
Loading…
Reference in New Issue
Block a user