Skip to content

feat: add CI STEP geometry export test workflow#59

Merged
wdconinc merged 9 commits into
mainfrom
copilot/add-ci-test-step-file-export
May 20, 2026
Merged

feat: add CI STEP geometry export test workflow#59
wdconinc merged 9 commits into
mainfrom
copilot/add-ci-test-step-file-export

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 20, 2026

Summary

  • add a reusable .github/workflows/convert-to-step.yml workflow that exports STEP geometry with npdet_to_step
  • use geometry from /opt/detector/epic-main and validate generated .stp files are non-empty
  • wire linux-eic-shell.yml to call the new workflow for a set of standard geometries after the build job
  • add explicit minimal permissions in the reusable workflow

Validation

  • attempted pre-change build/test: cmake -S . -B /tmp/npsim-precheck-build && cmake --build ... && ctest ... (fails early due missing DD4hepConfig.cmake in this environment)
  • parsed modified workflow YAML files successfully with Python/PyYAML
  • ran codeql_checker for GitHub Actions and resolved the reported permissions alert; re-run reports 0 alerts

Copilot AI and others added 2 commits May 20, 2026 02:03
Agent-Logs-Url: https://github.com/eic/npsim/sessions/c0678f12-df55-4bde-a156-5eb7f26367c8

Co-authored-by: wdconinc <4656391+wdconinc@users.noreply.github.com>
Agent-Logs-Url: https://github.com/eic/npsim/sessions/c0678f12-df55-4bde-a156-5eb7f26367c8

Co-authored-by: wdconinc <4656391+wdconinc@users.noreply.github.com>
Comment thread .github/workflows/convert-to-step.yml Dismissed
Comment thread .github/workflows/convert-to-step.yml Dismissed
Copilot AI requested a review from wdconinc May 20, 2026 02:05
The 'env' context is not available in 'with' inputs of a reusable
workflow call. Replace env.platform, env.release, and env.organization
with inline expressions using the 'inputs' context with hardcoded
defaults, which is the same fallback logic used in the env section.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Comment thread .github/workflows/linux-eic-shell.yml Outdated
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 20, 2026

Comment thread .github/workflows/linux-eic-shell.yml Outdated
@wdconinc wdconinc marked this pull request as ready for review May 20, 2026 03:54
Copilot AI review requested due to automatic review settings May 20, 2026 03:54
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a reusable GitHub Actions workflow to export EPIC detector geometries to STEP via npdet_to_step, and wires it into the existing linux-eic-shell CI pipeline to validate generated .stp outputs.

Changes:

  • Introduces reusable workflow .github/workflows/convert-to-step.yml to export STEP files and assert they’re non-empty.
  • Adds a new convert-to-step job in .github/workflows/linux-eic-shell.yml that calls the reusable workflow after the build job.
  • Sets explicit permissions in the reusable workflow.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.

File Description
.github/workflows/linux-eic-shell.yml Adds a post-build job that calls the reusable STEP-export workflow with a detector-config matrix.
.github/workflows/convert-to-step.yml New reusable workflow that downloads the install artifact, runs npdet_to_step in eic-shell, validates output, and uploads .stp artifacts.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/convert-to-step.yml
Comment thread .github/workflows/convert-to-step.yml
Comment thread .github/workflows/convert-to-step.yml
Comment thread .github/workflows/convert-to-step.yml
Comment thread .github/workflows/linux-eic-shell.yml
wdconinc and others added 3 commits May 19, 2026 23:12
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Comment thread .github/workflows/convert-to-step.yml Outdated
@wdconinc wdconinc changed the title Add CI STEP geometry export test workflow feat: add CI STEP geometry export test workflow May 20, 2026
@wdconinc wdconinc merged commit 5ac4ae7 into main May 20, 2026
38 checks passed
@wdconinc wdconinc deleted the copilot/add-ci-test-step-file-export branch May 20, 2026 12:19
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