Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

super-linter seems to be broken #709

Merged
merged 1 commit into from
Sep 3, 2020

Conversation

v1v
Copy link
Member

@v1v v1v commented Sep 3, 2020

What does this PR do?

If configured with the failNever flag then avoid any failures even if the script failed for some other reason.

Why is it important?

Avoid affectinig our SDLC when consuming the docker images

16:26:37  2020-09-03 15:26:37 [ERROR ]   Failed to find [dotnet-format] in system!

See master build -> https://apm-ci.elastic.co/blue/organizations/jenkins/apm-shared%2Fapm-pipeline-library-mbp/detail/master/1023/

Issues

See https://github.com/github/super-linter/issues/672

@v1v v1v self-assigned this Sep 3, 2020
@v1v v1v added the automation label Sep 3, 2020
@v1v v1v requested a review from a team September 3, 2020 15:40
@v1v v1v marked this pull request as ready for review September 3, 2020 15:40
@botelastic botelastic bot added the groovy label Sep 3, 2020
@apmmachine
Copy link
Contributor

💔 Build Failed

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #709 opened]

  • Start Time: 2020-09-03T15:39:44.866+0000

  • Duration: 9 min 2 sec

Test stats 🧪

Test Results
Failed 0
Passed 751
Skipped 9
Total 760

Steps errors

Expand to view the steps failures

  • Name: Archive JUnit-formatted test results

    • Description: [2020-09-03T15:43:45.669Z] Recording test results
      [2020-09-03T15:43:45.947Z] Failed to read /var/li

    • Duration: 0 min 0 sec

    • Start Time: 2020-09-03T15:43:45.660+0000

    • log

  • Name: Run super-linter

    • Description: docker run -e RUN_LOCAL=true -e DISABLE_ERRORS=true -e OUTPUT_FORMAT=tap -e OUTPUT_DETAILS=detailed -e OUTPUT_FOLDER=.super-linter -v $(pwd):/tmp/lint -u $(id -u):$(id -g) github/super-linter:latest

    • Duration: 1 min 9 sec

    • Start Time: 2020-09-03T15:47:35.688+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-09-03T15:48:47.431Z] + new='[2020-09-03T15:43:45.669Z] Recording test results
