Original PR: https://github.com/apple/pkl/pull/751 Author: @HT154 Created: 10/29/2024 Status: ✅ Merged Merged: 10/30/2024 Merged by: @bioball
Base: main ← Head: executor-exception-consistency
main
executor-exception-consistency
b860e50
73afd16
3094558
5507f54
3 files changed (+82 additions, -7 deletions)
📝 pkl-core/src/main/java/org/pkl/core/service/ExecutorSpiImpl.java (+15 -6) 📝 pkl-executor/src/main/java/org/pkl/executor/EmbeddedExecutor.java (+8 -0) 📝 pkl-executor/src/test/kotlin/org/pkl/executor/EmbeddedExecutorTest.kt (+59 -1)
pkl-core/src/main/java/org/pkl/core/service/ExecutorSpiImpl.java
pkl-executor/src/main/java/org/pkl/executor/EmbeddedExecutor.java
pkl-executor/src/test/kotlin/org/pkl/executor/EmbeddedExecutorTest.kt
There are two fixes here:
ExecutorSpiImpl
EmbeddedExecutor
RuntimeException
ExecutorException
Executor
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
No dependencies set.
The note is not visible to the blocked user.
📋 Pull Request Information
Original PR: https://github.com/apple/pkl/pull/751
Author: @HT154
Created: 10/29/2024
Status: ✅ Merged
Merged: 10/30/2024
Merged by: @bioball
Base:
main← Head:executor-exception-consistency📝 Commits (4)
b860e50Correct EmbeddedExecutor to throw ExecutorException instead of PklException when project evaluation fails73afd16Update ExecutorSpiImpl.java3094558Update pkl-executor/src/main/java/org/pkl/executor/EmbeddedExecutor.java5507f54Feed SPI environment variables when loading project📊 Changes
3 files changed (+82 additions, -7 deletions)
View changed files
📝
pkl-core/src/main/java/org/pkl/core/service/ExecutorSpiImpl.java(+15 -6)📝
pkl-executor/src/main/java/org/pkl/executor/EmbeddedExecutor.java(+8 -0)📝
pkl-executor/src/test/kotlin/org/pkl/executor/EmbeddedExecutorTest.kt(+59 -1)📄 Description
There are two fixes here:
ExecutorSpiImplnow properly handles project evaluation errorsEmbeddedExecutornow catches allRuntimeExceptions and transforms them toExecutorExceptionso theExecutorAPI contract is upheld.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.