This instance will be upgraded to Heptapod 0.23.2 on 2021-08-05 at 11:00 UTC+2 (a few minutes of down time)

Commit 2db9f554 authored by Georges Racinet on mutations.racinet.fr's avatar Georges Racinet on mutations.racinet.fr
Browse files

Disable API branch constant time cache

GitLab 13.12 introduces a 30s inconditional cache of branches in
the REST API, which is on by default but can be controlled by
a feature flag. This explains the sudden need to asynchronicity
with a long timeout.

still, asynchronicity should be the rule because PostReceive is
handled by a sidekiq worker. It just happens that it's always was
nearly fast enough for tht tests to pass in practice. Perhaps we
will be able to run with more concurrency thanks to this in the
future.
parent 1b5517ec4c52
......@@ -296,7 +296,7 @@ class Heptapod:
# necessary if we want to listen to web hooks from these tests
# in GitLab v12.2.0, this is deprecated for ...from_web_hooks...
self.set_application_settings(
allow_local_requests_from_hooks_and_services="true")
allow_local_requests_from_web_hooks_and_services="true")
# Mercurial native projects (vcs_types='hg') arent allowed by
# default
......@@ -305,7 +305,9 @@ class Heptapod:
self.set_vcs_types_settings(['hg', 'git', 'hg_git'])
logger.info("Preparing feature flags.")
feature_flags = {}
feature_flags = dict(
api_caching_rate_limit_branches=False,
)
if native is not None:
feature_flags['hg_fully_native'] = native == 'full'
self.set_feature_flags(feature_flags)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment