From 3d8bf60186c8ac5361d5183d4f848a87abcb3951 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Thu, 16 Mar 2023 07:27:47 -0400 Subject: temp: collect information about sqlite journal_mode --- .github/workflows/testsuite.yml | 12 ++++++------ coverage/sqldata.py | 3 +++ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/testsuite.yml b/.github/workflows/testsuite.yml index e560325c..4af6e190 100644 --- a/.github/workflows/testsuite.yml +++ b/.github/workflows/testsuite.yml @@ -79,13 +79,13 @@ jobs: - name: "Run tox for ${{ matrix.python-version }}" run: | - python -m tox -- -rfsEX + python -m tox -- -rfsEX -n 0 --maxfail=1 - - name: "Retry tox for ${{ matrix.python-version }}" - if: failure() - run: | - # `exit 1` makes sure that the job remains red with flaky runs - python -m tox -- -rfsEX --lf -vvvvv && exit 1 + #- name: "Retry tox for ${{ matrix.python-version }}" + # if: failure() + # run: | + # # `exit 1` makes sure that the job remains red with flaky runs + # python -m tox -- -rfsEX --lf -vvvvv && exit 1 # This job aggregates test results. It's the required check for branch protection. # https://github.com/marketplace/actions/alls-green#why diff --git a/coverage/sqldata.py b/coverage/sqldata.py index 3e47b4d8..5c4690e6 100644 --- a/coverage/sqldata.py +++ b/coverage/sqldata.py @@ -1132,7 +1132,10 @@ class SqliteDb(AutoReprMixin): # This pragma makes writing faster. It disables rollbacks, but we never need them. # PyPy needs the .close() calls here, or sqlite gets twisted up: # https://bitbucket.org/pypy/pypy/issues/2872/default-isolation-mode-is-different-on + jmode0 = self.execute_one("pragma journal_mode") self.execute_void("pragma journal_mode=off") + jmode1 = self.execute_one("pragma journal_mode") + raise Exception(f"{sys.version.split()[0]}: {jmode0!r} -> {jmode1!r}") if self.execute_one("pragma journal_mode") != "off": # Some instances of Sqlite refuse to disable journal mode. # Switching to memory mode prevents journal files from being written, -- cgit v1.2.1