Skip to content

Download completion schema from 4C#135

Merged
rjoussen merged 2 commits into
4C-multiphysics:mainfrom
rjoussen:download-completion-schema-from-4C
May 30, 2026
Merged

Download completion schema from 4C#135
rjoussen merged 2 commits into
4C-multiphysics:mainfrom
rjoussen:download-completion-schema-from-4C

Conversation

@rjoussen

Copy link
Copy Markdown
Contributor

This downloads the completion schema nightly such that the fourcipp tests can run on it (after the first nightly update succeeded). Currently, I add an empty completion schema which should trigger an update tonight (following 4C-multiphysics/4C#2006). Afterwards, the tests in #134 should pass and can be merged.

Copilot AI review requested due to automatic review settings May 29, 2026 14:50
@rjoussen rjoussen self-assigned this May 29, 2026
@rjoussen rjoussen requested a review from davidrudlstorfer May 29, 2026 14:50

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Extends the existing nightly metadata/schema update workflow to also download the new 4C_schema_completion.json artifact from 4C, hash-compare it alongside the metadata and schema files, and commit any changes together. A placeholder 4C_schema_completion.json is added so the first nightly run has a baseline file to overwrite.

Changes:

  • Add a placeholder src/fourcipp/config/4C_schema_completion.json to be replaced by the first nightly update.
  • Download the clang18_build-completion-schema artifact from 4C in the nightly workflow and include it in the pre-commit formatting step.
  • Generalize the change-detection logic to compute hashes for metadata, schema, and completion schema files, and rename the job/env var (metadata_file_changedgenerated_files_changed) accordingly.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/fourcipp/config/4C_schema_completion.json Placeholder JSON seeded so the nightly workflow can overwrite it.
.github/workflows/update_4C_metadata_schema_file.yaml Adds completion-schema download, hashing, conditional move, and renames job/env var to reflect multiple generated files.

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

Comment thread src/fourcipp/config/4C_schema_completion.json

@davidrudlstorfer davidrudlstorfer left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for the changes and also thanks for improving the logic :)

@rjoussen rjoussen merged commit 0733cfe into 4C-multiphysics:main May 30, 2026
8 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.

3 participants