Skip to content

Python/SQLAlchemy: Stop testing experimental features - #1839

Closed
amotl wants to merge 1 commit into
crate:mainfrom
zerotired:sqlalchemy-non-experimental
Closed

Python/SQLAlchemy: Stop testing experimental features#1839
amotl wants to merge 1 commit into
crate:mainfrom
zerotired:sqlalchemy-non-experimental

Conversation

@amotl

@amotl amotl commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

About

To increase the stability of integration tests touched hereby, leave testing against the stale amo/postgresql-async development branch behind.

Details

amo/postgresql-async is a development branch, and it can no longer easily be refreshed. It is better to demonstrate only GA features anyway, and flag the experimental ones appropriately.

Reason

All those CI jobs are failing otherwise.

@coderabbitai

coderabbitai Bot commented Jun 19, 2026

Copy link
Copy Markdown

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.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 962fd6d3-4edb-45f6-b773-e197d8781abe

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

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

@amotl
amotl force-pushed the sqlalchemy-non-experimental branch 7 times, most recently from fe6ba02 to 7596d87 Compare June 20, 2026 08:24
Leave testing against `amo/postgresql-async` behind.

It's a development branch, and it can no longer easily be refreshed.
It is better to demonstrate only GA features anyway, and flag the
experimental ones appropriately.
@amotl
amotl force-pushed the sqlalchemy-non-experimental branch from 7596d87 to 0510214 Compare June 20, 2026 08:37
Comment on lines -3 to +6
crate>=2.1.2
crate>=2.1.2,<2.2
pandas>=2.3,<3.1
pueblo>=0.0.18
sqlalchemy-cratedb[all] @ git+https://github.com/crate-workbench/sqlalchemy-cratedb@amo/postgresql-async
sqlalchemy-cratedb[all]<0.43

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We will limit versions here for now, so that subsequent Dependabot submissions will show us when things might go south.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@amotl
amotl marked this pull request as ready for review June 20, 2026 08:42
@amotl

amotl commented Jun 20, 2026

Copy link
Copy Markdown
Contributor Author

@florinutz or @kneth: Can I humbly ask you to acknowledge and merge this, so that touched integration tests include less obstacles? It will help to sort out other details coming from recent package updates:

@kneth kneth left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could we enable the test when we wish to? For example, something like

@pytest.mark.skipif(
    os.getenv("ENABLE_EXPERIMENTAL") == None,
    "Experiemental feature")

@amotl

amotl commented Jun 23, 2026

Copy link
Copy Markdown
Contributor Author

Keep it but gate it?

Could we enable the test when we wish to?

The patch was meant to remove that reference to the development branch at git+https://github.com/crate-workbench/sqlalchemy-cratedb@amo/postgresql-async from the central requirements.txt file of this exercise, so Dependabot or Renovate can better drive its dependencies. Otherwise, the exercise is locked to a development branch, which is unfortunate for future maintainers, because it is adding additional complexity to decipher what's going on. Also, Dependabot or Renovate can't do anything about it, which slows down evolution and complicates quality assurance.

This patch is intended to clean and clear things up for the better.

pytest to the rescue?

For example, something like

@pytest.mark.skipif(
    os.getenv("ENABLE_EXPERIMENTAL") == None,
    "Experiemental feature")

cratedb-examples is not a traditional Python project. Each folder includes arbitrary projects of arbitrary kinds. In this spirit, traditional ways to cover experimental tests are mostly not much applicable.

In this case, because removing the smell is in the dependency definition file zone, such a way to wrap experimental features is also not feasible. Apologies!

@bgunebakan

Copy link
Copy Markdown
Contributor

Hi,
I saw your PR late. Yes it's a duplication, but We don't wanna downgrade sqlalchemy-cratedb versions because raised issues already fixed in repos. Examples are ready for new version change.
Thank you,

Bilal

@bgunebakan bgunebakan closed this Jun 25, 2026
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