Skip to content

Fixes #5 Add a troubleshooting guide#6

Merged
Yuri05 merged 12 commits into
Open-Systems-Pharmacology:mainfrom
Yuri05:Troubleshooting
Feb 24, 2026
Merged

Fixes #5 Add a troubleshooting guide#6
Yuri05 merged 12 commits into
Open-Systems-Pharmacology:mainfrom
Yuri05:Troubleshooting

Conversation

@Yuri05

@Yuri05 Yuri05 commented Feb 23, 2026

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • Documentation

    • README: clearer steps, revised action link text, reminder to consult Troubleshooting, CSV empty-line warning, and TIPs for using relative paths for external models/qualifications
    • Added a comprehensive Troubleshooting guide with step-by-step recovery, validation checks, diagnostics, screenshots, and escalation guidance
  • Chores

    • PR branch names are now sanitized to remove invalid characters, improving PR creation reliability

Yuri05 and others added 8 commits February 23, 2026 15:33
…instructions (#116)

* Initial plan

* docs: improve troubleshooting guide and link from README

Co-authored-by: Yuri05 <25061876+Yuri05@users.noreply.github.com>

* docs: add troubleshooting intro sentence

Co-authored-by: Yuri05 <25061876+Yuri05@users.noreply.github.com>

* Update README.md

* Update Troubleshooting.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Yuri05 <25061876+Yuri05@users.noreply.github.com>
Co-authored-by: Juri Solodenko <Yuri05@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Feb 23, 2026

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

Adds documentation tips and a new Troubleshooting guide; updates two GitHub Actions workflows to sanitize matrix-provided repository names before creating PR branches.

Changes

Cohort / File(s) Summary
Documentation
README.md
Added CSV-empty-line warning, updated GitHub Action link text, added pointer to Troubleshooting.md, and introduced TIPs for referencing non-OSP repos with relative paths.
New guide
Troubleshooting.md
New step-by-step troubleshooting guide for report-generation workflows covering validation, reruns, logs, artifacts, cache clearing, and escalation; includes UI screenshots.
Workflows — PR branch sanitization
.github/workflows/create-evaluation_reports.yml, .github/workflows/create-qualification_reports.yml
Added a Bash "Sanitize repository name for branch" step that strips characters invalid in branch names and exposes repo_name; updated PR creation steps to use steps.sanitize.outputs.repo_name for branch names.

Sequence Diagram(s)

sequenceDiagram
    autonumber
    participant Matrix as Matrix Job
    participant Runner as GH Actions Runner
    participant Sanitize as Sanitize Step
    participant GitHubAPI as GitHub API (Create PR)
    Rect rgba(100,150,250,0.5)
    Matrix->>Runner: provide matrix['Repository name'] and run_number
    end
    Runner->>Sanitize: run bash to strip invalid chars -> outputs repo_name
    Sanitize-->>Runner: outputs.repo_name
    Runner->>GitHubAPI: create branch using outputs.repo_name + -run_number and open PR
    GitHubAPI-->>Runner: PR created / errors
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

  • Initial commit #1 — modifies the same create-qualification_reports.yml workflow to sanitize repository names used in PR branch creation.

Suggested reviewers

  • rwmcintosh
  • msevestre

Poem

🐰 I hopped through docs and YAML rows,
Stripped odd chars where wild branch-name grows,
A tip, a guide, a sanitize dance,
Retry your run, give logs a glance,
Hop—fix—PR—then onward we goes! 🥕

🚥 Pre-merge checks | ✅ 2
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title accurately describes the main change: adding a troubleshooting guide to address issue #5. It is concise, specific, and clearly communicates the primary purpose of the changeset.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (1)
Troubleshooting.md (1)

59-76: Normalize strong emphasis style to satisfy MD050.

markdownlint expects underscores for strong emphasis; switch **...** to __...__ in the flagged lines to match the configured style.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@Troubleshooting.md` around lines 59 - 76, Several strong-emphasis instances
use asterisks instead of the configured underscore style (MD050); find
occurrences like "**Explain Error**", "**Run workflow**", "**Create
qualification reports** and "**Create evaluation reports and projects**" and
replace the asterisk-based bold with underscore-based bold (e.g., **text** ->
__text__) so the document uses __Explain Error__, __Run workflow__, __Create
qualification reports__, etc.; ensure all remaining double-asterisk strong
emphasis in the provided snippet are converted to double-underscore equivalents
to satisfy markdownlint MD050.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@Troubleshooting.md`:
- Around line 7-62: The Markdown file Troubleshooting.md contains multiple <img>
tags missing alt attributes; update every <img ... src="..."> element (e.g., the
images with src values like f8a55fe8-97ad-4caa-99da-c00e57e8ca83,
1c7281b7-410a-40e5-8f28-2bcd5a898df8, f7583d97-2075-4395-b892-6d24a3afa76f,
8c619837-a1c0-4ebe-bae5-3c01771db2b7, 21128c32-d27f-4713-bceb-cfca9b51c288,
9d3eee4c-d267-4c7f-bd45-3507bcfd35c6, ccd37155-403e-4db3-aa02-f07611fb1597,
a1d2dcf9-bced-424c-bfdf-6144c1ac0f94) by adding concise descriptive alt text
(one short phrase per image describing the screenshot content, e.g., "GitHub
Actions workflow run button", "Validation workflow error list", "Artifact log
file path example"); ensure each <img> tag has an alt attribute and keep
descriptions brief and meaningful for screen readers.

---

Nitpick comments:
In `@Troubleshooting.md`:
- Around line 59-76: Several strong-emphasis instances use asterisks instead of
the configured underscore style (MD050); find occurrences like "**Explain
Error**", "**Run workflow**", "**Create qualification reports** and "**Create
evaluation reports and projects**" and replace the asterisk-based bold with
underscore-based bold (e.g., **text** -> __text__) so the document uses
__Explain Error__, __Run workflow__, __Create qualification reports__, etc.;
ensure all remaining double-asterisk strong emphasis in the provided snippet are
converted to double-underscore equivalents to satisfy markdownlint MD050.

ℹ️ Review info

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 7fb6e37 and 4edd4a1.

📒 Files selected for processing (2)
  • README.md
  • Troubleshooting.md

Comment thread Troubleshooting.md
@Yuri05 Yuri05 marked this pull request as draft February 23, 2026 19:57
@Yuri05 Yuri05 marked this pull request as ready for review February 23, 2026 20:08
Comment thread README.md
Comment on lines +59 to +60
> [!TIP]
> If the model repository does not come from _Open-Systems-Pharmacology_, enter it like this:<br> `../<GITHUB_ACCOUNT_NAME>/<REPOSITORY_NAME>` (e.g. `../Yuri05/7E3-Model`)

@Yuri05 Yuri05 Feb 23, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It really works like this (the GHA currently always uses the prefix https://github.com/Open-Systems-Pharmacology/ and with .. I can switch to another GitHub account (the same applies for the validate actions).

Image

Would be better of course to check if the repo name contains / and don't insert Open-Systems-Pharmacology - but I really don't want to modify everything again.

@Yuri05

Yuri05 commented Feb 23, 2026

Copy link
Copy Markdown
Member Author

Failing link checks can be ignored. The checks are made for the reports created by end users (which always live in separate folders) and fail for md files in the root folder of the repo.
Will fix it in the next life.
grafik

@Yuri05 Yuri05 marked this pull request as draft February 24, 2026 09:22
* Update create-evaluation_reports.yml

* Update create-qualification_reports.yml

* Update tools.csv
Comment on lines +123 to +134
- name: Sanitize repository name for branch
id: sanitize
shell: bash
run: |
# Remove characters that can make a branch name invalid
sanitized="$(printf '%s' "${{ matrix['Repository name'] }}" | tr -d './\\')"
echo "repo_name=$sanitized" >> "$GITHUB_OUTPUT"

- name: Create Pull Request
uses: peter-evans/create-pull-request@v8
with:
branch: ${{ matrix['Repository name'] }}-${{ github.run_number }}
branch: ${{ steps.sanitize.outputs.repo_name }}-${{ github.run_number }}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The branch name is built from the repo name.
If the repo comes from a local account (e.g. ../Yuri05/MyRepo) - we need to remove characters which are not allowed in a branch name (e.g. /)

Comment thread tools.csv

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Also updated the tools to the versions used in the last OSP release (12.2)

PavelBal
PavelBal previously approved these changes Feb 24, 2026
@Yuri05 Yuri05 marked this pull request as ready for review February 24, 2026 10:51

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.github/workflows/create-evaluation_reports.yml:
- Line 150: Remove the extra trailing blank line flagged by YAMLlint in the
create-evaluation_reports.yml workflow file so there are no consecutive blank
lines at the end of the file; open the create-evaluation_reports.yml content and
delete the redundant empty line (leaving a single trailing newline if needed) to
resolve the "too many blank lines" lint error.
- Around line 123-129: The sanitize step currently injects `${{
matrix['Repository name'] }}` directly into the shell, risking command
injection; change the job step with id "sanitize" to pass the repository name
via the step's env (e.g., set an env key like REPO_NAME: ${{ matrix['Repository
name'] }}) and then reference that env var inside the run script (use
"$REPO_NAME" when building the sanitized variable and when writing to
"$GITHUB_OUTPUT"); keep the same sanitization transform (printf ... | tr -d
'./\\') but operate on the env variable rather than the evaluated `${{ ... }}`
expression.

In @.github/workflows/create-qualification_reports.yml:
- Around line 122-128: The "Sanitize repository name for branch" step (id:
sanitize) is vulnerable because it interpolates ${{ matrix['Repository name'] }}
directly into the shell run; change the step to pass the matrix value via env
(e.g., REPO_NAME) and reference that env var inside the run to avoid shell
injection, then perform the same sanitization on the env var
(sanitized="$(printf '%s' "$REPO_NAME" | tr -d './\\')" ) and echo
"repo_name=$sanitized" >> "$GITHUB_OUTPUT"; update references to the sanitized
variable and keep the step id sanitize unchanged.

ℹ️ Review info

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between e16de17 and 509847c.

⛔ Files ignored due to path filters (1)
  • tools.csv is excluded by !**/*.csv
📒 Files selected for processing (2)
  • .github/workflows/create-evaluation_reports.yml
  • .github/workflows/create-qualification_reports.yml

Comment thread .github/workflows/create-evaluation_reports.yml
Comment thread .github/workflows/create-evaluation_reports.yml
Comment thread .github/workflows/create-qualification_reports.yml
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
@Yuri05 Yuri05 marked this pull request as draft February 24, 2026 11:00
@Yuri05 Yuri05 marked this pull request as ready for review February 24, 2026 11:57

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

♻️ Duplicate comments (1)
.github/workflows/create-evaluation_reports.yml (1)

152-152: ⚠️ Potential issue | 🟡 Minor

Remove the extra trailing blank line to satisfy YAMLlint.

Two consecutive blank lines at the end of the file trigger a YAMLlint too many blank lines (2 > 0) warning. Delete one of the trailing blank lines.

🧹 Proposed fix
 #        reviewers: ${{ github.actor }}
-
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.github/workflows/create-evaluation_reports.yml at line 152, The workflow
file create-evaluation_reports.yml ends with two consecutive blank lines causing
a YAMLlint "too many blank lines" error; open create-evaluation_reports.yml and
remove one of the trailing blank lines at the end so the file ends with only a
single newline (no extra empty line).
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Duplicate comments:
In @.github/workflows/create-evaluation_reports.yml:
- Line 152: The workflow file create-evaluation_reports.yml ends with two
consecutive blank lines causing a YAMLlint "too many blank lines" error; open
create-evaluation_reports.yml and remove one of the trailing blank lines at the
end so the file ends with only a single newline (no extra empty line).

ℹ️ Review info

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 509847c and e791e1c.

📒 Files selected for processing (2)
  • .github/workflows/create-evaluation_reports.yml
  • .github/workflows/create-qualification_reports.yml

@Yuri05 Yuri05 merged commit 0971ed7 into Open-Systems-Pharmacology:main Feb 24, 2026
5 of 8 checks passed
@Yuri05 Yuri05 deleted the Troubleshooting branch February 24, 2026 19:52
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.

4 participants