Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: steampipe hangs on schemas #5

Open
joverlee521 opened this issue Mar 12, 2024 · 3 comments
Open

CI: steampipe hangs on schemas #5

joverlee521 opened this issue Mar 12, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@joverlee521
Copy link
Contributor

joverlee521 commented Mar 12, 2024

I've gotten alerts of the CI failing after #4.
Seems like the CI jobs intermittently hangs on steampipe schemas:

They all had similar logs that show Waiting for Steampipe plugin schemas to be ready… until the job times out at GitHub Action's 6hr limit.

mkdir -p build
./steampipe-psql --quiet --no-psqlrc --no-align --tuples-only --set=ON_ERROR_STOP= < pathogen-workflows.sql > build/pathogen-workflows.json
Using PGHOST=localhost PGPORT=9193 PGUSER=steampipe PGDATABASE=steampipe
Steampipe Postgres service not available; starting it…
Steampipe service is running:

Database:

  Host(s):            127.0.0.1, ::1, localhost
  Port:               9193
  Database:           steampipe
  User:               steampipe
  Password:           ********* [use --show-password to reveal]
  Connection string:  postgres://[email protected]:9193/steampipe

Managing the Steampipe service:

  # Get status of the service
  steampipe service status

  # View database password for connecting from another machine
  steampipe service status --show-password

  # Restart the service
  steampipe service restart

  # Stop the service
  steampipe service stop

Waiting for Steampipe plugin schemas to be ready…
Waiting for Steampipe plugin schemas to be ready…
Waiting for Steampipe plugin schemas to be ready…
Waiting for Steampipe plugin schemas to be ready…
Waiting for Steampipe plugin schemas to be ready…
(...)
Error: The operation was canceled.
@joverlee521 joverlee521 added the bug Something isn't working label Mar 12, 2024
@joverlee521
Copy link
Contributor Author

Haven't seen this issue since a run on April 2, maybe it's no longer an issue 🤞

@joverlee521
Copy link
Contributor Author

Damn, I might have jinxed it (hanging workflow). I shouldn't have said anything.

@tsibley
Copy link
Member

tsibley commented Apr 18, 2024

Odd. As a workaround for now, we could impose a workflow/job timeout of 10 minutes? 20 minutes? or similar and not let things hang for 6 hours.

joverlee521 added a commit that referenced this issue Apr 19, 2024
Time out the step after 10 minutes to work around
#5

10 minutes seems reasonable since the entire workflow has been able to
complete in less than 4 minutes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants