-
Notifications
You must be signed in to change notification settings - Fork 567
Add in-repo Complement test to sanity check Synapse version matches git checkout #19476
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
Changes from 13 commits
e1587cc
59df0d6
49d2d27
ce1ae57
5189af9
77ed60f
991ab59
639402b
29029e5
5293622
bc2c676
aef8a88
b58aab6
6ce2ca2
5d1a25f
4b33f3f
e8c5bad
944611c
ddfbbf8
b7bd4be
c7cb45d
107066c
0b5cb91
3f7f4f5
b1a651e
f2c92ec
7bdc821
296ba32
957d5c3
c28cd6c
7b199ab
5dd4805
4109f09
c5c5465
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -707,28 +707,28 @@ jobs: | |
| cache-dependency-path: complement/go.sum | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This PR is purposely not up to date with the
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. lol, trying to get this new test to fail in CI but it looks like GitHub Versus the previous GitHub Looks like this was reverted in actions/runner-images#13708 |
||
| go-version-file: complement/go.mod | ||
|
|
||
| - name: Run Complement Tests | ||
| id: run_complement_tests | ||
| # -p=1: We're using `-p 1` to force the test packages to run serially as GHA boxes | ||
| # are underpowered and don't like running tons of Synapse instances at once. | ||
| # -json: Output JSON format so that gotestfmt can parse it. | ||
| # | ||
| # tee /tmp/gotest-complement.log: We tee the output to a file so that we can re-process it | ||
| # later on for better formatting with gotestfmt. But we still want the command | ||
| # to output to the terminal as it runs so we can see what's happening in | ||
| # real-time. | ||
| run: | | ||
| set -o pipefail | ||
| COMPLEMENT_DIR=`pwd`/complement synapse/scripts-dev/complement.sh -p 1 -json 2>&1 | tee /tmp/gotest-complement.log | ||
| shell: bash | ||
| env: | ||
| POSTGRES: ${{ (matrix.database == 'Postgres') && 1 || '' }} | ||
| WORKERS: ${{ (matrix.arrangement == 'workers') && 1 || '' }} | ||
|
|
||
| - name: Formatted Complement test logs | ||
| # Always run this step if we attempted to run the Complement tests. | ||
| if: always() && steps.run_complement_tests.outcome != 'skipped' | ||
| run: cat /tmp/gotest-complement.log | gotestfmt -hide "successful-downloads,empty-packages" | ||
| # - name: Run Complement Tests | ||
| # id: run_complement_tests | ||
| # # -p=1: We're using `-p 1` to force the test packages to run serially as GHA boxes | ||
| # # are underpowered and don't like running tons of Synapse instances at once. | ||
| # # -json: Output JSON format so that gotestfmt can parse it. | ||
| # # | ||
| # # tee /tmp/gotest-complement.log: We tee the output to a file so that we can re-process it | ||
| # # later on for better formatting with gotestfmt. But we still want the command | ||
| # # to output to the terminal as it runs so we can see what's happening in | ||
| # # real-time. | ||
| # run: | | ||
| # set -o pipefail | ||
| # COMPLEMENT_DIR=`pwd`/complement synapse/scripts-dev/complement.sh -p 1 -json 2>&1 | tee /tmp/gotest-complement.log | ||
| # shell: bash | ||
| # env: | ||
| # POSTGRES: ${{ (matrix.database == 'Postgres') && 1 || '' }} | ||
| # WORKERS: ${{ (matrix.arrangement == 'workers') && 1 || '' }} | ||
|
|
||
| # - name: Formatted Complement test logs | ||
| # # Always run this step if we attempted to run the Complement tests. | ||
| # if: always() && steps.run_complement_tests.outcome != 'skipped' | ||
| # run: cat /tmp/gotest-complement.log | gotestfmt -hide "successful-downloads,empty-packages" | ||
|
MadLittleMods marked this conversation as resolved.
Outdated
|
||
|
|
||
| - name: Run in-repo Complement Tests | ||
| id: run_in_repo_complement_tests | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Add in-repo Complement test to sanity check Synapse version matches git checkout (testing what we think we are). |
Uh oh!
There was an error while loading. Please reload this page.
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.
Putting this PR up for review to get help with the problem summarized in
#synapse-dev:matrix.org- also tracked in discussions on this PR: