diff --git a/change/@lage-run-hasher-95dbb6d1-cfd5-403f-8035-7453cbe7dd4b.json b/change/@lage-run-hasher-95dbb6d1-cfd5-403f-8035-7453cbe7dd4b.json new file mode 100644 index 000000000..e93ab035a --- /dev/null +++ b/change/@lage-run-hasher-95dbb6d1-cfd5-403f-8035-7453cbe7dd4b.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Log file level input file hashes to silly logs", + "packageName": "@lage-run/hasher", + "email": "brunoru@microsoft.com", + "dependentChangeType": "patch" +} diff --git a/docs/docs/Reference/cli.md b/docs/docs/Reference/cli.md index cfd6018c6..7f47ff922 100644 --- a/docs/docs/Reference/cli.md +++ b/docs/docs/Reference/cli.md @@ -35,7 +35,7 @@ Usage: `lage [run] [command2...commandN] [options] run commands` --reset-cache resets the cache, filling it after a run --skip-local-cache skips caching locally --profile [profile] writes a run profile into a file that can be processed by Chromium devtool - --nodearg arguments to be passed to node (e.g. --nodearg="--max_old_space_size=1234 --heap-prof" - set via "NODE_OPTIONS" environment variable + --nodearg arguments to be passed to node (e.g. --nodearg="--max_old_space_size=1234 --heap-prof" - set via "NODE_OPTIONS" environment variable) --continue continues the run even on error -h, --help display help for command ``` diff --git a/packages/hasher/src/TargetHasher.ts b/packages/hasher/src/TargetHasher.ts index cb324533e..80e91e8ea 100644 --- a/packages/hasher/src/TargetHasher.ts +++ b/packages/hasher/src/TargetHasher.ts @@ -193,6 +193,9 @@ export class TargetHasher { if (this.logger !== undefined) { const globalInputsHash = hashStrings(Object.values(this.globalInputsHash ?? {})); this.logger.verbose(`Global inputs hash: ${globalInputsHash}`); + // Log global input hashs to log file + const globalInputsHashJson = JSON.stringify(this.globalInputsHash, null, 2); + this.logger.silly(globalInputsHashJson); } }