Skip to content

Conversation

@jmckulk
Copy link
Collaborator

@jmckulk jmckulk commented Nov 19, 2025

Checklist:

  • Have you added an explanation of what your changes do and why you'd like them to be included?
  • Have you updated or added documentation for the change, as applicable?
  • Have you tested your changes on all related environments with successful results, as applicable?
    • Have you added automated tests?

Type of Changes:

  • New feature
  • Bug fix
  • Documentation
  • Testing enhancement
  • Other

What is the current behavior (link to any open issues here)?

What is the new behavior (if this is a feature change)?

  • Breaking change (fix or feature that would cause existing functionality to change)

Other Information:

@jmckulk jmckulk changed the title Fix naming for podlogs Github Action Debugging Nov 19, 2025
@jmckulk jmckulk force-pushed the jmckulk/pgbr-chainsaw-test-debug branch 2 times, most recently from f0bcc54 to bff9d68 Compare November 21, 2025 16:39
Prevents race conditions where pod is found but Postgres isn't ready yet.
Reduce PVC sizes from 1Gi to 256Mi and use Foreground deletion
with explicit PVC cleanup waits to prevent disk exhaustion on
GitHub-hosted runners.
Use env var instead of JMESPath expression in shell script.
Prevent script timeout (5s default) from killing 2m kubectl wait.
Only prefetch images actually used by the test: pgbackrest and postgres.
Removes ~500MB of unused images (pgbouncer, pgadmin, exporter, upgrade).
- Add pgbouncer, exporter, upgrade, pgadmin images to prefetch
- Increase KUTTL timeout from 300s to 450s
- Increase prefetch timeout to 5m
@jmckulk jmckulk force-pushed the jmckulk/pgbr-chainsaw-test-debug branch from 5a2aee5 to aa19cad Compare November 24, 2025 16:32
@jmckulk jmckulk force-pushed the jmckulk/pgbr-chainsaw-test-debug branch from bd01f63 to 63c4ecb Compare November 24, 2025 18:43
@jmckulk
Copy link
Collaborator Author

jmckulk commented Nov 24, 2025

The two biggest improvements here were reducing the number of prefetch images and splitting chainsaw and kuttl tests into separate jobs. I think we were hitting issues with disk pressure and these two changes help with that.

For the prefetch images change, we aren't testing GIS here so there is no point in fetching them. In addition to removing these extra images, this change tries to ensure we are using the images that we fetch. This does mean we might need to add images, specifically to chainsaw, as we test more functionality.

For the split change, this feels like a stopgap fix. We are really just giving the tests more space to run by splitting them up. We should continue to consider ways reduce disk space usage. One option may be to refactor the chainsaw pgbackrest-restore test to only use one cluster.

Other changes in this pr are mostly either timeout increases or adding extra logging or checks. The change to reduce volume request size likely doesn't have much impact on actual disk usage but feels like a safe change.

@jmckulk jmckulk marked this pull request as ready for review November 24, 2025 19:29
Comment on lines 124 to 125
--env 'RELATED_IMAGE_PGEXPORTER=registry.developers.crunchydata.com/crunchydata/crunchy-postgres-exporter:ubi9-0.17.1-2542' \
--env 'RELATED_IMAGE_PGUPGRADE=registry.developers.crunchydata.com/crunchydata/crunchy-upgrade:ubi9-18.0-2542' \
Copy link
Collaborator

Choose a reason for hiding this comment

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

I guess these (and PGBOUNCER) could be removed as well

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I was thinking leave related images. That way if an image isn't pre-fetched it could be pulled.

Or we could fail when we don't have all the images we need?

Comment on lines 128 to 129
--env 'RELATED_IMAGE_STANDALONE_PGADMIN=registry.developers.crunchydata.com/crunchydata/crunchy-pgadmin4:ubi9-9.8-2542' \
--env 'RELATED_IMAGE_COLLECTOR=registry.developers.crunchydata.com/crunchydata/postgres-operator:ubi9-5.8.4-0' \
Copy link
Collaborator

Choose a reason for hiding this comment

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

These can be removed too

Copy link
Collaborator

@dsessler7 dsessler7 left a comment

Choose a reason for hiding this comment

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

Couple nitpicks, but LGTM

@jmckulk jmckulk force-pushed the jmckulk/pgbr-chainsaw-test-debug branch from 63c4ecb to 51f6ea0 Compare November 25, 2025 15:53
@jmckulk jmckulk enabled auto-merge (rebase) November 25, 2025 15:53
@jmckulk jmckulk merged commit f28e554 into CrunchyData:main Nov 25, 2025
20 checks passed
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.

4 participants