Skip to content

Tests: LayerTest.test_dynamic_http_port is flaky #772

Closed as not planned
Closed as not planned

Description

@amotl

Problem

Because some spots of the test suite are flaky, after recent refactorings, we are now receiving this

tests/testing/test_layer.py:315: 

crate_layer = <crate.testing.layer.CrateLayer object at 0x103b1fac0>

    def num_cluster_nodes(crate_layer):
>       sql_uri = crate_layer.crate_servers[0] + "/_sql"
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E       IndexError: list index out of range

-- https://github.com/crate/crate-python/actions/runs/21165186634/job/60907808795?pr=771#step:6:162

Details

Apparently, the problem is mostly happening on macOS?

Image

Activity

  1. amotl commented on Jan 20, 2026

    @amotl
    Author
  2. changed the title [-]Tests: IndexError: list index out of range[/-] [+]Tests: `LayerTest.test_dynamic_http_port` is flaky[/+] on Feb 7, 2026
  3. amotl commented on Feb 7, 2026

    @amotl
    ContributorAuthor
  4. reopened this on Feb 7, 2026
  5. amotl commented on Mar 3, 2026

    @amotl
    ContributorAuthor

    We didn't observe this on CI recently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions