yugabyte/yugabyte-db

[YSQL] Fix error creating a new directory when running full tests

Open

#23,811 建立於 2024年9月5日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)C (1,003 fork)batch import
area/ysqlgood first issuekind/bugpriority/low

倉庫指標

Star
 (8,229 star)
PR 合併指標
 (平均合併 17天 21小時) (30 天內合併 92 個 PR)

描述

Jira Link: DB-12712

Description

On jenkins, we run each test individually in a separate test process. However, running the full test suite using --ctest --run-java-tests does not do the same. This is problematic since some tests fail because they do not handle the fact that there can be multiple test cases in the same file.

This can lead to a failure in creating a new directory from the second test case. Perhaps, we can append a random string before creating a directory in tests.

Here are some example tests that demomstrate the issue

    - TestPgRegressContribPgTrgm.schedule(TestPgRegressContribPgTrgm.java:31)
    - TestPgRegressThirdPartyExtensionsPgaudit.schedule(TestPgRegressThirdPartyExtensionsPgaudit.java:43)
    - TestPgRegressContribPasswordCheck.schedule(TestPgRegressContribPasswordCheck.java:40)
    - TestPgRegressContribPostgresFdw.schedule(TestPgRegressContribPostgresFdw.java:31)
    - TestPgRegressContribHstore.schedule(TestPgRegressContribHstore.java:31)
    - TestPgRegressPgStatStatements.schedule(TestPgRegressPgStatStatements.java:22)
    - TestPgRegressIsolation.runIsolationRegressTest(TestPgRegressIsolation.java:39)
    - TestPgRegressThirdPartyExtensionsPgHintPlan.schedule(TestPgRegressThirdPartyExtensionsPgHintPlan.java:31)

Issue Type

kind/bug

Warning: Please confirm that this issue does not contain any sensitive information

  • I confirm this issue does not contain any sensitive information.

貢獻者指南