Skip to content

[NA] [BE] fix: use correct dataset/prompt builders in RequiredPermissionsTest#5692

Merged
andrescrz merged 2 commits intomainfrom
aliakseivinahradau/NA-fix-required-permissions-tests
Mar 17, 2026
Merged

[NA] [BE] fix: use correct dataset/prompt builders in RequiredPermissionsTest#5692
andrescrz merged 2 commits intomainfrom
aliakseivinahradau/NA-fix-required-permissions-tests

Conversation

@LifeXplorer
Copy link
Contributor

@LifeXplorer LifeXplorer commented Mar 17, 2026

Details

Fix failing RequiredPermissionsTest tests in DatasetsResourceTest and PromptResourceTest.

How this broke: Semantic merge conflict between two PRs that touched different lines but had conflicting semantics:

Neither PR was broken individually. Git merged them cleanly (no textual conflicts), but manufacturePojo() now generates a random projectId that doesn't exist, causing 404 at entity creation before reaching the permission check.

Fix: Use buildDataset() / buildPrompt().build() helpers that null out projectId/projectName.

Change checklist

  • User facing
  • Documentation update

Issues

  • NA — test fix for broken main

Testing

  • DatasetsResourceTest$RequiredPermissionsTest — 4 tests (3 previously failing)
  • PromptResourceTest$RequiredPermissionsTest — 2 tests (2 previously failing)

Documentation

N/A

…sionsTest

RequiredPermissionsTest used factory.manufacturePojo() directly which
generates random projectId/projectName values. Since OPIK-4931 added
project resolution that returns 404 for non-existent projects, these
tests fail at dataset/prompt creation before reaching permission checks.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions github-actions bot added java Pull requests that update Java code Backend tests Including test files, or tests related like configuration. labels Mar 17, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Mar 17, 2026

Backend Tests - Unit Tests

1 464 tests  ±0   1 462 ✅ ±0   56s ⏱️ -1s
  175 suites ±0       2 💤 ±0 
  175 files   ±0       0 ❌ ±0 

Results for commit c947ea2. ± Comparison against base commit 9009203.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 17, 2026

Backend Tests - Integration Group 15

210 tests  ±0   208 ✅ ±0   2m 41s ⏱️ -12s
 20 suites ±0     2 💤 ±0 
 20 files   ±0     0 ❌ ±0 

Results for commit c947ea2. ± Comparison against base commit 9009203.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 17, 2026

Backend Tests - Integration Group 6

 27 files  ± 0   27 suites  ±0   2m 17s ⏱️ + 1m 0s
242 tests ± 0  241 ✅ + 2  1 💤 ±0  0 ❌  - 2 
242 runs  +45  241 ✅ +47  1 💤 ±0  0 ❌  - 2 

Results for commit c947ea2. ± Comparison against base commit 9009203.

♻️ This comment has been updated with latest results.

@LifeXplorer LifeXplorer marked this pull request as ready for review March 17, 2026 10:58
@LifeXplorer LifeXplorer requested a review from a team as a code owner March 17, 2026 10:58
@github-actions
Copy link
Contributor

github-actions bot commented Mar 17, 2026

Backend Tests - Integration Group 12

 36 files  ±0   36 suites  ±0   2m 41s ⏱️ +27s
213 tests ±0  211 ✅ ±0  2 💤 ±0  0 ❌ ±0 
213 runs  +9  211 ✅ +9  2 💤 ±0  0 ❌ ±0 

Results for commit c947ea2. ± Comparison against base commit 9009203.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 17, 2026

Backend Tests - Integration Group 5

108 tests  ±0   108 ✅ ±0   2m 28s ⏱️ +5s
 23 suites ±0     0 💤 ±0 
 23 files   ±0     0 ❌ ±0 

Results for commit c947ea2. ± Comparison against base commit 9009203.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 17, 2026

Backend Tests - Integration Group 11

139 tests  ±0   139 ✅ ±0   3m 1s ⏱️ +12s
 18 suites ±0     0 💤 ±0 
 18 files   ±0     0 ❌ ±0 

Results for commit c947ea2. ± Comparison against base commit 9009203.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 17, 2026

Backend Tests - Integration Group 16

 28 files  ±0   28 suites  ±0   3m 0s ⏱️ -11s
