Skip to content

Уникальное имя временного файла в тесте НайтиФайлы - #1796

Open
sfaqer wants to merge 1 commit into
EvilBeaver:developfrom
sfaqer:tests/null-character-unique-temp-file
Open

sfaqer wants to merge 1 commit into
EvilBeaver:developfrom
sfaqer:tests/null-character-unique-temp-file

Conversation

@sfaqer

@sfaqer sfaqer commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Тест НайтиФайлы с нулевым символом создавал временный файл с именем по времени до секунды. Параллельные прогоны в общем TEMP могли перезаписать или удалить файл друг друга. Теперь имя содержит UUID.

Проверил тремя сериями по 8 параллельных процессов: до правки упали 5 из 24 прогонов, после прошли все 24 (72 теста). Падение в Jenkins.

Summary by CodeRabbit

  • Tests
    • Updated file naming in the null-character file-search test to use a unique identifier instead of a timestamp, making test runs less likely to overwrite or collide with one another.

@coderabbitai

coderabbitai Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e22c390f-f195-43b3-9c95-a1d20dc39a91
📥 Commits

Reviewing files that changed from the base of the PR and between 0ac407a and ddcf078.

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

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c4c13c7a-dc9c-4184-b5cd-c4881ecc88c3
📥 Commits

Reviewing files that changed from the base of the PR and between 40cd832 and 0ac407a.

📒 Files selected for processing: 1
  • tests/null-character-handling.os

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

📝 Walkthrough

The null-character test now uses a unique identifier when creating its test file, instead of using a timestamp.

Changes: Null-character test

Layer / File(s) Summary
Unique test filename
tests/null-character-handling.os
The test filename now uses a unique identifier instead of a timestamp.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~2 minutes

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 0ac40

The test-only filename change introduces no actionable merge-blocking risk.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "Уникальное имя временного файла в тесте НайтиФайлы" (unique temporary file name in the НайтиФайлы test) matches the single change in the changeset. The diff replaces a timestamp-based filen…
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "Уникальное имя временного файла в тесте НайтиФайлы" (unique temporary file name in the НайтиФайлы test) matches the single change in the changeset. The diff replaces a timestamp-based filename with a unique identifier in the null-character НайтиФайлы test, and the PR objectives confirm the same purpose: avoiding collisions between parallel runs sharing TEMP. The title is specific and names the affected test.

Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@sfaqer
sfaqer force-pushed the tests/null-character-unique-temp-file branch from 0ac407a to ddcf078 Compare October 23, 2026 13:08
@sonar-openbsl-ru-qa-bot

Copy link
Copy Markdown

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.

1 participant