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

Fix separate compilation for ConstantsGen #5630

Merged
merged 2 commits into from
Feb 10, 2023

Conversation

hubertp
Copy link
Contributor

@hubertp hubertp commented Feb 10, 2023

Pull Request Description

A combination of commands triggered separate compilation that only recompiled part of builtins. A mechanism that workaround annotation processor's problems with separate compilation was updated to include changes from #4111. This was pretty tough to find given the rather unusual circumstances in CI.

Important Notes

This eliminates the random failures in CI related to separate compilation.
To reproduce a specific set of steps has to be executed:

sbt> all buildEngineDistribution engine-runner/assembly runtime/Benchmark/compile language-server/Benchmark/compile searcher/Benchmark/compile
(exit sbt)
sbt> test

Checklist

Please include the following checklist in your PR:

  • The documentation has been updated if necessary.
  • All code conforms to the
    Scala,
    Java,
    and
    Rust
    style guides.
  • All code has been tested:
    • Unit tests have been written where possible.
    • If GUI codebase was changed: Enso GUI was tested when built using BOTH
      ./run ide build and ./run ide watch.

@hubertp hubertp added the CI: No changelog needed Do not require a changelog entry for this PR. label Feb 10, 2023
@hubertp hubertp requested a review from mwu-tow February 10, 2023 17:37
@hubertp hubertp added CI: Ready to merge This PR is eligible for automatic merge and removed CI: Ready to merge This PR is eligible for automatic merge labels Feb 10, 2023
A combination of commands triggered separate compilation
that only recompiled part of builtins. A mechanism that workaround
annotation processor's problems with separate compilation was updated to
include changes from #4111.
This was pretty tough to find given the rather unusual circumstances in
CI.
@hubertp hubertp force-pushed the wip/hubert/processor-separate-compilation branch from d193be3 to 56ef85b Compare February 10, 2023 19:08
@hubertp hubertp added the CI: Ready to merge This PR is eligible for automatic merge label Feb 10, 2023
@mergify mergify bot merged commit 9ea9fd5 into develop Feb 10, 2023
@mergify mergify bot deleted the wip/hubert/processor-separate-compilation branch February 10, 2023 22:14
);

out.println();
out.println("}");
}
}

public void generateEntry(String name, String value, PrintWriter out) {
Copy link
Member

Choose a reason for hiding this comment

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

What is a "copy based programming" error fixed by introducing generateEntry method and using it consistently?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI: No changelog needed Do not require a changelog entry for this PR. CI: Ready to merge This PR is eligible for automatic merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants