Skip to content
Snippets Groups Projects

Generate operators in CI

Merged CI requested to merge ci/77578 into main
All threads resolved!

Resolves #3 (closed).

Revamps our CI:

  • Search for all operators-(.*)\.toml files automatically.
  • Regenerate all operators from those files (deletes all generated code that was checked in).
  • Add a manually triggered job to create an MR with the new changes and freshly generated code.

This greatly simplifies the development process as now, the operators must not be generated locally by the developer (which can be a quite lengthy process).

The implementation might seem a little complicated at first. We (I) want to automatically collect all toml files instead of listing them in the CI YAML, so that anyone can add or remove toml files without any extra thinking. Therefore, we need to start a parent job that walks the directory and creates a child pipeline for the actual generation.

I am not sure why the CI produced different code from what was already in the repository (for those three changed files). This could be a determinism issue in the generator.

Edited by Daniel Bauer

Merge request reports

Pipeline #77696 passed

Pipeline passed for f4867170 on ci/77578

Approval is optional

Merged by Daniel BauerDaniel Bauer 6 days ago (Apr 4, 2025 9:38am UTC)

Merge details

Pipeline #77705 passed

Pipeline passed for a436c630 on main

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply