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

Small refactors #350

Merged
merged 4 commits into from
Jul 8, 2024
Merged

Small refactors #350

merged 4 commits into from
Jul 8, 2024

Conversation

acouvreur
Copy link
Member

No description provided.

@github-actions github-actions bot added the provider Issue related to a provider label Jul 7, 2024
@acouvreur
Copy link
Member Author

So, the small refactors actually improves responsiveness a lot. Because now, Sablier is able to autoredirect on the first request without serving an intermediate waiting page if it's not needed.

This is why I'll need to change all tests to use healthcheck to delay the execution.

Because now the container check is so fast, we need to add a delay on which the container is considered started and healthy to have a proper waiting page.
@github-actions github-actions bot added reverse-proxy Reverse proxy integration related issue documentation Improvements or additions to documentation labels Jul 7, 2024
…mi:v1.5.0

This image simply retrieve the curl binary from curlimages/curl:8.8.0 to be able to add proper docker healthcheck commands.

Once this is merged with traefik/whoami, I'll update back to the original image.

See traefik/whoami#33
Copy link

sonarcloud bot commented Jul 7, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
3.3% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

@acouvreur acouvreur merged commit be7ace0 into beta Jul 8, 2024
17 of 18 checks passed
@acouvreur
Copy link
Member Author

🎉 This issue has been resolved in version 1.8.0-beta.9 🎉

The release is available on:

Your semantic-release bot 📦🚀

@acouvreur acouvreur deleted the small-refactors branch July 8, 2024 04:25
acouvreur added a commit that referenced this pull request Oct 2, 2024
…#350)

When an instance does not exist yet and needs to be started, its status is not assumed to be starting anymore.

Instead, the statue will be retrieved from the provider. This changes one thing, it's that you may be able to start and access your services instantly because they'll be instantly seen as ready.

With this change, you might want to make sure that your containers have a proper healthcheck used to determine when the application is able to process incoming requests.

* refactor: add interface guards

* refactor(providers): remove instance.State as a return value from Stop and Start

* test(e2e): add healthcheck on nginx container

Because now the container check is so fast, we need to add a delay on which the container is considered started and healthy to have a proper waiting page.

* fix(tests): using acouvreur/whoami:v1.10.2 instead of containous/whoami:v1.5.0

This image simply retrieve the curl binary from curlimages/curl:8.8.0 to be able to add proper docker healthcheck commands.

Once this is merged with traefik/whoami, I'll update back to the original image.

See traefik/whoami#33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation provider Issue related to a provider released on @beta reverse-proxy Reverse proxy integration related issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant