Skip to content

Duplicate CiEnvironment consistently - #363

Merged
luke-hill merged 10 commits into
mainfrom
ruby/include-ci-environment
Jul 27, 2026
Merged

Duplicate CiEnvironment consistently#363
luke-hill merged 10 commits into
mainfrom
ruby/include-ci-environment

Conversation

@mpkorstanje

@mpkorstanje mpkorstanje commented Jul 22, 2026

Copy link
Copy Markdown
Member

🤔 What's changed?

CiEnvironment.json was missing from Ruby (#364). Rebuild the process to ensure a similar mistake doesn't happen again.

This means:

  • Go: Copy CiEnvironment.json with Make
  • Java: Generate code as part of the normal build-test-publish lifecycle (no changes)
  • Javascript: Generate javascript/src/CiEnvironments.ts during pretest and prepublishOnly
  • Python: Copy CiEnvironment.json with Make
  • Ruby: Copy CiEnvironment.json with Make

Note that files copied or generated with Make are checked in. Files generated as part of a languages build process are not.

🏷️ What kind of change is this?

  • 🏦 Refactoring/debt/DX (improvement to code design, tooling, etc. without changing behaviour)
  • 🐛 Bug fix (non-breaking change which fixes a defect)

📋 Checklist:

  • I agree to respect and uphold the Cucumber Community Code of Conduct
  • I've changed the behaviour of the code
    • I have added/updated tests to cover my changes.
  • My change requires a change to the documentation.
    • I have updated the documentation accordingly.
  • Users should know about my change
    • I have added an entry to the "Unreleased" section of the CHANGELOG, linking to this pull request.

@mpkorstanje
mpkorstanje force-pushed the ruby/include-ci-environment branch from 2295528 to b2198c8 Compare July 22, 2026 10:12
@mpkorstanje
mpkorstanje force-pushed the ruby/include-ci-environment branch from 6e5b0d6 to a00c490 Compare July 22, 2026 10:27
Comment thread javascript/package.json
"lint": "biome check --error-on-warnings",
"postbuild": "node -e \"require('.')\"",
"generate-ci-environments-ts": "shx cat CiEnvironments.ts.header ../CiEnvironments.json > src/CiEnvironments.ts && biome check --fix --error-on-warnings src/CiEnvironments.ts"
"generate-ci-environments-ts": "shx cat CiEnvironments.ts.header ../CiEnvironments.json > src/CiEnvironments.ts && biome check --fix --error-on-warnings --vcs-use-ignore-file false src/CiEnvironments.ts"

@mpkorstanje mpkorstanje Jul 22, 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.

@davidjgoss would it make sense to do this during prepare operation instead? Then the file is generated on npm install and npm publish. It should be available during npm test.

@luke-hill luke-hill mentioned this pull request Jul 23, 2026
7 tasks
@luke-hill

Copy link
Copy Markdown
Contributor

@mpkorstanje I've merged in something which also fixes it (just for ruby), but also does some refactors. So there may be some minor conflicts as/when merging in

@mpkorstanje mpkorstanje changed the title ruby: Include missing CiEnvironment.json ci: Test if CiEnvironment is duplicated consistently Jul 23, 2026
@mpkorstanje mpkorstanje changed the title ci: Test if CiEnvironment is duplicated consistently Duplicated CiEnvironment consistently Jul 23, 2026
@mpkorstanje mpkorstanje changed the title Duplicated CiEnvironment consistently Duplicate CiEnvironment consistently Jul 23, 2026
@luke-hill
luke-hill merged commit 613c61f into main Jul 27, 2026
35 checks passed
@luke-hill
luke-hill deleted the ruby/include-ci-environment branch July 27, 2026 08:31
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.

2 participants