Unverified Commit aedd7561 authored by Michael Müller's avatar Michael Müller Committed by GitHub
Browse files

Fix fuzz setup (#549)

* Execute fuzz stage on this branch, remove variable

* Move fuzz to first stage

* Fix ALL_CRATES

* Undo debugging changes

* Reduce number of tests for debugging

* Debug further

* Debug further

* Debug further

* Debug further

* Improve curl

* Fix markdown

* Exit 1 after fuzz tests failed

* Revert debugging changes

* Improve readability
parent 098c7f8e
Pipeline #112488 failed with stages
in 23 minutes and 34 seconds
......@@ -20,7 +20,7 @@ variables:
CARGO_TARGET_DIR: "/ci-cache/${CI_PROJECT_NAME}/targets/${CI_COMMIT_REF_NAME}/${CI_JOB_NAME}"
PURELY_STD_CRATES: "lang/codegen metadata"
ALSO_WASM_CRATES: "env storage storage/derive allocator prelude primitives lang lang/macro lang/ir"
ALL_CRATES: "${PURELY_STD_CRATES $ALSO_WASM_CRATES}"
ALL_CRATES: "${PURELY_STD_CRATES} ${ALSO_WASM_CRATES}"
workflow:
rules:
......@@ -327,15 +327,16 @@ fuzz-tests:
done
- if [ $all_tests_passed -eq 0 ]; then exit 0; fi
- |
curl -X "POST" "https://api.github.com/repos/paritytech/ink/issues?state=all" \
curl -X "POST" "https://api.github.com/repos/paritytech/ink/issues" \
-H "Cookie: logged_in=no" \
-H "Authorization: token ${GITHUB_TOKEN}" \
-H "Content-Type: text/plain; charset=utf-8" \
-H "Content-Type: application/json; charset=utf-8" \
-d $'{
"title": "[ci] Failing fuzz tests on master ('"$( date +"%d %b %Y" )"'),
"body": "This CI job '"${CI_JOB_ID}"' just failed: '"${CI_JOB_URL}"'.\n\nThe offending commit is `['"${CI_COMMIT_TITLE}"'](https://github.com/paritytech/ink/commit/'"${CI_COMMIT_SHA}"')`.",
"title": "[ci] Failing fuzz tests on master ('"$( date +"%d %b %Y" )"')",
"body": "The CI job ['"${CI_JOB_ID}"']('"${CI_JOB_URL}"') just failed.\n\nThe offending commit is ['"${CI_COMMIT_TITLE}"'](https://github.com/paritytech/ink/commit/'"${CI_COMMIT_SHA}"').",
"assignees": [],
"labels": [
"P-high"
]
}'
- exit ${all_tests_passed}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment