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

chore(test): Update Minio config in tests #965

Merged
merged 1 commit into from Jun 2, 2022

Conversation

charithe
Copy link
Contributor

@charithe charithe commented Jun 2, 2022

The blob store tests have started failing because the new release of
Minio container is checking the data directory for IO-DIRECT access.
Switching to the default /data directory seems to fix this issue.

In addition, the healthcheck should be using the readiness probe instead
of the liveness probe because sometimes the server is not yet ready to
accept connections even if it is up.

Also reduces the parallelism in E2E test runs because lately they have
been failing -- possibly due to resource contention.

Signed-off-by: Charith Ellawala charith@cerbos.dev

The blob store tests have started failing because the new release of
Minio container is checking the data directory for IO-DIRECT access.
Switching to the default `/data` directory seems to fix this issue.

In addition, the healthcheck should be using the readiness probe instead
of the liveness probe because sometimes the server is not yet ready to
accept connections even if it is up.

Also reduces the parallelism in E2E test runs because lately they have
been failing -- possibly due to resource contention.

Signed-off-by: Charith Ellawala <charith@cerbos.dev>
@codecov-commenter
Copy link

Codecov Report

Merging #965 (1356720) into main (ca2bfb8) will increase coverage by 0.55%.
The diff coverage is 83.24%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #965      +/-   ##
==========================================
+ Coverage   54.47%   55.02%   +0.55%     
==========================================
  Files         106      106              
  Lines       11440    11636     +196     
==========================================
+ Hits         6232     6403     +171     
- Misses       4683     4704      +21     
- Partials      525      529       +4     
Impacted Files Coverage Δ
internal/engine/evaluator.go 76.07% <0.00%> (ø)
internal/engine/engine.go 65.44% <44.00%> (-7.48%) ⬇️
internal/storage/blob/tests.go 81.45% <80.64%> (-1.88%) ⬇️
internal/engine/ast.go 80.84% <90.97%> (+2.63%) ⬆️
client/client.go 52.49% <100.00%> (ø)
internal/audit/conf.go 70.27% <100.00%> (ø)
internal/audit/file/log.go 62.60% <100.00%> (+0.93%) ⬆️
internal/audit/local/collector.go 84.00% <100.00%> (+3.35%) ⬆️
internal/conditions/cel.go 79.01% <100.00%> (+4.76%) ⬆️
internal/engine/metrics.go 91.89% <100.00%> (+7.68%) ⬆️
... and 6 more

@charithe charithe merged commit 3fa5b03 into cerbos:main Jun 2, 2022
@charithe charithe deleted the chore/e2e-parallelism branch June 2, 2022 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants