[Potential bug] The orchestrator has difficulties to "cat" a 10Mb file
Context: The bug was discovered, when working on the squash-autom harness tests in the MR 50.
Reproduce Using the following workflow on the java-pluigns KatalonInterpreterIntegrationTest test (valid on main).
workflow.json
{ "apiVersion": "opentestfactory.org/v1alpha1", "kind": "Workflow", "metadata": { "name": "Integration Test - Run Test" }, "resources": { "repositories": [ { "name": "integration-tests", "repository": "${CI_PROJECT_PATH}.git", "type": "gitlab", "endpoint": "https://${CI_BOT_USERNAME}:${CI_BOT_TOKEN}@gitlab.com/" } ], "files": [ "test-integration.properties" ] }, "hooks": [ { "name": "log viewer", "events": [ { "categoryPrefix": "junit", "category": "execute" } ], "after": [ { "run": "cat ${TEST_PATH}/target/junit-run-log.txt", "if": "failure()" } ] } ], "jobs": { "integration-test": { "runs-on": [ "linux", "ti" ], "steps": [ { "uses": "actions/checkout@v2", "name": "git-clone", "with": { "repository": "https://gitlab.com/${CI_PROJECT_PATH}.git", "ref": "${BRANCH_NAME}" } }, { "uses": "actions/put-file@v1", "with": { "file": "test-integration.properties", "path": "./test-integration.properties" }, "working-directory": "${TEST_PATH}" }, { "uses": "junit/execute@v1", "name": "test-class", "with": { "test": "${CLASS_PATH}${CLASS}" }, "variables": { "MAVEN_INTERNAL_REPO_USERNAME": "${MAVEN_INTERNAL_REPO_USERNAME}", "MAVEN_INTERNAL_REPO_PASSWORD": "${MAVEN_INTERNAL_REPO_PASSWORD}", "MAVEN_MIRROR_INTERNAL_REPO_URL": "${MAVEN_MIRROR_INTERNAL_REPO_URL}", "_JAVA_OPTIONS": "-Dorg.opentestfactory.test.cfg=./test-integration.properties -Dfile.encoding=UTF-8 -Dtm.generator.licence=${TM_GENERATOR_KEY}" }, "working-directory": "${TEST_PATH}", "continue-on-error": true }, { "name": "See junit file", "run": "cat ${TEST_PATH}/target/junit-run-log.txt", "continue-on-error": true } ] } } }
Observation The orchestrator seems to fail to print a file that is too big.
Attachements