197 tests ±0  197 ✅ ±0  0 💤 ±0  0 ❌ ±0 
176 runs  +1  176 ✅ +1  0 💤 ±0  0 ❌ ±0 

Results for commit c947ea2. ± Comparison against base commit 9009203.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 17, 2026

Backend Tests - Integration Group 13

428 tests  ±0   428 ✅ ±0   4m 4s ⏱️ +2s
 18 suites ±0     0 💤 ±0 
 18 files   ±0     0 ❌ ±0 

Results for commit c947ea2. ± Comparison against base commit 9009203.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 17, 2026

Backend Tests - Integration Group 8

 23 files  ± 0   23 suites  ±0   4m 40s ⏱️ +5s
285 tests ± 0  285 ✅ ± 0  0 💤 ±0  0 ❌ ±0 
285 runs  +10  285 ✅ +10  0 💤 ±0  0 ❌ ±0 

Results for commit c947ea2. ± Comparison against base commit 9009203.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 17, 2026

Backend Tests - Integration Group 7

1 130 tests  ±0   1 130 ✅ ±0   6m 6s ⏱️ +23s
    6 suites ±0       0 💤 ±0 
    6 files   ±0       0 ❌ ±0 

Results for commit c947ea2. ± Comparison against base commit 9009203.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 17, 2026

Backend Tests - Integration Group 4

    5 files  ±    0      5 suites  ±0   3m 6s ⏱️ + 2m 53s
1 361 tests ±    0  1 361 ✅ ±    0  0 💤 ±0  0 ❌ ±0 
1 272 runs  +1 253  1 272 ✅ +1 253  0 💤 ±0  0 ❌ ±0 

Results for commit c947ea2. ± Comparison against base commit 9009203.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 17, 2026

Backend Tests - Integration Group 9

 23 files  ± 0   23 suites  ±0   8m 45s ⏱️ +26s
326 tests ± 0  323 ✅ ± 0  3 💤 ±0  0 ❌ ±0 
326 runs  +18  323 ✅ +18  3 💤 ±0  0 ❌ ±0 

Results for commit c947ea2. ± Comparison against base commit 9009203.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 17, 2026

Backend Tests - Integration Group 3

313 tests  ±0   313 ✅ ±0   9m 32s ⏱️ -16s
 29 suites ±0     0 💤 ±0 
 29 files   ±0     0 ❌ ±0 

Results for commit c947ea2. ± Comparison against base commit 9009203.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 17, 2026

Backend Tests - Integration Group 1

 24 files  ± 0   24 suites  ±0   11m 14s ⏱️ + 8m 40s
408 tests ± 0  408 ✅ + 3  0 💤 ±0  0 ❌  - 3 
408 runs  +74  408 ✅ +77  0 💤 ±0  0 ❌  - 3 

Results for commit c947ea2. ± Comparison against base commit 9009203.

♻️ This comment has been updated with latest results.

@LifeXplorer LifeXplorer requested a review from andrescrz March 17, 2026 11:04
@github-actions
Copy link
Contributor

Backend Tests - Integration Group 10

216 tests  ±0   216 ✅ ±0   9m 34s ⏱️ -7s
 27 suites ±0     0 💤 ±0 
 27 files   ±0     0 ❌ ±0 

Results for commit c947ea2. ± Comparison against base commit 9009203.

@github-actions
Copy link
Contributor

Backend Tests - Integration Group 14

210 tests  ±0   207 ✅ ±0   10m 3s ⏱️ -24s
 24 suites ±0     3 💤 ±0 
 24 files   ±0     0 ❌ ±0 

Results for commit c947ea2. ± Comparison against base commit 9009203.

@github-actions
Copy link
Contributor

TS SDK E2E Tests - Node 20

236 tests  ±0   234 ✅ ±0   16m 11s ⏱️ -2s
 25 suites ±0     2 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit c947ea2. ± Comparison against base commit 9009203.

@github-actions
Copy link
Contributor

TS SDK E2E Tests - Node 18

236 tests   234 ✅  15m 33s ⏱️
 25 suites    2 💤
  1 files      0 ❌

Results for commit c947ea2.

@github-actions
Copy link
Contributor

TS SDK E2E Tests - Node 22

