Skip to content

Conversation

@victorkstarkware
Copy link
Contributor

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@victorkstarkware victorkstarkware marked this pull request as ready for review January 7, 2026 15:17
Copy link
Collaborator

@Itay-Tsabary-Starkware Itay-Tsabary-Starkware left a comment

Choose a reason for hiding this comment

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

@Itay-Tsabary-Starkware made 2 comments.
Reviewable status: 0 of 5 files reviewed, 2 unresolved discussions (waiting on @victorkstarkware).


crates/apollo_infra/src/tests/mod.rs line 190 at r1 (raw file):

/// Each test that binds ports should use a different instance_index to get disjoint port ranges.
/// This is necessary because nextest runs each test in its own process, so a shared static
/// counter doesn't work - each process would start from the same base port.

Please let's be less specific regarding the test engine. Suggestion

This is necessary to allow running tests concurrently in different processes, which do not have a shared memory.

Also, please change /// (outward facing comment / doc) to // (inner comment).

Also 2: do we need the pub modifier here? Will pub(crate) work as well?

Code quote:

/// This is necessary because nextest runs each test in its own process, so a shared static
/// counter doesn't work - each process would start from the same base port.

crates/apollo_infra/src/tests/mod.rs line 191 at r1 (raw file):

/// This is necessary because nextest runs each test in its own process, so a shared static
/// counter doesn't work - each process would start from the same base port.
pub fn available_ports(instance_index: u16) -> AvailablePorts {

get_available_ports or available_ports_factory ?

Copy link
Collaborator

@Itay-Tsabary-Starkware Itay-Tsabary-Starkware left a comment

Choose a reason for hiding this comment

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

@Itay-Tsabary-Starkware made 1 comment.
Reviewable status: 0 of 5 files reviewed, 3 unresolved discussions (waiting on @victorkstarkware).


crates/apollo_infra/src/tests/remote_component_client_server_test.rs line 186 at r1 (raw file):

    let setup_value: ValueB = Felt::from(90);
    let mut ports = available_ports(1);

rename to available_ports throughout, following on the fn name change suggested above ^

Code quote:

ports

@victorkstarkware victorkstarkware force-pushed the 01-07-apollo_infra_concurrent_tests branch from 4205ac5 to adb77a1 Compare January 8, 2026 07:39
Copy link
Contributor Author

@victorkstarkware victorkstarkware left a comment

Choose a reason for hiding this comment

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

@victorkstarkware made 3 comments.
Reviewable status: 0 of 5 files reviewed, 3 unresolved discussions (waiting on @Itay-Tsabary-Starkware).


crates/apollo_infra/src/tests/mod.rs line 190 at r1 (raw file):

Previously, Itay-Tsabary-Starkware wrote…

Please let's be less specific regarding the test engine. Suggestion

This is necessary to allow running tests concurrently in different processes, which do not have a shared memory.

Also, please change /// (outward facing comment / doc) to // (inner comment).

Also 2: do we need the pub modifier here? Will pub(crate) work as well?

Done. And pub not really required - removed.


crates/apollo_infra/src/tests/mod.rs line 191 at r1 (raw file):

Previously, Itay-Tsabary-Starkware wrote…

get_available_ports or available_ports_factory ?

Done.


crates/apollo_infra/src/tests/remote_component_client_server_test.rs line 186 at r1 (raw file):

Previously, Itay-Tsabary-Starkware wrote…

rename to available_ports throughout, following on the fn name change suggested above ^

Done.

Copy link
Collaborator

@Itay-Tsabary-Starkware Itay-Tsabary-Starkware left a comment

Choose a reason for hiding this comment

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

:lgtm:

@Itay-Tsabary-Starkware reviewed 5 files and all commit messages, made 1 comment, and resolved 3 discussions.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @victorkstarkware).

@victorkstarkware victorkstarkware added this pull request to the merge queue Jan 8, 2026
Merged via the queue into main-v0.14.1-committer with commit f63119c Jan 8, 2026
15 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jan 9, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants