Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.26 stopped working for me #207

Closed
jimkring opened this issue Dec 30, 2021 · 2 comments
Closed

v1.26 stopped working for me #207

jimkring opened this issue Dec 30, 2021 · 2 comments

Comments

@jimkring
Copy link

Hi @EnricoMi 

I was debugging some builds today and noticed that the publishing of test results stopped working with the new v1.26 release.

I was able to "fix" my workflow by pinning the action to v1.25 (e.g. uses: EnricoMi/[email protected])

Here's a an output from the workflow that didn't actually publish (v1.26):

v1.26 (didn't actually publish)

Run EnricoMi/publish-unit-test-result-action@v1
  with:
    files: artifacts/**/*.xml
    github_token: ***
    github_retries: 10
    check_name: Unit Test Results
    fail_on: test failures
    time_unit: seconds
    hide_comments: all but latest
    comment_mode: update last
    compare_to_earlier_commit: true
    pull_request_build: merge
    check_run_annotations: all tests, skipped tests
    seconds_between_github_reads: 0.25
    seconds_between_github_writes: 2.0
/usr/bin/docker run --name ghcrioenricomipublishunittestresultactionv126_188388 --label 6a6825 --workdir /github/workspace --rm -e INPUT_FILES -e INPUT_GITHUB_TOKEN -e INPUT_GITHUB_RETRIES -e INPUT_COMMIT -e INPUT_CHECK_NAME -e INPUT_COMMENT_TITLE -e INPUT_FAIL_ON -e INPUT_TIME_UNIT -e INPUT_REPORT_INDIVIDUAL_RUNS -e INPUT_DEDUPLICATE_CLASSES_BY_FILE_NAME -e INPUT_HIDE_COMMENTS -e INPUT_COMMENT_ON_PR -e INPUT_COMMENT_MODE -e INPUT_COMPARE_TO_EARLIER_COMMIT -e INPUT_PULL_REQUEST_BUILD -e INPUT_EVENT_FILE -e INPUT_EVENT_NAME -e INPUT_TEST_CHANGES_LIMIT -e INPUT_CHECK_RUN_ANNOTATIONS -e INPUT_CHECK_RUN_ANNOTATIONS_BRANCH -e INPUT_SECONDS_BETWEEN_GITHUB_READS -e INPUT_SECONDS_BETWEEN_GITHUB_WRITES -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RETENTION_DAYS -e GITHUB_RUN_ATTEMPT -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_REF_NAME -e GITHUB_REF_PROTECTED -e GITHUB_REF_TYPE -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e GITHUB_ACTION_REPOSITORY -e GITHUB_ACTION_REF -e GITHUB_PATH -e GITHUB_ENV -e RUNNER_OS -e RUNNER_ARCH -e RUNNER_NAME -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/MYPROJECT/MYPROJECT":"/github/workspace" ghcr.io/enricomi/publish-unit-test-result-action:v1.26
2021-12-30 05:16:43 +0000 - publish-unit-test-results -  INFO - reading artifacts/**/*.xml
2021-12-30 05:16:43 +0000 - publish -  INFO - publishing success results for commit ***
2021-12-30 05:16:43 +0000 - publish -  INFO - creating check
2021-12-30 05:16:44 +0000 - publish -  INFO - there is no pull request for commit ***

v1.25 (publishes OK)

Run EnricoMi/[email protected]
  with:
    files: artifacts/**/*.xml
    github_token: ***
    github_retries: 10
    check_name: Unit Test Results
    fail_on: test failures
    time_unit: seconds
    hide_comments: all but latest
    comment_mode: update last
    compare_to_earlier_commit: true
    pull_request_build: merge
    check_run_annotations: all tests, skipped tests
    seconds_between_github_reads: 0.25
    seconds_between_github_writes: 2.0
/usr/bin/docker run --name ghcrioenricomipublishunittestresultactionv125_cb4970 --label 6a6825 --workdir /github/workspace --rm -e INPUT_FILES -e INPUT_GITHUB_TOKEN -e INPUT_GITHUB_RETRIES -e INPUT_COMMIT -e INPUT_CHECK_NAME -e INPUT_COMMENT_TITLE -e INPUT_FAIL_ON -e INPUT_TIME_UNIT -e INPUT_REPORT_INDIVIDUAL_RUNS -e INPUT_DEDUPLICATE_CLASSES_BY_FILE_NAME -e INPUT_HIDE_COMMENTS -e INPUT_COMMENT_ON_PR -e INPUT_COMMENT_MODE -e INPUT_COMPARE_TO_EARLIER_COMMIT -e INPUT_PULL_REQUEST_BUILD -e INPUT_EVENT_FILE -e INPUT_EVENT_NAME -e INPUT_TEST_CHANGES_LIMIT -e INPUT_CHECK_RUN_ANNOTATIONS -e INPUT_CHECK_RUN_ANNOTATIONS_BRANCH -e INPUT_SECONDS_BETWEEN_GITHUB_READS -e INPUT_SECONDS_BETWEEN_GITHUB_WRITES -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RETENTION_DAYS -e GITHUB_RUN_ATTEMPT -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_REF_NAME -e GITHUB_REF_PROTECTED -e GITHUB_REF_TYPE -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e GITHUB_ACTION_REPOSITORY -e GITHUB_ACTION_REF -e GITHUB_PATH -e GITHUB_ENV -e RUNNER_OS -e RUNNER_ARCH -e RUNNER_NAME -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/MYPROJECT/MYPROJECT":"/github/workspace" ghcr.io/enricomi/publish-unit-test-result-action:v1.25
2021-12-30 05:42:50 +0000 - publish-unit-test-results -  INFO - reading artifacts/**/*.xml
2021-12-30 05:42:51 +0000 - publish -  INFO - publishing success results for commit ***
2021-12-30 05:42:51 +0000 - publish -  INFO - creating check
2021-12-30 05:42:51 +0000 - publish -  INFO - there is no pull request for commit ***

I couldn't see any differences.

Let me know if you need any more details.

@EnricoMi
Copy link
Owner

EnricoMi commented Dec 30, 2021

The most reliable way to find the published results for a commit is the following:

  • go to the workflow that contains the publishing job via the grafik tab, e.g.:
    grafik
  • go to the publishing job in the list on the left
    grafik
  • remove ?check_suite_focus=true from the URL
  • look at all workflow runs on the left, in one there should be the published result. If you have multiple workflow runs for that commit, than the results are probably in the "wrong" workflow run, see Publishes to random workflow #12:
    grafik

If you still can not find the result of v1.26, can you please run the v1.26 action with the following settings:

with:
  root_log_level: DEBUG
  log_level: DEBUG

This will provide more evidence on what happened.

@EnricoMi
Copy link
Owner

EnricoMi commented Feb 1, 2022

Since v1.27, the log output of the action provides the HTML link of the check that it creates:

created check https://github.com/EnricoMi/publish-unit-test-result-action/runs/5013752289

Follow that link and it brings you directly to the check, no matter in which workflow it is located.

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

No branches or pull requests

2 participants