[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
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

Bump rack and webrick versions #108

Merged
merged 7 commits into from
Aug 7, 2024
Merged

Bump rack and webrick versions #108

merged 7 commits into from
Aug 7, 2024

Conversation

stephenbinns
Copy link
Contributor

This prevents upgrades in upstream gems so isn't ideal

This prevents upgrades in upstream gems
que.gemspec Outdated Show resolved Hide resolved
Copy link
@Tabby Tabby left a comment

Choose a reason for hiding this comment

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

bin/que needs updating to use the new Rack 3.x API

que/bin/que

Lines 153 to 159 in 03ecfdc

Rack::Handler::WEBrick.run(
app,
Host: "0.0.0.0",
Port: options.metrics_port,
Logger: WEBrick::Log.new("/dev/null"),
AccessLog: [],
)

Needs to look more like the Rack 3.x branch of this: https://github.com/gocardless/gc-pubsub-consumer/blob/a31844ec04d31f20ccc1aa5b597c5f5c61898607/lib/gc_pubsub_consumer/metrics_exposer.rb#L54-L70

@Tabby
Copy link
Tabby commented Jul 23, 2024

This also suggests we're not testing that bin/que actually works in CI 🙃

We were also missing some dependencies so these have been added too.
We can load it for CI but for the benchmarking step we push a docker image
which can't be built without adding the token in. As this is a public repo
I'm not sure we want to add it in.
We need to establish a connection to the database manually
@stephenbinns
Copy link
Contributor Author
stephenbinns commented Aug 6, 2024

This also suggests we're not testing that bin/que actually works in CI 🙃

This should all be addressed now, bit of a pain but we now run bin/que in a CI step with the metrics enabled so should be testing enough for us to have confidence in the command

@stephenbinns stephenbinns requested a review from Tabby August 6, 2024 09:52
Copy link
@Tabby Tabby left a comment

Choose a reason for hiding this comment

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

Thanks for fixing that! Don't think it needed to maintain 2.x compatibility, but can't hurt :)

@stephenbinns stephenbinns merged commit 8519451 into master Aug 7, 2024
10 checks passed
@stephenbinns stephenbinns deleted the upgrade-rack-webrick branch August 7, 2024 10:45
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.

3 participants