Skip to content

Increase timeout for oidc-integration-test - #1944

Merged
matthew-white merged 2 commits into
masterfrom
oidc-test-timeout
Sep 23, 2026
Merged

matthew-white merged 2 commits into
masterfrom
oidc-test-timeout

Conversation

@matthew-white

Copy link
Copy Markdown
Member

I haven't done much work in Backend for a bit, but as I've been pushing PRs over the past day, I've noticed that oidc-integration-test fails somewhat frequently due to timeout. It ends up getting canceled. If I rerun it enough times, it eventually passes. However, rather than rerunning, I think it'd be better to increase the timeout.

What has been done to verify that this works as intended?

Tests continue to pass (hopefully more consistently).

Why is this the best possible solution? Were any other approaches considered?

Is it unexpected that it's taking longer than before? If so, that's something we could investigate. (I'd be happy to file an issue about that.) However, even if that's the case, I think it'd be nice to go ahead and increase the timeout for now. That way, it won't be necessary to rerun OIDC tests for unrelated PRs.

I increased the timeout from 6 minutes to 9, just adding 50%. I could try a smaller number instead if that'd be preferable.

How does this change impact users? Describe intentional behavior changes from code updates. What are the regression risks?

No risk of regression; just a change to tests.

@alxndrsn alxndrsn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've noticed that oidc-integration-test fails somewhat frequently due to timeout

I've had a quick look at https://github.com/getodk/central-backend/actions/workflows/oidc-integration.yml, and I agree it's happening a lot!

There was a big jump when postgres logs were added in #1924 - it can take ~1 minute for the logs to be output.

I'm up for increasing the timeout, but I think also it would help to remove postgres logs from the full-test-suite jobs.

@alxndrsn alxndrsn mentioned this pull request Sep 19, 2026
1 task done
@alxndrsn

Copy link
Copy Markdown
Contributor

I think also it would help to remove postgres logs from the full-test-suite jobs.

@matthew-white I've filed #1945 to address this.

@matthew-white

Copy link
Copy Markdown
Member Author

I've approved #1945, thank you for that PR! ✅

Should I still merge this PR, or should we see if #1945 is sufficient?

One thing that stands out to me is that standard-suite.yml has a much higher timeout than oidc-integration.yml (20 minutes vs. 6):

standard-suite.yml does do some things that oidc-integration.yml doesn't, e.g., linting and unit tests, but those things are pretty fast. The slowest part is running integration tests, and both workflows do that.

So part of me thinks that increasing the timeout here would bring oidc-integration.yml more in line with standard-suite.yml. Then again, the timeout in standard-suite.yml is probably higher than it needs to be.

alxndrsn added a commit that referenced this pull request Sep 21, 2026
These jobs generate huge PostgreSQL logs, which add ~1 minute to build times.  While these logs might be helpful occasionally, it's probably not worth the overhead to have them _always_ enabled.

This impact was noted in #1944.

Introduced in #1932, the original aim of that PR is still maintained, as PostgreSQL logs will still be available from other GitHub Actions workflows.
@matthew-white

Copy link
Copy Markdown
Member Author

I'm going to go ahead and merge. I don't think there's much risk to increasing the timeout. It brings oidc-integration in line with standard-suite. I see this PR as being consistent with #994, where the idea was:

I've set the timeouts as approximately double the time I've seen for recent ✅ green builds.

oidc-integration often takes 5 minutes or more, so if anything, the increase here might be too low.

@matthew-white
matthew-white merged commit 3023f2e into master Sep 23, 2026
26 checks passed
@matthew-white
matthew-white deleted the oidc-test-timeout branch September 23, 2026 20:07
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