Skip to content

Binary input java example#363

Merged
NicolasHuertas merged 6 commits intomainfrom
internship_binrayinput
Mar 3, 2025
Merged

Binary input java example#363
NicolasHuertas merged 6 commits intomainfrom
internship_binrayinput

Conversation

@NicolasHuertas
Copy link
Contributor

Binary Input Example

The goal of this example project is to test the performance of Engflow's remote execution and caching service based on the number of input binary files in the dependency graph. The project contains a genrule that generates a specified number of Java binaries for the genbinary Java library, which are then listed as dependencies in the main binary. The Main.java file loops through each generated class and calls its greetNum method.

How It Works

  1. Generation of Java Binaries:

    • The genrule in the BUILD file generates a specified number of Java classes (Hello1.java, Hello2.java, ..., HelloN.java).
    • Each generated class contains a greetNum method that prints a unique message.
  2. Main Class Execution:

    • The Main.java file in binaryinput dynamically loads each generated class using reflection.
    • It then invokes the greetNum method of each class, printing the corresponding message.

@anfelbar
Copy link
Collaborator

@NicolasHuertas we have fixed the issue with CI. Please, sync your branches with main.

NicolasHuertas and others added 2 commits December 19, 2024 22:32
Co-authored-by: Andrés Felipe Barco Santa <andres@engflow.com>
@anfelbar
Copy link
Collaborator

Thank you @NicolasHuertas for the changes. This is looking really good. Let's do a final change before acceptance.
Please, remove the python script leaving only the example. The script can be a second contribution, we will see. Remove references to the script too.

Copy link
Collaborator

@anfelbar anfelbar left a comment

Choose a reason for hiding this comment

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

LGTM
Let's wait for approval of @lfpino before merging

@anfelbar
Copy link
Collaborator

Friendly ping @lfpino

@anfelbar anfelbar changed the title [Internship] Binary Input Example Binary input java example Mar 3, 2025
@NicolasHuertas NicolasHuertas merged commit daa663e into main Mar 3, 2025
5 checks passed
@NicolasHuertas NicolasHuertas deleted the internship_binrayinput branch March 3, 2025 14:53
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.

2 participants