Fix partial execution

This commit is contained in:
49lf
2025-01-10 15:39:25 -05:00
parent 30397ba7ab
commit 5fe3023be9
11 changed files with 53 additions and 37 deletions

View File

@ -2090,14 +2090,22 @@ export class EngineCommandManager extends EventTarget {
updateArtifactGraph(
ast: Node<Program>,
artifactCommands: ArtifactCommand[],
execStateArtifacts: ExecState['artifacts']
execStateArtifacts: ExecState['artifacts'],
isPartialExecution?: true,
) {
this.artifactGraph = createArtifactGraph({
const newGraphArtifacts = createArtifactGraph({
artifactCommands,
responseMap: this.responseMap,
ast,
execStateArtifacts,
})
if (isPartialExecution) {
for (let [id, artifact] of newGraphArtifacts) {
this.artifactGraph.set(id, artifact)
}
} else {
this.artifactGraph = newGraphArtifacts
}
// TODO check if these still need to be deferred once e2e tests are working again.
if (this.artifactGraph.size) {
this.deferredArtifactEmptied(null)