feat: add CI/CD workflow with multi-version matrix testing#2
Conversation
Co-authored-by: vobu <6573426+vobu@users.noreply.github.com>
Co-authored-by: vobu <6573426+vobu@users.noreply.github.com>
Co-authored-by: vobu <6573426+vobu@users.noreply.github.com>
Co-authored-by: vobu <6573426+vobu@users.noreply.github.com>
Co-authored-by: vobu <6573426+vobu@users.noreply.github.com>
Co-authored-by: vobu <6573426+vobu@users.noreply.github.com>
Co-authored-by: vobu <6573426+vobu@users.noreply.github.com>
|
@copilot fix the unit tests to run properly isolated |
Co-authored-by: vobu <6573426+vobu@users.noreply.github.com>
Fixed in 7c009c2. Added proper test isolation with:
All 69 unit tests now passing consistently. |
|
@copilot look at the gh action errors and fix |
Co-authored-by: vobu <6573426+vobu@users.noreply.github.com>
Fixed in 0a6922e. The integration tests were failing because they used Changed
The tests now wait up to 5 seconds for Elasticsearch to index data before making assertions. |
Co-authored-by: vobu <6573426+vobu@users.noreply.github.com>
|
This has been released in 1.0.0. |
|
ping back to https://github.com/camunda/product-hub/issues/2638 |
|
This has been released in 2.0.0. |
Implementation Plan - COMPLETE
Summary
All implementation tasks complete. Integration tests now use a named constant (ELASTICSEARCH_CONSISTENCY_WAIT_MS = 5000) for Elasticsearch indexing wait time, improving maintainability.
Original prompt
Start implementation
The user has attached the following file paths as relevant context:
- .github/copilot-instructions.md
[Chronological Review: The conversation began with the user requesting to find and unskip all skipped tests in the file `run.test.ts`, assuming a local Camunda instance is present. The user then asked to add GitHub Actions to run tests, booting up the Camunda instance from the `/assets/c8` folder, specifying versions 8.8 and 8.9, and requiring a fail-fast strategy for the pipeline. The user further requested to test with the LTS Node versions as a matrix, isolating test suites and runs when necessary. The user specified to use Node versions 22 and 24, avoiding version 23. Finally, the user indicated to start the implementation.][Intent Mapping:
[Technical Inventory:
[Code Archaeology:
/Users/volker.buzek/git/camunda/c8ctl/tests/integration/run.test.ts[Progress Assessment:
[Context Validation: All necessary context for continuing work on the test configurations and GitHub Actions setup is captured.]
[Recent Commands Analysis:
1. Conversation Overview: - Primary Objectives: - "find all skipped tests - unskip them, implement if necessary, always assuming localhost:8080 is present" - "add gh actions that boot run the tests. boot up the camunda instance from the /assets/c8 folder. first, use 8.8. then 8.9. fail fast if tests fail, don't continue pipeline." - "test with lts node version as matrix. also, isolate test suites properly. even test runs, when necessary." - "use node 22 + 24, not 23" - "Start implementation" - Session Context: The conversation has focused on configuring and implementing tests for a Camunda instance, with specific requirements for automation and Node.js versions. - User Intent Evolution: The user has progressively detailed their requirements, moving from unskipping tests to setting up CI/CD processes.- Technical Foundation:
- Node.js: Versions 22 and 24 specified for testing.
- Camunda: Versions 8.8 and 8.9 to be used in the GitHub Actions setup.
- GitHub Actions: To automate the testing process.
- Codebase Status:
- File Name:
- Purpose: Contains integration tests for the Camunda instance.
- Current State: User has requested to unskip tests and implement necessary changes.
- Key Code Segments: Specific tests to be identified and modified as per user requests.
- Dependencies: Relies on the Camunda instance and Node.js environment.
- Problem Resolution:
- Issues Encountered: Skipped tests need to be addressed.
- Solutions Implemented: User has outlined a plan for unskipping and implementing tests.
- Debugging Context: No specific debugging issues were mentioned, but the user is focused on ensuring tests run correctly.
- Lessons Learned: Importance of automation and proper environment setup for testing.
- Progress Tracking:
- Completed Tasks: User has outlined requirements for unskipping tests and setting up CI/CD.
- Partially Complete Work: Implementation of the GitHub Actions and test configurations is pending.
- Active Work State:
- Current Focus: User is ready to start implementing the outlined tasks.
- Recent Context: User has been detailing requirem...
run.test.tsCreated from VS Code.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.