Skip to content

ci: support dynamic branch-aware documentation links in dashboard - #342

Merged
PiotrKorkus merged 12 commits into
eclipse-score:mainfrom
bgsw-contrib:feature/dashboard-branch-links
Sep 22, 2026
Merged

PiotrKorkus merged 12 commits into
eclipse-score:mainfrom
bgsw-contrib:feature/dashboard-branch-links

Conversation

@srinivasugithub

Copy link
Copy Markdown
Contributor

This PR resolves #221. It replaces the hardcoded '/main/' subpaths in external documentation links with dynamic branch references, and changes absolute status dashboard links in Sphinx docs to local relative paths so that the dashboard functions perfectly on other branches and Pull Requests (PRs).

@github-actions

Copy link
Copy Markdown

The created documentation from the pull request is available at: docu-html

@srinivasugithub srinivasugithub self-assigned this Sep 12, 2026
@srinivasugithub

Copy link
Copy Markdown
Contributor Author

Fixes #221

Copilot AI 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.

🟡 Changes recommended

Unresolved branch-link and documentation-link issues remain, along with requested test coverage.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Updates dashboard and documentation links to support branch- and PR-specific deployments instead of hardcoded main paths.

Changes:

  • Adds dynamic branch resolution to generated report links.
  • Updates report templates with branch-aware URLs.
  • Converts documentation dashboard links to relative paths.
File summaries
File Summary
scripts/tooling/cli/misc/html_report.py Resolves the branch for generated links; PR-head precedence and test coverage require updates.
scripts/tooling/cli/misc/assets/report_template.html Uses dynamic S-CORE documentation URLs.
docs/integration_process/reference.rst Uses a relative dashboard link.
docs/index.rst Uses a local dashboard link, but a hidden toctree entry still references main.
Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 3
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread docs/index.rst
Reference Integration workflow and health overview with links to
:doc:`Integration Process <integration_process/integration_process>` and
`Integration Status <https://eclipse-score.github.io/reference_integration/main/status_dashboard.html>`_.
`Integration Status <status_dashboard.html>`_.
Comment thread scripts/tooling/cli/misc/html_report.py Outdated
Comment on lines +132 to +133
# 1. Try GITHUB_REF_NAME environment variable (standard in GitHub Actions)
ref_name = os.environ.get("GITHUB_REF_NAME")
if token:
_enrich_with_compare_data(entries, token)

branch = _get_current_branch()

@PiotrKorkus PiotrKorkus 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.

Comment thread docs/index.rst

Modules <modules/index>
Verification Reports <verification_report/index>
Integration Status <https://eclipse-score.github.io/reference_integration/main/status_dashboard.html>

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.

keep the link at the top bar as before

- Update docs/index.rst toctree to use a relative path with the '#http://' dummy anchor hack to bypass Sphinx validation while maintaining local resolution.
- Modify _get_current_branch() in scripts/tooling/cli/misc/html_report.py to prefer GITHUB_HEAD_REF first to support pull_request_target workflows.
- Add GITHUB_HEAD_REF and GITHUB_REF_NAME branch-selection unit tests to scripts/tooling/tests/test_report.py.
Move the subprocess import to the top of the file to comply with standard PEP 8 import style and avoid nested/deferred imports in _get_current_branch().
Replace direct `stdout` and `stderr` PIPE redirection with `capture_output=True` in `subprocess.run` to comply with the pyupgrade / ruff ruleset.
Format a long assertion line to comply with the line-length limits (120 chars) specified in pyproject.toml.
Create docs/status_dashboard.rst and add it to the docs/index.rst toctree to resolve previous build validation issues while keeping a proper integration status link.
Add a blank line after the copyright header block to resolve a docutils markup syntax error and prevent the CI preflight documentation build from failing.
@PiotrKorkus
PiotrKorkus force-pushed the feature/dashboard-branch-links branch from fed9f5a to 7553116 Compare September 22, 2026 12:50
@PiotrKorkus
PiotrKorkus merged commit 8db060b into eclipse-score:main Sep 22, 2026
10 of 11 checks passed
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.

Module Integration Dashboard improvements

4 participants