apache / apache/beam

Consider running :test precommits in a hermetic environment

Open
#20,572 0 comments 0 reactions 0 assignees View on GitHub
P3 task tests
Dominant language
Java
Stars
8.7k
Forks
4.7k
Avg merge
1d 20h
Merged PRs (30d)
196

Description

:test tasks should generally just run unit tests or fast running tests that use an in-memory (or containerized) fake, but it can be tempting to write simple tests that leverage production cloud services, and not classify them as integration tests (e.g. BEAM-11363). We should have some automation to protect against this - we can run :test tasks in a hermetic environment in precommits.

One possible approach: use a docker container with networking disable (maybe re-use the Beam developer container BEAM-10891)

Imported from Jira [BEAM-11404](https://issues.apache.org/jira/browse/BEAM-11404). Original Jira may contain additional context.
Reported by: bhulette.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.