Skip to content

testinfra: Fix InstanceType and startup error handling#2207

Open
mmlb wants to merge 2 commits into
developfrom
push-wzymylwpyvqv
Open

testinfra: Fix InstanceType and startup error handling#2207
mmlb wants to merge 2 commits into
developfrom
push-wzymylwpyvqv

Conversation

@mmlb

@mmlb mmlb commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

This is used to get logs from journalctl but when the service name is wrong there's nothing to report and thus is very unhelpful.

What kind of change does this PR introduce?

Buf fix

What is the current behavior?

If testinfra times out waiting on a healthy postgres service it will use journalctl to show last few lines of log, but the service name is wrong therefore the logs are empty. For example see https://github.com/supabase/postgres/actions/runs/27230790541/job/80420986600#step:12:161

What is the new behavior?

Correct systemd service name should give us logs next time we hit this.

This is used to get logs from journalctl but when the service name is
wrong there's nothing to report and thus is very unhelpful.
@mmlb mmlb requested review from a team as code owners June 10, 2026 17:27
@blacksmith-sh

This comment has been minimized.

@hunleyd

hunleyd commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

@claude review

OrioleDB can't start on such a small instance type due insufficient
memory. I chose t3.micro because it had same specs as t4g.micro which
hadn't been having any problems. Since then I have seen some arm64 test
failures too but did not have any logs from journalctl to debug, I would
not be surprised if arm is right at the edge of memory limits.
@mmlb mmlb changed the title testinfra: Use correct systemd service name for postgres testinfra: Fix InstanceType and startup error handling Jun 11, 2026
@blacksmith-sh

blacksmith-sh Bot commented Jun 11, 2026

Copy link
Copy Markdown

Found 50 test failures on Blacksmith runners:

Failures

Test View Logs
test_ami_nix/test_apparmor_allows_basic_sql_and_extensions View Logs
test_ami_nix/test_apparmor_allows_basic_sql_and_extensions View Logs
test_ami_nix/test_apparmor_allows_pg_dump View Logs
test_ami_nix/test_apparmor_allows_pg_dump View Logs
test_ami_nix/test_apparmor_allows_walg View Logs
test_ami_nix/test_apparmor_allows_walg View Logs
test_ami_nix/test_apparmor_blocks_disallowed_shell_commands View Logs
test_ami_nix/test_apparmor_blocks_disallowed_shell_commands View Logs
test_ami_nix/test_apparmor_denies_access_to_sensitive_paths View Logs
test_ami_nix/test_apparmor_denies_access_to_sensitive_paths View Logs
test_ami_nix/test_apparmor_permits_allowlisted_commands View Logs
test_ami_nix/test_apparmor_permits_allowlisted_commands View Logs
test_ami_nix/test_apparmor_postgresql_service_uses_profile View Logs
test_ami_nix/test_apparmor_postgresql_service_uses_profile View Logs
test_ami_nix/test_apparmor_sbpostgres_profile_enforced View Logs
test_ami_nix/test_apparmor_sbpostgres_profile_enforced View Logs
test_ami_nix/test_jit_pam_gatekeeper_profile View Logs
test_ami_nix/test_jit_pam_gatekeeper_profile View Logs
test_ami_nix/test_jit_pam_module_dependencies View Logs
test_ami_nix/test_jit_pam_module_dependencies View Logs
test_ami_nix/test_jit_pam_module_installed View Logs
test_ami_nix/test_jit_pam_module_installed View Logs
test_ami_nix/test_jit_pam_postgresql_integration View Logs
test_ami_nix/test_jit_pam_postgresql_integration View Logs
test_ami_nix/test_libpq5_version View Logs
test_ami_nix/test_libpq5_version View Logs
test_ami_nix/test_pam_postgresql_config View Logs
test_ami_nix/test_pam_postgresql_config View Logs
test_ami_nix/test_postgresql_version View Logs
test_ami_nix/test_postgresql_version View Logs
test_ami_nix/test_postgrest_can_connect_to_db View Logs
test_ami_nix/test_postgrest_can_connect_to_db View Logs
test_ami_nix/test_postgrest_ending_apikey_query_parameter_is_removed View Logs
test_ami_nix/test_postgrest_ending_apikey_query_parameter_is_removed View Logs
test_ami_nix/test_postgrest_ending_empty_key_query_parameter_is_removed View Logs
test_ami_nix/test_postgrest_ending_empty_key_query_parameter_is_removed View Logs
test_ami_nix/test_postgrest_is_running View Logs
test_ami_nix/test_postgrest_is_running View Logs
test_ami_nix/test_postgrest_middle_apikey_query_parameter_is_removed View Logs
test_ami_nix/test_postgrest_middle_apikey_query_parameter_is_removed View Logs
test_ami_nix/test_postgrest_middle_empty_key_query_parameter_is_removed View Logs
test_ami_nix/test_postgrest_middle_empty_key_query_parameter_is_removed View Logs
test_ami_nix/test_postgrest_read_only_session_attrs View Logs
test_ami_nix/test_postgrest_read_only_session_attrs View Logs
test_ami_nix/test_postgrest_responds_to_requests View Logs
test_ami_nix/test_postgrest_responds_to_requests View Logs
test_ami_nix/test_postgrest_starting_apikey_query_parameter_is_removed View Logs
test_ami_nix/test_postgrest_starting_apikey_query_parameter_is_removed View Logs
test_ami_nix/test_postgrest_starting_empty_key_query_parameter_is_removed View Logs
test_ami_nix/test_postgrest_starting_empty_key_query_parameter_is_removed View Logs

Fix in Cursor

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