Skip to content

Conversation

derekk-nm
Copy link
Contributor

Summary:

We need to be more specific about where to find the droute_sent_template.json file.

Details:

the compressed-tensors nightly job is failing. https://github.com/neuralmagic/compressed-tensors/actions/runs/15695266055/job/44251855599
the error is:

Submitting test run to ReportPortal...
Invalid --metadata: 'invalid character '{' after top-level value'
Error: Process completed with exit code 2.

It appears that inside the neuralmagic/nm-actions/actions/reportportal_submit_execution_results@v1.15.0 action, the command:

TEMPLATE=`find ~ -type f -name 'droute_send_template.json'`

Is returning two different files with the same name:
/home/runner/actions-runner/_work/nm-cicd/nm-cicd/.github/actions/submit-to-report-portal/droute_send_template.json and
/home/runner/actions-runner/_work/_actions/neuralmagic/nm-actions/v1.15.0/actions/reportportal_submit_execution_results/droute_send_template.json

Then the jq command in the action is run for both files, duplicating the content of the generated datarouter.json file. This explains how the content of the json is bad.

The extra file is /home/runner/actions-runner/_work/nm-cicd/nm-cicd/.github/actions/submit-to-report-portal/droute_send_template.json, but I don’t get how/when nm-cicd was installed, or why the installed version even has that action.

The workaround is to adjust the find command to look where the current job's actions were downloaded. That is available as the $GITHUB_ACTION_PATH env var.

Test Plan:

I've verified that the syntax of using an env var with the find command works as expected. The thing I haven't done is confirm that the $GITHUB_ACTION_PATH resolves correctly, but the documentation here indicates that it's the path I expect.

Related Issues:

N/A

dtrifiro
dtrifiro previously approved these changes Jun 18, 2025
derekk-nm and others added 2 commits June 18, 2025 14:11
Co-authored-by: Tarun Kumar <takumar@redhat.com>
@derekk-nm
Copy link
Contributor Author

derekk-nm commented Jun 20, 2025

when this action was working, the file was successfully found at /home/runner/actions-runner/_work/nm-cicd/nm-cicd/.github/actions/submit-to-report-portal/droute_send_template.json. According to documentation here indicates that the $GITHUB_ACTION_PATH will resolve to something like /home/runner/_work/_actions/repo-owner/name-of-action-repo/v1, so this should probably work. I've also seen uses of it that jive too. e.g. https://github.com/snyk/actions/pull/135/files uses it like this:

${GITHUB_ACTION_PATH}/setup_snyk.sh

@derekk-nm
Copy link
Contributor Author

Tested with a modified compressed-tensors repo that only ran tests on one runner. This was successful: https://github.com/neuralmagic/compressed-tensors/actions/runs/15781314153/job/44487696590

@derekk-nm derekk-nm added this pull request to the merge queue Jun 20, 2025
Merged via the queue into main with commit a223363 Jun 20, 2025
1 check passed
@derekk-nm derekk-nm deleted the dmk/use_action_path branch June 20, 2025 14:51
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.

4 participants