Skip to content

Throw errors if scripts take more than 1s (to avoid slowing down the whole CI)#143

Merged
Ayc0 merged 6 commits intomainfrom
Ayc0/skip-slow
Oct 2, 2025
Merged

Throw errors if scripts take more than 1s (to avoid slowing down the whole CI)#143
Ayc0 merged 6 commits intomainfrom
Ayc0/skip-slow

Conversation

@Ayc0
Copy link
Collaborator

@Ayc0 Ayc0 commented Oct 2, 2025

When renaming this file:

image

and then running ./aoc run -d 12 -l py --timeout 1 (not set by default locally, but set to 1 in the CI):

image

It doesn't include the compilation time, so here we can see that if we include rust code, it will take 10s to execute fully, but doesn't trigger the 1s limit

image

This is also cutomizable with --timeout:

image

And of course, the error message gets adapted to the new duration:

image

@Ayc0 Ayc0 marked this pull request as ready for review October 2, 2025 10:05
@Ayc0 Ayc0 changed the title skip slow scripts Throw errors if scripts take more than 1s Oct 2, 2025
@Ayc0 Ayc0 changed the title Throw errors if scripts take more than 1s Throw errors if scripts take more than 1s (to avoid slowing down the whole CI) Oct 2, 2025
Ayc0 and others added 2 commits October 2, 2025 17:14
Co-authored-by: paul le grand des Cloizeaux <39500444+paullgdc@users.noreply.github.com>
@Ayc0 Ayc0 merged commit a004a1e into main Oct 2, 2025
3 checks passed
@Ayc0 Ayc0 deleted the Ayc0/skip-slow branch October 2, 2025 15:17
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

Successfully merging this pull request may close these issues.

2 participants