-
Notifications
You must be signed in to change notification settings - Fork 356
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
add search workflow run with condor + pegasus to github actions #3554
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: run small search using pegasus + condor | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.8 | ||
- name: install condor | ||
run: | | ||
wget -qO - https://research.cs.wisc.edu/htcondor/ubuntu/HTCondor-Release.gpg.key | sudo apt-key add - | ||
echo "deb http://research.cs.wisc.edu/htcondor/ubuntu/8.9/focal focal contrib" | sudo tee -a /etc/apt/sources.list | ||
echo "deb-src http://research.cs.wisc.edu/htcondor/ubuntu/8.9/focal focal contrib" | sudo tee -a /etc/apt/sources.list | ||
sudo apt-get update | ||
sudo apt-get install minihtcondor | ||
sudo systemctl start condor | ||
sudo systemctl enable condor | ||
- name: install pegasus | ||
run: | | ||
wget https://download.pegasus.isi.edu/pegasus/ubuntu/dists/bionic/main/binary-amd64/pegasus_4.9.3-1+ubuntu18_amd64.deb | ||
sudo apt install ./pegasus_4.9.3-1+ubuntu18_amd64.deb | ||
- run: sudo apt-get install *fftw3* intel-mkl* | ||
- name: Install pycbc | ||
run: | | ||
python -m pip install --upgrade pip setuptools | ||
pip install -r requirements.txt | ||
pip install . | ||
- name: retrieving frame data | ||
run: bash -e examples/search/get.sh | ||
- name: generating template bank | ||
run: bash -e examples/search/bank.sh | ||
- name: generating statistic files | ||
run: bash -e examples/search/stats.sh | ||
- name: generating workflow | ||
run: | | ||
cp examples/search/*.ini ./ | ||
bash -e examples/search/gen.sh | ||
cp *.gwf output/ | ||
- name: running workflow | ||
run: | | ||
condor_status | ||
cd output | ||
bash -e ../examples/search/submit.sh | ||
./status | ||
python ../examples/search/check_job.py | ||
- name: store log files | ||
if: always() | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: logs | ||
path: output/submitdir/work/**/*.out.001 | ||
- name: store result page | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: results | ||
path: html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@GarethDaviesGW Can you check this. I think this is equivalent, but don't understand why this was complicated previously?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure why this was over-complicated in this way - I don't see how this wouldn't work
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and the proposed solution looks correct as well (This was probably early on in my understanding of segmentlists)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem is that taking the length is actually wrong as it is a dict. It was meant to avoid the case where there is a single segment as there the numpy sum will return a numpy ndarray instead of a segment list..