Skip to content

Fix paths#226

Merged
phracek merged 1 commit intomasterfrom
fix_paths
Mar 31, 2026
Merged

Fix paths#226
phracek merged 1 commit intomasterfrom
fix_paths

Conversation

@phracek
Copy link
Copy Markdown
Member

@phracek phracek commented Mar 31, 2026

Summary by CodeRabbit

  • Chores
    • Bumped image/release version to 0.8.11 across build and deployment configs.
    • Improved script startup robustness by ensuring directory changes fail fast, aligning internal paths for more reliable runs.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 31, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 4d0e6b2b-23a9-4165-be08-93aba36c2340

📥 Commits

Reviewing files that changed from the base of the PR and between 353dfb2 and 76e114a.

📒 Files selected for processing (6)
  • .github/workflows/build-and-push.yml
  • Dockerfile.daily-tests
  • Makefile
  • daily-tests/daily_tests/daily_nightly_tests_report.sh
  • daily-tests/daily_tests/show_logs.sh
  • run_nightly_tests.sh
✅ Files skipped from review due to trivial changes (4)
  • daily-tests/daily_tests/daily_nightly_tests_report.sh
  • Dockerfile.daily-tests
  • Makefile
  • .github/workflows/build-and-push.yml
🚧 Files skipped from review as they are similar to previous changes (1)
  • daily-tests/daily_tests/show_logs.sh

📝 Walkthrough

Walkthrough

Bumps the daily-tests image release from 0.8.10 → 0.8.11 in CI/build files and updates several scripts to use the corrected daily-tests/daily_tests working directory with explicit failure handling on cd.

Changes

