Uploaded image for project: 'OCP Technical Release Team'
  1. OCP Technical Release Team
  2. TRT-2214

origin or OTE shouldn't permit BeforeAll/AfterAll blocks

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • None
    • Product / Portfolio Work
    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • None
    • None
    • None

      origin has its own execution layer over ginkgo, so some ginkgo concepts do not work as expected including BeforeAll/AfterAll, and even ginkgo.Serial.

      Hooks specifically don't work because each test is executed in its own process and we don't allow cross-testcase dependencies, these hooks effectively become *Each hooks.

      At a quick glance, we don't have access to the before/all nodes in ginkgo in our fork, but if we made it available we could alert users the unexpected behavior that could result.

       

      Context:

      https://redhat-internal.slack.com/archives/CBN38N3MW/p1753371020741049?thread_ts=1753198758.662069&cid=CBN38N3MW

       

              stbenjam Stephen Benjamin
              stbenjam Stephen Benjamin
              None
              None
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: