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

Change RNG init offset #15

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
19 changes: 15 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,17 +111,27 @@ jobs:
export EUPHONIC_TOOLBOX=${{ env.EUPHONIC_TOOLBOX}}

./tools/run_gh_matlab.sh setup_and_run_euphonic_tests
#- name: Setup tmate
# if: ${{ failure() }}
# uses: mxschmitt/action-tmate@v3
- name: Setup tmate
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3
# if: always()
- name: Notify Jenkins failure
if: ${{ failure() }}
run: |
export turl="https://github.com/pace-neutrons/pace-integration/actions/runs/${{ github.run_id }}"
curl -L -X POST \
-H "Authorization: Bearer ${{ secrets.JENKINS_GH_TOKEN }}" \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
-d '{"state": "failure", "description": "Integration test failed", "target_url": "${{ env.turl }}", "context": "PACE_integration"}' \
${{ inputs.jenkins_url }}

notify_success:
if: ${{ inputs.jenkins_url != '' && inputs.jenkins_id != '' }}
needs: test
runs-on: ubuntu-latest
steps:
- name: Notify Jenkins pending
- name: Notify Jenkins success
run: |
export turl="https://github.com/pace-neutrons/pace-integration/actions/runs/${{ github.run_id }}"
curl -L -X POST \
Expand All @@ -130,3 +140,4 @@ jobs:
-H "X-GitHub-Api-Version: 2022-11-28" \
-d '{"state": "success", "description": "Integration test passed", "target_url": "${{ env.turl }}", "context": "PACE_integration"}' \
${{ inputs.jenkins_url }}

2 changes: 1 addition & 1 deletion EuphonicDisp2SqwTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function testQuartzCoherentCrystalDisp2sqwTobyfit(testCase, fitting_scale_pars)

% Resets the RNG - PR920 somehow reduced the number of rand
% calls before TobyFit was called putting the RNG out of sync
rand(1,20);
rand(1,21);

% Run simulation with resolution convolution
disp('Running disp2sqw_eval with resolution convolution');
Expand Down
Loading