Cohort / File(s) Summary
Version bump
.github/workflows/build-and-push.yml, Dockerfile.daily-tests, Makefile
Updated image/tag values and RELEASE_UPSTREAM from 0.8.100.8.11 for the daily-tests image build/push and local image build target.
Script working-dir / failure handling
daily-tests/daily_tests/daily_nightly_tests_report.sh, daily-tests/daily_tests/show_logs.sh, run_nightly_tests.sh
Changed cd targets to the daily-tests/daily_tests path (or added `

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Poem

🐰
Hopping through tags, I nudge a line,
From 0.8.10 to 0.8.11 — refined.
I fix the paths, I check the door,
If cd should fail, we exit, sure.
Builds hum on — a carrot for the CI store 🥕

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title 'Fix paths' is vague and generic, using non-descriptive language that doesn't clearly convey what paths were fixed or why. Use a more descriptive title such as 'Update Docker image tag and fix directory paths' to clarify the actual changes being made.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix_paths

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 and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (2)
daily-tests/daily_tests/daily_nightly_tests_report.sh (1)

5-5: ⚠️ Potential issue | 🔴 Critical

Critical: Directory name mismatch will cause script failure.

Line 5 changes directory to /root/ci-scripts/daily_tests (with underscore), but based on the file path structure (daily-tests/daily_tests/daily_nightly_tests_report.sh) and the relevant code snippet showing the correct path pattern as /root/ci-scripts/daily-tests/, the directory should be /root/ci-scripts/daily-tests (with hyphen).

This pre-existing bug will cause the script to fail or operate in the wrong directory, making the path corrections on lines 11 and 13 ineffective.

🔧 Proposed fix
-cd /root/ci-scripts/daily_tests
+cd /root/ci-scripts/daily-tests
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@daily-tests/daily_tests/daily_nightly_tests_report.sh` at line 5, The script
daily_nightly_tests_report.sh currently cds into the wrong directory string
(uses /root/ci-scripts/daily_tests with an underscore); update the cd target in
the cd command in daily_nightly_tests_report.sh to the correct path
/root/ci-scripts/daily-tests (hyphen) and verify any other occurrences in the
same script (references later around the path fixes on lines referenced in the
review) are changed consistently so subsequent path operations work from the
correct directory.
daily-tests/daily_tests/show_logs.sh (1)

5-5: ⚠️ Potential issue | 🔴 Critical

Critical: Directory name mismatch will cause script failure.

Line 5 changes directory to /root/ci-scripts/daily_tests (with underscore), but based on the file path structure (daily-tests/daily_tests/show_logs.sh) and the relevant code snippet showing /root/ci-scripts/daily-tests/daily_tests/download_logs.py, the correct directory should be /root/ci-scripts/daily-tests (with hyphen).

This pre-existing bug means the script will either fail at the cd command or operate in the wrong directory, causing line 14's path (./daily_tests/show_logs.py) to also fail.

🔧 Proposed fix
-cd /root/ci-scripts/daily_tests
+cd /root/ci-scripts/daily-tests
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@daily-tests/daily_tests/show_logs.sh` at line 5, The cd target in the
show_logs.sh script is incorrect: change the directory path used in the cd
command from /root/ci-scripts/daily_tests (underscore) to
/root/ci-scripts/daily-tests (hyphen) so subsequent commands like
./daily_tests/show_logs.py (referenced later in the script) run from the correct
location; update the cd line in show_logs.sh accordingly to match the repository
layout.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@daily-tests/daily_tests/daily_nightly_tests_report.sh`:
- Around line 11-13: Fix the base working directory so the relative paths to
daily_nightly_tests_report.py resolve: update the shell script's early cd
command (referenced around line 5) to "cd /root/ci-scripts/daily-tests" (ensure
the hyphen is present) so that the later invocations of "python3
./daily_tests/daily_nightly_tests_report.py" (the two occurrences shown)
correctly point to
/root/ci-scripts/daily-tests/daily_tests/daily_nightly_tests_report.py; verify
the change by running the script with and without the "$1" argument to confirm
both code paths locate the target file.

In `@daily-tests/daily_tests/show_logs.sh`:
- Line 14: Update the incorrect directory change on line 5 so subsequent
commands resolve: replace the existing cd command with cd
/root/ci-scripts/daily-tests (note the hyphen) so that the later invocation
python3 ./daily_tests/show_logs.py correctly points to
/root/ci-scripts/daily-tests/daily_tests/show_logs.py.

---

Outside diff comments:
In `@daily-tests/daily_tests/daily_nightly_tests_report.sh`:
- Line 5: The script daily_nightly_tests_report.sh currently cds into the wrong
directory string (uses /root/ci-scripts/daily_tests with an underscore); update
the cd target in the cd command in daily_nightly_tests_report.sh to the correct
path /root/ci-scripts/daily-tests (hyphen) and verify any other occurrences in
the same script (references later around the path fixes on lines referenced in
the review) are changed consistently so subsequent path operations work from the
correct directory.

In `@daily-tests/daily_tests/show_logs.sh`:
- Line 5: The cd target in the show_logs.sh script is incorrect: change the
directory path used in the cd command from /root/ci-scripts/daily_tests
(underscore) to /root/ci-scripts/daily-tests (hyphen) so subsequent commands
like ./daily_tests/show_logs.py (referenced later in the script) run from the
correct location; update the cd line in show_logs.sh accordingly to match the
repository layout.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 0fe498cc-61e0-401d-ad31-7786957c2457

📥 Commits

Reviewing files that changed from the base of the PR and between 4f80e99 and 353dfb2.

📒 Files selected for processing (5)
  • .github/workflows/build-and-push.yml
  • Dockerfile.daily-tests
  • Makefile
  • daily-tests/daily_tests/daily_nightly_tests_report.sh
  • daily-tests/daily_tests/show_logs.sh

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 31, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 35.50%. Comparing base (4f80e99) to head (76e114a).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #226   +/-   ##
=======================================
  Coverage   35.50%   35.50%           
=======================================
  Files           7        7           
  Lines        1011     1011           
=======================================
  Hits          359      359           
  Misses        652      652           
Flag Coverage Δ
daily-tests-unit 26.23% <ø> (ø)
ocp-stream-generator-unit 84.47% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
@phracek phracek merged commit 51e6765 into master Mar 31, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant