Skip to content

ci: output postgres logs - #1932

Merged
alxndrsn merged 5 commits into
getodk:masterfrom
alxndrsn:ci-postgres-logs
Sep 6, 2026
Merged

alxndrsn merged 5 commits into
getodk:masterfrom
alxndrsn:ci-postgres-logs

Conversation

@alxndrsn

@alxndrsn alxndrsn commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

Helpful for debugging workflow failures.

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

Used in #1924 to help debug intermittent postgres startup issues.

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

Not including these logs until they are needed? But in the case of #1924, there were occasional failures which could not be recreated easily on demand. This meant significant added time caused by configuring logs later, and then waiting for a failure to recur.

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

No effect - just CI.

Does this change require updates to the API documentation? If so, please update docs/api.yaml as part of this PR.

No.

Helpful for debugging workflow failures.
@alxndrsn alxndrsn mentioned this pull request Sep 4, 2026
15 of 16 tasks
@alxndrsn
alxndrsn marked this pull request as ready for review September 4, 2026 13:47
@alxndrsn
alxndrsn requested a review from sadiqkhoja September 4, 2026 13:49

@lognaturel lognaturel left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Consider adding || true so it doesn't look like it failed if previous steps failed.

@alxndrsn
alxndrsn merged commit 4620242 into getodk:master Sep 6, 2026
14 checks passed
@alxndrsn
alxndrsn deleted the ci-postgres-logs branch September 6, 2026 05:59
@alxndrsn alxndrsn mentioned this pull request Sep 19, 2026
1 task done
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.
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