Skip to content

Conversation

@amotl
Copy link
Member

@amotl amotl commented Dec 16, 2025

@coderabbitai
Copy link

coderabbitai bot commented Dec 16, 2025

Important

Review skipped

Auto reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch re-enable-doctests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Traceback (most recent call last):
...
crate.client.exceptions.DigestNotFoundException: myfiles/041f06fd774092478d450774f5ba30c5da78acc8
crate.client.exceptions.DigestNotFoundException: DigestNotFoundException('myfiles/041f06fd774092478d450774f5ba30c5da78acc8')
Copy link
Member Author

@amotl amotl Dec 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI: That adjusts for an anomaly because new code now includes the class name into the serialized string representation. I've also reflected it within a changelog item now.

Traceback (most recent call last):
...
crate.client.exceptions.BlobLocationNotFoundException: locations/040f06fd774092478d450774f5ba30c5da78acc8
crate.client.exceptions.BlobLocationNotFoundException: BlobLocationNotFoundException('locations/040f06fd774092478d450774f5ba30c5da78acc8')
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dito.


def __str__(self):
return f"{self.__class__.__qualname__}('{self.table}/{self.digest})'"
return f"{self.__class__.__qualname__}('{self.table}/{self.digest}')"
Copy link
Member Author

@amotl amotl Dec 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI: That just fixes a little formatting typo discovered when re-enabling doctests.

Comment on lines -17 to 19
# Unit tests.
suite.addTest(makeSuite(CursorTest))
suite.addTest(makeSuite(HttpClientTest))
suite.addTest(makeSuite(KeepAliveClientTest))
suite.addTest(makeSuite(ThreadSafeHttpClientTest))
suite.addTest(makeSuite(ParamsTest))
suite.addTest(makeSuite(ConnectionTest))
suite.addTest(makeSuite(RetryOnTimeoutServerTest))
suite.addTest(makeSuite(RequestsCaBundleTest))
suite.addTest(makeSuite(TestUsernameSentAsHeader))
suite.addTest(makeSuite(TestCrateJsonEncoder))
suite.addTest(makeSuite(TestDefaultSchemaHeader))
suite.addTest(doctest.DocTestSuite("crate.client.connection"))
suite.addTest(doctest.DocTestSuite("crate.client.http"))
Copy link
Member Author

@amotl amotl Dec 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI: The omitted suites are covered by regular pytest test cases now. Thank you @surister!

@amotl amotl marked this pull request as ready for review December 16, 2025 22:20
Before:

  myfiles/041f06fd774092478d450774f5ba30c5da78acc8

After:

  DigestNotFoundException('myfiles/041f06fd774092478d450774f5ba30c5da78acc8')

This applies to both `DigestNotFoundException` and
`BlobLocationNotFoundException`.
It's usually nothing the end user is concerned with. However, on a
stable project, it certainly should be mentioned to indicate potential
flaws when packaging a project, but let's spare the details.
This is a library and not an application.
@amotl amotl force-pushed the re-enable-doctests branch from 0e517d4 to 20bd23d Compare December 16, 2025 23:12
@amotl amotl requested review from seut and surister December 16, 2025 23:20
"ruff<0.15",
"setuptools>=80.9.0",
"stopit<1.2",
"urllib3<2.4",
Copy link
Member Author

@amotl amotl Dec 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI: This can be removed after tackling #708.

Suggested change
"urllib3<2.4",

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@amotl amotl merged commit 3f2a785 into main Dec 18, 2025
33 of 36 checks passed
@amotl amotl deleted the re-enable-doctests branch December 18, 2025 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants