Skip to content

Conversation

@dorimedini-starkware
Copy link
Collaborator

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link
Collaborator Author

dorimedini-starkware commented Apr 19, 2025

@github-actions
Copy link

github-actions bot commented Apr 19, 2025

Artifacts upload workflows:

@dorimedini-starkware dorimedini-starkware force-pushed the 04-18-feat_apollo_starknet_os_program_add_command_to_dump_aggregator_program branch from c040f8d to d08a026 Compare April 19, 2025 17:27
@dorimedini-starkware dorimedini-starkware force-pushed the 04-19-feat_apollo_starknet_os_program_compile_programs_asynchronously branch from b5385b4 to 622d12c Compare April 19, 2025 17:27
@dorimedini-starkware dorimedini-starkware force-pushed the 04-18-feat_apollo_starknet_os_program_add_command_to_dump_aggregator_program branch from d08a026 to 3433e05 Compare April 22, 2025 13:12
@dorimedini-starkware dorimedini-starkware force-pushed the 04-19-feat_apollo_starknet_os_program_compile_programs_asynchronously branch from 622d12c to a136d27 Compare April 22, 2025 13:12
@dorimedini-starkware dorimedini-starkware force-pushed the 04-18-feat_apollo_starknet_os_program_add_command_to_dump_aggregator_program branch from 3433e05 to 9f38ec0 Compare April 23, 2025 14:45
@dorimedini-starkware dorimedini-starkware force-pushed the 04-19-feat_apollo_starknet_os_program_compile_programs_asynchronously branch from a136d27 to 32cb04d Compare April 23, 2025 14:45
@dorimedini-starkware dorimedini-starkware force-pushed the 04-18-feat_apollo_starknet_os_program_add_command_to_dump_aggregator_program branch from 9f38ec0 to 0c77b10 Compare April 23, 2025 15:07
@dorimedini-starkware dorimedini-starkware force-pushed the 04-19-feat_apollo_starknet_os_program_compile_programs_asynchronously branch from 32cb04d to aff8f88 Compare April 23, 2025 15:07
@dorimedini-starkware dorimedini-starkware force-pushed the 04-19-feat_apollo_starknet_os_program_compile_programs_asynchronously branch from c2b6c01 to 662b2c5 Compare May 27, 2025 11:50
@dorimedini-starkware dorimedini-starkware force-pushed the 04-18-feat_apollo_starknet_os_program_add_command_to_dump_aggregator_program branch from 6b303d2 to 71f496a Compare May 27, 2025 20:52
@dorimedini-starkware dorimedini-starkware force-pushed the 04-19-feat_apollo_starknet_os_program_compile_programs_asynchronously branch from 662b2c5 to 8661ab4 Compare May 27, 2025 20:52
@dorimedini-starkware dorimedini-starkware force-pushed the 04-18-feat_apollo_starknet_os_program_add_command_to_dump_aggregator_program branch from 71f496a to b767ef3 Compare May 27, 2025 20:54
@dorimedini-starkware dorimedini-starkware force-pushed the 04-19-feat_apollo_starknet_os_program_compile_programs_asynchronously branch from 8661ab4 to ec5bbc7 Compare May 27, 2025 20:54
@dorimedini-starkware dorimedini-starkware force-pushed the 04-18-feat_apollo_starknet_os_program_add_command_to_dump_aggregator_program branch from b767ef3 to 090dda3 Compare May 28, 2025 09:02
@dorimedini-starkware dorimedini-starkware force-pushed the 04-19-feat_apollo_starknet_os_program_compile_programs_asynchronously branch from ec5bbc7 to 42908ca Compare May 28, 2025 09:02
@dorimedini-starkware dorimedini-starkware force-pushed the 04-18-feat_apollo_starknet_os_program_add_command_to_dump_aggregator_program branch from 090dda3 to d6cae49 Compare May 28, 2025 15:06
@dorimedini-starkware dorimedini-starkware force-pushed the 04-19-feat_apollo_starknet_os_program_compile_programs_asynchronously branch from 42908ca to e05feb2 Compare May 28, 2025 15:07
@dorimedini-starkware dorimedini-starkware self-assigned this Jun 3, 2025
@dorimedini-starkware dorimedini-starkware marked this pull request as ready for review June 3, 2025 07:46
@dorimedini-starkware dorimedini-starkware force-pushed the 04-18-feat_apollo_starknet_os_program_add_command_to_dump_aggregator_program branch from d6cae49 to 1d5a7c9 Compare June 3, 2025 07:48
@dorimedini-starkware dorimedini-starkware force-pushed the 04-19-feat_apollo_starknet_os_program_compile_programs_asynchronously branch 2 times, most recently from 49c095f to 34f9837 Compare June 3, 2025 09:22
@dorimedini-starkware dorimedini-starkware changed the base branch from 04-18-feat_apollo_starknet_os_program_add_command_to_dump_aggregator_program to main-v0.14.0 June 3, 2025 09:22
@dorimedini-starkware dorimedini-starkware force-pushed the 04-19-feat_apollo_starknet_os_program_compile_programs_asynchronously branch from 34f9837 to cb73d6f Compare June 3, 2025 15:32
Copy link
Contributor

@TzahiTaub TzahiTaub left a comment

Choose a reason for hiding this comment

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

Reviewed 5 of 5 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @dorimedini-starkware)


crates/apollo_starknet_os_program/build/main.rs line 20 at r2 (raw file):

    task_set.spawn(compile_program::compile_and_output_program(
        out_dir.clone(),
        "starkware/starknet/core/os/os.cairo",

Please const the OS and Agg paths.
Lat on - I think we should have an enum with methods for the OS and Aggregator with all const data (that will also replace the ProgramToDump enum in the cli).

Code quote:

"starkware/starknet/core/os/os.cairo",

Copy link
Collaborator Author

@dorimedini-starkware dorimedini-starkware left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @TzahiTaub)


crates/apollo_starknet_os_program/build/main.rs line 20 at r2 (raw file):

Previously, TzahiTaub (Tzahi) wrote…

Please const the OS and Agg paths.
Lat on - I think we should have an enum with methods for the OS and Aggregator with all const data (that will also replace the ProgramToDump enum in the cli).

this is the build script - so we can't use objects from here in external crates, and we can't use constants defined in the crate's lib.rs and it's imports.
a workaround is to define a paths.rs file with just string const definitions, declare it in lib.rs, and "paste" it here in the build script with include_str!; e.g. what we do here. Is that what you meant? or do you have another idea?

@dorimedini-starkware dorimedini-starkware force-pushed the 04-19-feat_apollo_starknet_os_program_compile_programs_asynchronously branch from cb73d6f to db02f56 Compare June 4, 2025 14:10
Copy link
Contributor

@TzahiTaub TzahiTaub left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r3, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @dorimedini-starkware)


crates/apollo_starknet_os_program/build/main.rs line 20 at r2 (raw file):

Previously, dorimedini-starkware wrote…

this is the build script - so we can't use objects from here in external crates, and we can't use constants defined in the crate's lib.rs and it's imports.
a workaround is to define a paths.rs file with just string const definitions, declare it in lib.rs, and "paste" it here in the build script with include_str!; e.g. what we do here. Is that what you meant? or do you have another idea?

Nope, wasn't familiar with it, no need to make a const file. I do think you should const the paths in this file to appear in the head of the file.
BTW, the script has no rerun-if trigger which means it will be rerun for every change. Better aim it to the internal starknet dir.

Copy link
Collaborator Author

@dorimedini-starkware dorimedini-starkware left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @TzahiTaub)


crates/apollo_starknet_os_program/build/main.rs line 20 at r2 (raw file):

Previously, TzahiTaub (Tzahi) wrote…

Nope, wasn't familiar with it, no need to make a const file. I do think you should const the paths in this file to appear in the head of the file.
BTW, the script has no rerun-if trigger which means it will be rerun for every change. Better aim it to the internal starknet dir.

I think it should rerun on every change in the crate; if you change the recompilation logic you would also want to recompile, right?

@dorimedini-starkware dorimedini-starkware added this pull request to the merge queue Jun 5, 2025
Merged via the queue into main-v0.14.0 with commit 6f6826e Jun 5, 2025
24 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jun 7, 2025
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