[2020-09-03T15:48:47.431Z] [2020-09-03T15:43:45.947Z] Failed to read /var/li'
[2020-09-03T15:48:47.431Z] + jq --arg id 136 --arg new '[2020-09-03T15:43:45.669Z] Recording test results
[2020-09-03T15:48:47.431Z] [2020-09-03T15:43:45.947Z] Failed to read /var/li' '(.[] | select(.result=="FAILURE" and .displayDescription==null and .id==$id) | .displayDescription) |= $new' steps-errors.json
[2020-09-03T15:48:47.682Z] + mv /tmp/tmp.arNyrejcK2/step.log steps-errors.json
[2020-09-03T15:48:47.682Z] + normaliseSteps steps-info.json
[2020-09-03T15:48:47.682Z] + file=steps-info.json
[2020-09-03T15:48:47.682Z] + jqAppend https://apm-ci.elastic.co/ 'map(with_entries(select(.key != "_links")) + ( .url = $a + ._links.self.href + "log"))' steps-info.json
[2020-09-03T15:48:47.682Z] + argument=https://apm-ci.elastic.co/
[2020-09-03T15:48:47.682Z] + query='map(with_entries(select(.key != "_links")) + ( .url = $a + ._links.self.href + "log"))'
[2020-09-03T15:48:47.682Z] + file=steps-info.json
[2020-09-03T15:48:47.682Z] ++ mktemp
[2020-09-03T15:48:47.682Z] + tmp=/tmp/tmp.C0k3J1OihJ
[2020-09-03T15:48:47.682Z] + jq --arg a https://apm-ci.elastic.co/ 'map(with_entries(select(.key != "_links")) + ( .url = $a + ._links.self.href + "log"))' steps-info.json
[2020-09-03T15:48:47.682Z] + mv /tmp/tmp.C0k3J1OihJ steps-info.json
[2020-09-03T15:48:47.682Z] + jqEdit 'map(del(._links))' steps-info.json
[2020-09-03T15:48:47.682Z] + query='map(del(._links))'
[2020-09-03T15:48:47.682Z] + file=steps-info.json
[2020-09-03T15:48:47.682Z] ++ mktemp
[2020-09-03T15:48:47.682Z] + tmp=/tmp/tmp.9oWEOzA1zT
[2020-09-03T15:48:47.682Z] + jq 'map(del(._links))' steps-info.json
[2020-09-03T15:48:47.682Z] + mv /tmp/tmp.9oWEOzA1zT steps-info.json
[2020-09-03T15:48:47.682Z] + jqEdit 'map(del(._class))' steps-info.json
[2020-09-03T15:48:47.682Z] + query='map(del(._class))'
[2020-09-03T15:48:47.682Z] + file=steps-info.json
[2020-09-03T15:48:47.682Z] ++ mktemp
[2020-09-03T15:48:47.682Z] + tmp=/tmp/tmp.P6abxp8Pyy
[2020-09-03T15:48:47.682Z] + jq 'map(del(._class))' steps-info.json
[2020-09-03T15:48:47.682Z] + mv /tmp/tmp.P6abxp8Pyy steps-info.json
[2020-09-03T15:48:47.682Z] + jqEdit 'map(del(.actions))' steps-info.json
[2020-09-03T15:48:47.682Z] + query='map(del(.actions))'
[2020-09-03T15:48:47.682Z] + file=steps-info.json
[2020-09-03T15:48:47.682Z] ++ mktemp
[2020-09-03T15:48:47.682Z] + tmp=/tmp/tmp.XWKGIcpyIP
[2020-09-03T15:48:47.682Z] + jq 'map(del(.actions))' steps-info.json
[2020-09-03T15:48:47.682Z] + mv /tmp/tmp.XWKGIcpyIP steps-info.json
[2020-09-03T15:48:47.682Z] + normaliseSteps steps-errors.json
[2020-09-03T15:48:47.682Z] + file=steps-errors.json
[2020-09-03T15:48:47.682Z] + jqAppend https://apm-ci.elastic.co/ 'map(with_entries(select(.key != "_links")) + ( .url = $a + ._links.self.href + "log"))' steps-errors.json
[2020-09-03T15:48:47.682Z] + argument=https://apm-ci.elastic.co/
[2020-09-03T15:48:47.682Z] + query='map(with_entries(select(.key != "_links")) + ( .url = $a + ._links.self.href + "log"))'
[2020-09-03T15:48:47.682Z] + file=steps-errors.json
[2020-09-03T15:48:47.682Z] ++ mktemp
[2020-09-03T15:48:47.682Z] + tmp=/tmp/tmp.VPke5NlY3d
[2020-09-03T15:48:47.682Z] + jq --arg a https://apm-ci.elastic.co/ 'map(with_entries(select(.key != "_links")) + ( .url = $a + ._links.self.href + "log"))' steps-errors.json
[2020-09-03T15:48:47.682Z] + mv /tmp/tmp.VPke5NlY3d steps-errors.json
[2020-09-03T15:48:47.682Z] + jqEdit 'map(del(._links))' steps-errors.json
[2020-09-03T15:48:47.682Z] + query='map(del(._links))'
[2020-09-03T15:48:47.682Z] + file=steps-errors.json
[2020-09-03T15:48:47.682Z] ++ mktemp
[2020-09-03T15:48:47.682Z] + tmp=/tmp/tmp.D4CCjfVm2u
[2020-09-03T15:48:47.682Z] + jq 'map(del(._links))' steps-errors.json
[2020-09-03T15:48:47.933Z] + mv /tmp/tmp.D4CCjfVm2u steps-errors.json
[2020-09-03T15:48:47.933Z] + jqEdit 'map(del(._class))' steps-errors.json
[2020-09-03T15:48:47.933Z] + query='map(del(._class))'
[2020-09-03T15:48:47.933Z] + file=steps-errors.json
[2020-09-03T15:48:47.933Z] ++ mktemp
[2020-09-03T15:48:47.933Z] + tmp=/tmp/tmp.stc02thDJX
[2020-09-03T15:48:47.933Z] + jq 'map(del(._class))' steps-errors.json
[2020-09-03T15:48:47.933Z] + mv /tmp/tmp.stc02thDJX steps-errors.json
[2020-09-03T15:48:47.933Z] + jqEdit 'map(del(.actions))' steps-errors.json
[2020-09-03T15:48:47.933Z] + query='map(del(.actions))'
[2020-09-03T15:48:47.933Z] + file=steps-errors.json
[2020-09-03T15:48:47.933Z] ++ mktemp
[2020-09-03T15:48:47.933Z] + tmp=/tmp/tmp.2zEuWvNpDU
[2020-09-03T15:48:47.933Z] + jq 'map(del(.actions))' steps-errors.json
[2020-09-03T15:48:47.933Z] + mv /tmp/tmp.2zEuWvNpDU steps-errors.json
[2020-09-03T15:48:47.933Z] + fetchAndDefaultTestsErrors tests-errors.json 'https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-shared/apm-pipeline-library-mbp/PR-709/runs/1/tests/?status=FAILED' '[ ]'
[2020-09-03T15:48:47.933Z] + file=tests-errors.json
[2020-09-03T15:48:47.933Z] + url='https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-shared/apm-pipeline-library-mbp/PR-709/runs/1/tests/?status=FAILED'
[2020-09-03T15:48:47.933Z] + default='[ ]'
[2020-09-03T15:48:47.933Z] + fetchAndDefault tests-errors.json 'https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-shared/apm-pipeline-library-mbp/PR-709/runs/1/tests/?status=FAILED' '[ ]'
[2020-09-03T15:48:47.933Z] + file=tests-errors.json
[2020-09-03T15:48:47.933Z] + url='https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-shared/apm-pipeline-library-mbp/PR-709/runs/1/tests/?status=FAILED'
[2020-09-03T15:48:47.933Z] + default='[ ]'
[2020-09-03T15:48:47.933Z] + fetch tests-errors.json 'https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-shared/apm-pipeline-library-mbp/PR-709/runs/1/tests/?status=FAILED'
[2020-09-03T15:48:47.933Z] + file=tests-errors.json
[2020-09-03T15:48:47.933Z] + url='https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-shared/apm-pipeline-library-mbp/PR-709/runs/1/tests/?status=FAILED'
[2020-09-03T15:48:47.933Z] + echo 'INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-shared/apm-pipeline-library-mbp/PR-709/runs/1/tests/?status=FAILED -o tests-errors.json'
[2020-09-03T15:48:47.933Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-shared/apm-pipeline-library-mbp/PR-709/runs/1/tests/?status=FAILED -o tests-errors.json
[2020-09-03T15:48:47.933Z] + [[ -n https://apm-ci.elastic.co/ ]]
[2020-09-03T15:48:47.933Z] + [[ -e /usr/local/bin/bash_standard_lib.sh ]]
[2020-09-03T15:48:47.933Z] + retry 3 curlCommand tests-errors.json 'https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-shared/apm-pipeline-library-mbp/PR-709/runs/1/tests/?status=FAILED'
[2020-09-03T15:48:47.933Z] + local retries=3
[2020-09-03T15:48:47.933Z] + shift
[2020-09-03T15:48:47.933Z] + local count=0
[2020-09-03T15:48:47.933Z] + curlCommand tests-errors.json 'https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-shared/apm-pipeline-library-mbp/PR-709/runs/1/tests/?status=FAILED'
[2020-09-03T15:48:47.933Z] + curl --silent --max-time 600 --connect-timeout 30 -o tests-errors.json 'https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-shared/apm-pipeline-library-mbp/PR-709/runs/1/tests/?status=FAILED'
[2020-09-03T15:48:47.933Z] + return 0
[2020-09-03T15:48:47.933Z] + '[' '!' -e tests-errors.json ']'
[2020-09-03T15:48:47.933Z] + '[' '!' -s tests-errors.json ']'
[2020-09-03T15:48:47.933Z] + jq -e 'select(.code==404)' tests-errors.json
[2020-09-03T15:48:47.933Z] + normaliseTests tests-errors.json
[2020-09-03T15:48:47.933Z] + file=tests-errors.json
[2020-09-03T15:48:47.933Z] + jqEdit 'map(del(._links))' tests-errors.json
[2020-09-03T15:48:47.933Z] + query='map(del(._links))'
[2020-09-03T15:48:47.933Z] + file=tests-errors.json
[2020-09-03T15:48:47.933Z] ++ mktemp
[2020-09-03T15:48:47.933Z] + tmp=/tmp/tmp.lkGCM9MN3f
[2020-09-03T15:48:47.933Z] + jq 'map(del(._links))' tests-errors.json

@v1v
Copy link
Member Author

v1v commented Sep 3, 2020

Test failure should be fixed by this particular PR, unfortunately this is a chicken-egg problem

@v1v v1v merged commit 1330d4e into elastic:master Sep 3, 2020
v1v added a commit that referenced this pull request Sep 3, 2020
* upstream/master:
  super-linter seems to be broken (#709)
v1v referenced this pull request in v1v/apm-pipeline-library-backup Sep 4, 2020
* upstream/master:
  isMemberOf step to query GitHub user/teams (#711)
  [test-infra] run docker if docker-machine installed (#710)
  super-linter seems to be broken (#709)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants