Skip to content

Commit d3ff1d1

Browse files
refactor: add mnemonics to some gazelle and sphinxdocs actions (#3449)
Having mnemonics allows actions to be better identified in output, logs, selected by flags, etc --------- Co-authored-by: Richard Levasseur <[email protected]>
1 parent 41f91e9 commit d3ff1d1

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

examples/wheel/private/wheel_utils.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def _directory_writer_impl(ctx):
2828

2929
ctx.actions.run(
3030
outputs = [output],
31+
mnemonic = "PyDirWriter",
3132
arguments = [args],
3233
executable = ctx.executable._writer,
3334
)

gazelle/manifest/defs.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ def _sources_hash_impl(ctx):
184184
args.add_all(all_srcs)
185185
ctx.actions.run(
186186
outputs = [hash_file],
187+
mnemonic = "PyGazelleManifestHash",
187188
inputs = all_srcs,
188189
arguments = [args],
189190
executable = ctx.executable._hasher,

gazelle/modules_mapping/def.bzl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def _modules_mapping_impl(ctx):
4343

4444
ctx.actions.run(
4545
inputs = [whl],
46+
mnemonic = "PyGazelleModMapGen",
4647
outputs = [wheel_modules_mapping],
4748
executable = ctx.executable._generator,
4849
arguments = [args],
@@ -57,6 +58,7 @@ def _modules_mapping_impl(ctx):
5758

5859
ctx.actions.run(
5960
inputs = per_wheel_outputs,
61+
mnemonic = "PyGazelleModMapMerge",
6062
outputs = [modules_mapping],
6163
executable = ctx.executable._merger,
6264
arguments = [merge_args],

sphinxdocs/private/sphinx.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,7 @@ def _sphinx_inventory_impl(ctx):
498498
args.add(output)
499499
ctx.actions.run(
500500
executable = ctx.executable._builder,
501+
mnemonic = "SphinxInventoryBuilder",
501502
arguments = [args],
502503
inputs = depset([ctx.file.src]),
503504
outputs = [output],

0 commit comments

Comments
 (0)