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

Remove parallel support #378

Merged
merged 4 commits into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ jobs:
with:
python-version: 3.12
auto-update-conda: true
mamba-version: "*"
channels: conda-forge,defaults
activate-environment: AST
environment-file: environment.yml
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/check-reproducibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ jobs:
with:
python-version: 3.12
auto-update-conda: true
mamba-version: "*"
channels: conda-forge,defaults
activate-environment: AST
environment-file: environment.yml
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/check-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ jobs:
with:
python-version: 3.12
auto-update-conda: true
mamba-version: "*"
channels: conda-forge,defaults
activate-environment: AST
environment-file: environment.yml
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/small-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ jobs:
with:
python-version: 3.12
auto-update-conda: true
mamba-version: "*"
channels: conda-forge,defaults
activate-environment: AST
environment-file: environment.yml
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ venv
**/*_explanation.txt
cache-small/
apache-maven-3.9.2/
results/local_repos.csv
machines.txt
.valid_merges
cache/
Expand Down
18 changes: 1 addition & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ conda env create -f environment.yml
conda activate AST
```

With mamba (faster https://github.com/mamba-org/mamba):
With mamba (faster <https://github.com/mamba-org/mamba>):

```bash
mamba env create -f environment.yml
Expand Down Expand Up @@ -101,12 +101,6 @@ The final result is found in `results/result_adjusted.csv`.
Directory `results/merges` contains all the merges for each repo.
Directory `results/merges_tested` contains all the merges that have been tested.

To execute `run_combined.sh` on multiple machines in parallel create a machine address list in `machines.txt` and run:

```bash
./src/scripts/utils/run_multiple_machines.sh main machines.txt <project_path_on_machine>
```

#### If `make small-test` fails

If `make small-test` fails in a branch that you wish to merge into the main
Expand Down Expand Up @@ -188,8 +182,6 @@ To run style checking run `make style`.

* repo.py -> Contains the Repo class which represents a repo.

* split_repos.py -> Splits the repos for parallel execution.

* write_head_hashes.py -> Writes the head hashes of all repos to a file.

* add_jacoco_gradle.py -> Adds jacoco to gradle projects.
Expand All @@ -202,14 +194,6 @@ To run style checking run `make style`.

* merge_tools/ -> Contains all the merge tools scripts.

* utils/

* run_remotely.sh -> Runs the full stack on a remote machine.

* run_multiple_machine.sh -> Runs the full stack on multiple remote machines.

* diff_statistics.py -> Various diff commands to compare the results of two merges.

* src/main/java/astmergeevaluation/FindMergeCommits.java -> Finds all merge commits in a repo.

* input_data/ -> Input data, which is a list of repositories; see its README.md.
Expand Down
4,073 changes: 0 additions & 4,073 deletions results/combined/local_repos.csv

This file was deleted.

158 changes: 0 additions & 158 deletions results/greatest_hits/local_repos.csv

This file was deleted.

3,978 changes: 0 additions & 3,978 deletions results/reaper/local_repos.csv

This file was deleted.

15 changes: 4 additions & 11 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -193,32 +193,25 @@ else
--n_merges "$total_merges"
fi

echo "run.sh: about to run split_repos.py"
python3 src/python/split_repos.py \
--repos_csv "$OUT_DIR/repos_head_passes.csv" \
--machine_id "$machine_id" \
--num_machines "$num_machines" \
--output_file "$OUT_DIR/local_repos.csv"

echo "run.sh: about to run split_repos.py"
echo "run.sh: about to run merge_analyzer.py"
python3 src/python/merge_analyzer.py \
--repos_head_passes_csv "$OUT_DIR/local_repos.csv" \
--repos_head_passes_csv "$OUT_DIR/repos_head_passes.csv" \
--merges_path "$OUT_DIR/merges_sampled/" \
--output_dir "$OUT_DIR/merges_analyzed/" \
--n_sampled_merges "$N_MERGES" \
--cache_dir "$CACHE_DIR"

echo "run.sh: about to run merge_tester.py"
python3 src/python/merge_tester.py \
--repos_head_passes_csv "$OUT_DIR/local_repos.csv" \
--repos_head_passes_csv "$OUT_DIR/repos_head_passes.csv" \
--merges_path "$OUT_DIR/merges_analyzed/" \
--output_dir "$OUT_DIR/merges_tested/" \
--cache_dir "$CACHE_DIR"

if [ "$no_timing" = false ]; then
echo "run.sh: about to run merge_runtime_measure.py"
python3 src/python/merge_runtime_measure.py \
--repos_head_passes_csv "$OUT_DIR/local_repos.csv" \
--repos_head_passes_csv "$OUT_DIR/repos_head_passes.csv" \
--merges "$OUT_DIR/merges_tested/" \
--output_dir "$OUT_DIR/merges_timed/" \
--n_sampled_timing 1 \
Expand Down
53 changes: 0 additions & 53 deletions src/scripts/utils/run_multiple_machines.sh

This file was deleted.

27 changes: 0 additions & 27 deletions src/scripts/utils/run_remotely.sh

This file was deleted.

5 changes: 0 additions & 5 deletions test/small-goal-files/local_repos.csv

This file was deleted.