Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/remove_parallel_support' into fu…
Browse files Browse the repository at this point in the history
…ll_timing_results
  • Loading branch information
benedikt-schesch committed Sep 27, 2024
2 parents d1518f0 + 7bf21c1 commit 5960c32
Show file tree
Hide file tree
Showing 13 changed files with 24 additions and 8,324 deletions.
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
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 Benedikt Schesch

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
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.

11 changes: 2 additions & 9 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -193,16 +193,9 @@ 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" \
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.

0 comments on commit 5960c32

Please sign in to comment.