Skip to content

Commit

Permalink
#246: Add notes to make potential non-issue failures clear
Browse files Browse the repository at this point in the history
  • Loading branch information
MRichards99 committed Aug 11, 2021
1 parent 4957dd3 commit 4c41b71
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ Add a set up instructions describing how the reviewer should test the code

- [ ] Review code
- [ ] Check GitHub Actions build
- [ ] If `icatdb Generator Script Consistency Test` CI job fails, is this because of a
deliberate change made to the script to change generated data (which isn't
actually a problem) or is there an underlying issue with the changes made?
- [ ] Review changes to test coverage
- [ ] {more steps here}

Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -259,5 +259,11 @@ jobs:
run: mysqldump -picatdbuserpw -uicatdbuser --skip-comments icatdb > ~/generator_script_dump_master.sql

# Tests that the generator script produces the same data as is produced with master's version

# NOTE: If a delibrate change is made to the script that will change the data generated,
# the diff (and therefore this job) will fail. If this is the case, don't be alarmed.
# But, if you didn't mean to change the output of the script, there is likely a
# problem with the changes made that will make the generator script's data
# different to SciGateway preprod
- name: Diff SQL dumps
run: diff -s ~/generator_script_dump_master.sql ~/generator_script_dump_1.sql

0 comments on commit 4c41b71

Please sign in to comment.