Skip to content

Commit

Permalink
[java] Removes timeout guard on java (#3123)
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeauchesne committed Sep 26, 2024
1 parent fee8800 commit da17bd1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 23 deletions.
24 changes: 1 addition & 23 deletions .github/workflows/run-parametric.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,29 +56,7 @@ jobs:
with:
name: ${{ inputs.binaries_artifact }}
path: binaries/
- name: Run parametric tests (with timeout)
if: ${{ inputs.library == 'java' }}
run: |
set +e
RUN_ATTEMPTS=1
while [ $RUN_ATTEMPTS -le 3 ]; do
echo "Running parametric test attempt $RUN_ATTEMPTS"
timeout 720s ./run.sh PARAMETRIC -L ${{ inputs.library }} --splits=${{ inputs._experimental_job_count }} --group=${{ matrix.job_instance }}
status=$?
#timneout returns 124 if it times out
#if the return code is not 124, then we exit with the status
if [ $status -ne 124 ]; then
exit $status
break
fi
RUN_ATTEMPTS=$((RUN_ATTEMPTS+1))
if [ $RUN_ATTEMPTS -eq 4 ]; then
#Max attempts reached, exit with 124
exit 124
fi
done
- name: Run parametric (without timeout)
if: ${{ inputs.library != 'java' }}
- name: Run PARAMETRIC scenario
run: ./run.sh PARAMETRIC -L ${{ inputs.library }} --splits=${{ inputs._experimental_job_count }} --group=${{ matrix.job_instance }}
- name: Compress logs
id: compress_logs
Expand Down
2 changes: 2 additions & 0 deletions utils/scripts/compute_impacted_scenario.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ def main():
r"\.github/workflows/run-parametric\.yml": ScenarioGroup.PARAMETRIC.value,
r"\.github/workflows/run-lib-injection\.yml": ScenarioGroup.LIB_INJECTION.value,
r"\.github/workflows/run-docker-ssi\.yml": ScenarioGroup.DOCKER_SSI.value,
r"\.github/workflows/run-graphql\.yml": ScenarioGroup.GRAPHQL.value,
r"\.github/workflows/run-open-telemetry\.yml": ScenarioGroup.OPEN_TELEMETRY.value,
r"\.github/.*": None, # nothing to do??
## utils/ folder
r"utils/interfaces/schemas.*": ScenarioGroup.END_TO_END.value,
Expand Down

0 comments on commit da17bd1

Please sign in to comment.