236 tests  ±0   234 ✅ ±0   15m 24s ⏱️ - 1m 28s
 25 suites ±0     2 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit c947ea2. ± Comparison against base commit 9009203.

@github-actions
Copy link
Contributor

Python SDK E2E Tests Results (Python 3.10)

244 tests  ±0   242 ✅ ±0   8m 5s ⏱️ -11s
  1 suites ±0     2 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit c947ea2. ± Comparison against base commit 9009203.

This pull request removes 1 and adds 1 tests. Note that renamed tests count towards both.
tests.e2e.test_tracing ‑ test_opik_client__update_trace__happy_flow[None-None-None-None-019cfb81-62a3-7c0c-af95-2e2a47b0c5e2]
tests.e2e.test_tracing ‑ test_opik_client__update_trace__happy_flow[None-None-None-None-019cfb82-20f1-7181-b6cf-9e9fac02a650]

@github-actions
Copy link
Contributor

Backend Tests - Integration Group 2

259 tests  ±0   259 ✅ ±0   35m 38s ⏱️ +6s
 20 suites ±0     0 💤 ±0 
 20 files   ±0     0 ❌ ±0 

Results for commit c947ea2. ± Comparison against base commit 9009203.

@github-actions
Copy link
Contributor

Python SDK E2E Tests Results (Python 3.13)

244 tests  ±0   242 ✅ ±0   8m 29s ⏱️ +18s
  1 suites ±0     2 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit c947ea2. ± Comparison against base commit 9009203.

This pull request removes 1 and adds 1 tests. Note that renamed tests count towards both.
tests.e2e.test_tracing ‑ test_opik_client__update_trace__happy_flow[None-None-None-None-019cfb7b-f77d-7ab9-b744-459fe2bc4cc3]
tests.e2e.test_tracing ‑ test_opik_client__update_trace__happy_flow[None-None-None-None-019cfb83-1a84-74d6-951b-edf81262deea]

@github-actions
Copy link
Contributor

Python SDK E2E Tests Results (Python 3.14)

244 tests  ±0   242 ✅ ±0   8m 14s ⏱️ -4s
  1 suites ±0     2 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit c947ea2. ± Comparison against base commit 9009203.

This pull request removes 1 and adds 1 tests. Note that renamed tests count towards both.
tests.e2e.test_tracing ‑ test_opik_client__update_trace__happy_flow[None-None-None-None-019cfb7c-2c13-7e1a-a507-9d67f4e5fba7]
tests.e2e.test_tracing ‑ test_opik_client__update_trace__happy_flow[None-None-None-None-019cfb85-1d78-70df-8e86-08c3704487ec]

@github-actions
Copy link
Contributor

Python SDK E2E Tests Results (Python 3.11)

244 tests  ±0   242 ✅ ±0   8m 5s ⏱️ -2s
  1 suites ±0     2 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit c947ea2. ± Comparison against base commit 9009203.

This pull request removes 1 and adds 1 tests. Note that renamed tests count towards both.
tests.e2e.test_tracing ‑ test_opik_client__update_trace__happy_flow[None-None-None-None-019cfb7c-1ffd-7da5-9f5e-2d30029bd2a6]
tests.e2e.test_tracing ‑ test_opik_client__update_trace__happy_flow[None-None-None-None-019cfb85-7096-7431-a25e-493191cc40cd]

@github-actions
Copy link
Contributor

Python SDK E2E Tests Results (Python 3.12)

244 tests  ±0   242 ✅ ±0   8m 11s ⏱️ +4s
  1 suites ±0     2 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit c947ea2. ± Comparison against base commit 9009203.

This pull request removes 1 and adds 1 tests. Note that renamed tests count towards both.
tests.e2e.test_tracing ‑ test_opik_client__update_trace__happy_flow[None-None-None-None-019cfb7b-bba9-708b-b30d-65fb4dc862b9]
tests.e2e.test_tracing ‑ test_opik_client__update_trace__happy_flow[None-None-None-None-019cfb86-b7be-7341-96f4-68b73ffc0899]

@andrescrz andrescrz merged commit ed11f00 into main Mar 17, 2026
59 checks passed
@andrescrz andrescrz deleted the aliakseivinahradau/NA-fix-required-permissions-tests branch March 17, 2026 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backend java Pull requests that update Java code tests Including test files, or tests related like configuration.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants