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

Separate TestRandomGenerator from utility_lib #25050

Merged
merged 7 commits into from
Jan 27, 2023

Conversation

ravenblackx
Copy link
Contributor

Commit Message: Separate TestRandomGenerator from utility_lib
Additional Description: This is a precursor cleanup to #24994. When adding stat() to Filesystem operations, the fake file system will need to keep track of file timestamps. As such, it needs access to a TimeSource to generate those timestamps, i.e. simulated_time_system.h. However, utility.h depends on the Memfile filesystem, and simulated_time_system depended on utility.h, so this creates a circular dependency. simulated_time_system only actually wants random numbers and thread_factory from utility.h, so separating TestRandomGenerator into its own library allows for a reduction in the dependency chain size and a solution to that otherwise-upcoming circular dependency.
Risk Level: None, this is test-only and no-op.
Testing: Test-only and no-op.
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: n/a

Signed-off-by: Raven Black <ravenblack@dropbox.com>
Signed-off-by: Raven Black <ravenblack@dropbox.com>
@ravenblackx
Copy link
Contributor Author

/retest

@repokitteh-read-only
Copy link

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #25050 (comment) was created by @ravenblackx.

see: more, trace.

@yanavlasov
Copy link
Contributor

Build failure seems legit

/wait

Signed-off-by: Raven Black <ravenblack@dropbox.com>
Signed-off-by: Raven Black <ravenblack@dropbox.com>
Signed-off-by: Raven Black <ravenblack@dropbox.com>
…y to include utility.h

Signed-off-by: Raven Black <ravenblack@dropbox.com>
(Past Windows breakage rollback.)

Signed-off-by: Raven Black <ravenblack@dropbox.com>
@pradeepcrao
Copy link
Contributor

LGTM

@RyanTheOptimist RyanTheOptimist merged commit 6fffa40 into envoyproxy:main Jan 27, 2023
@ravenblackx ravenblackx deleted the random_generator branch January 30, 2023 17:40
VishalDamgude pushed a commit to freshworks/envoy that referenced this pull request Feb 2, 2023
Commit Message: Separate TestRandomGenerator from utility_lib
Additional Description: This is a precursor cleanup to envoyproxy#24994. When adding stat() to Filesystem operations, the fake file system will need to keep track of file timestamps. As such, it needs access to a TimeSource to generate those timestamps, i.e. simulated_time_system.h. However, utility.h depends on the Memfile filesystem, and simulated_time_system depended on utility.h, so this creates a circular dependency. simulated_time_system only actually wants random numbers and thread_factory from utility.h, so separating TestRandomGenerator into its own library allows for a reduction in the dependency chain size and a solution to that otherwise-upcoming circular dependency.
Risk Level: None, this is test-only and no-op.
Testing: Test-only and no-op.
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: n/a

Signed-off-by: Raven Black <ravenblack@dropbox.com>
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.

4 participants