• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

zopefoundation / ZODB / 1016
76%
master: 84%

Build:
Build:
LAST BUILD BRANCH: 6.1
DEFAULT BRANCH: master
Ran 01 Apr 2020 03:52PM UTC
Jobs 1
Files 51
Run time 10s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1016

push

travis-ci

jmuchemb
<a href="https://github.com/zopefoundation/ZODB/commit/<a class=hub.com/zopefoundation/ZODB/commit/8d20f20440ff116cbf72b074df0538f9a5b0b8d6">8d20f2044<a href="https://github.com/zopefoundation/ZODB/commit/8d20f20440ff116cbf72b074df0538f9a5b0b8d6">&quot;&gt;mvccadapter: check if the last TID changed without invalidation

Since commit </a><a class="double-link" href="https://github.com/zopefoundation/ZODB/commit/<a class="double-link" href="https://github.com/zopefoundation/ZODB/commit/b5895a5c23309ff2dfe8fd853b838a0c5e349210">b5895a5c2</a>">b5895a5c2</a><a href="https://github.com/zopefoundation/ZODB/commit/8d20f20440ff116cbf72b074df0538f9a5b0b8d6"> (&quot;mvccadapter:
fix race with invalidations when starting a new transaction&quot;),
a ZEO test fails as follows:

    File &quot;src/ZEO/tests/drop_cache_rather_than_verify.txt&quot;, line 114, in drop_cache_rather_than_verify.txt
    Failed example:
        conn.root()[1].x
    Expected:
        6
    Got:
        1

Earlier in the test, the ZEO server is restarted and then another
client commits. When disconnected, the first client does not receive
invalidations anymore and the connection gets stuck in the past until
there&#39;s a new commit after it reconnected. It was possible to make the
test pass with the following patch:

--- a/src/ZEO/ClientStorage.py
+++ b/src/ZEO/ClientStorage.py
@@ -357,6 +357,7 @@ def notify_connected(self, conn, info):

         # invalidate our db cache
         if self._db is not None:
+            self._db.invalidate(self.lastTransaction(), ())
             self._db.invalidateCache()

         logger.info(&quot;%s %s to storage: %s&quot;,

Other implementations like NEO are probably affected the same way.

Rather than changing interfaces in a backward-incompatible way,
this commit revert to the original behaviour, and all the changes
that were done in existing tests are reverted.

6387 of 8572 relevant lines covered (74.51%)

0.75 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1016.1 01 Apr 2020 03:52PM UTC 0
74.51
Travis Job 1016.1
Source Files on build 1016
  • List 0
  • Changed 4
  • Source Changed 4
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #1016
  • 8d20f204 on github
  • Prev Build on issue290 (#967)
  • Next Build on issue290 (#1027)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc