Skip to content

normalize traffic monitor log paths in a final always() step - #231

Merged
theihor merged 1 commit into
mainfrom
tmon-normalize-in-action
Aug 12, 2026
Merged

normalize traffic monitor log paths in a final always() step#231
theihor merged 1 commit into
mainfrom
tmon-normalize-in-action

Conversation

@vineetgarc

Copy link
Copy Markdown
Collaborator

run.sh renames the traffic monitor logs that actions/upload-artifact refuses, but it does so right after vmtest returns, so nothing renames them when the vmtest step does not get that far. Callers upload the directory with if: always(), so the upload still runs and fails on the leftover names:

Error: The path for one of the files in artifact is not valid:
/packets-125-15-net_timestamping__INET4:_bpf_timestamping-net_timestamping_ns.log.
Contains the following character: Colon :

Move the call out of run.sh into a last step of the action, guarded by if: always(), so it runs whatever happened to the step before it. The script already returns early when the directory does not exist, which is the case for every test that does not enable the traffic monitor.

This was initially proposed as vmtest but that does copy/paste.

run.sh renames the traffic monitor logs that actions/upload-artifact refuses,
but it does so right after vmtest returns, so nothing renames them when the
vmtest step does not get that far. Callers upload the directory with
if: always(), so the upload still runs and fails on the leftover names:

  Error: The path for one of the files in artifact is not valid:
  /packets-125-15-net_timestamping__INET4:_bpf_timestamping-net_timestamping_ns.log.
  Contains the following character:  Colon :

Move the call out of run.sh into a last step of the action, guarded by
if: always(), so it runs whatever happened to the step before it. The script
already returns early when the directory does not exist, which is the case for
every test that does not enable the traffic monitor.

Signed-off-by: Vineet Gupta <vineet.gupta@linux.dev>
@theihor
theihor merged commit 302cb61 into main Aug 12, 2026
18 checks passed
@vineetgarc
vineetgarc deleted the tmon-normalize-in-action branch August 12, 2026 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants