Skip to content

Commit

Permalink
rsc: Hidden directories should be returned as cleanable outputs (#1658)
Browse files Browse the repository at this point in the history
  • Loading branch information
V-FEXrt authored Oct 1, 2024
1 parent ca12144 commit f29ab12
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions share/wake/lib/system/remote_cache_runner.wake
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,16 @@ export def mkRemoteCacheRunner (rscApi: RemoteCacheApi) (hashFn: RunnerInput =>
outputSymlinks
| map getCacheSearchOutputSymlinkLink

def resolvedDirectories =
def Pair hiddenDirectories publishedDirectories =
outputDirs
| filter (!_.getCacheSearchOutputDirectoryHidden)
| splitBy getCacheSearchOutputDirectoryHidden

def cleanableOutputs =
hiddenDirectories
| map getCacheSearchOutputDirectoryPath

def resolvedDirectories =
publishedDirectories
| map getCacheSearchOutputDirectoryPath

def outputs = resolvedOutputs ++ resolvedDirectories ++ resolvedSymlinks
Expand Down Expand Up @@ -237,7 +244,7 @@ export def mkRemoteCacheRunner (rscApi: RemoteCacheApi) (hashFn: RunnerInput =>
# by the same job. If so, upload the target as a "hidden" output file. On rehydration
# retore the file as normal but don't list it in the outputs.
## -------------------------------------------------------------------------------------- ##
Pass (RunnerOutput inputs outputs Nil predict)
Pass (RunnerOutput inputs outputs cleanableOutputs predict)

def run (job: Job) (input: RunnerInput): Result RunnerOutput Error =
def label = input.getRunnerInputLabel
Expand Down

0 comments on commit f29ab12

Please sign in to comment.