Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: merge to master #3008

Merged
merged 8 commits into from
Jun 17, 2024
Merged

fix: merge to master #3008

merged 8 commits into from
Jun 17, 2024

Conversation

edoardo
Copy link
Member

@edoardo edoardo commented Jun 14, 2024

  1. fetch visualization always when caching (DHIS2-17509) fix: fetch visualization always when caching (DHIS2-17509) #2986
  2. use rich text component from analytics refactor: use rich text component from analytics #2474

dhis2-bot and others added 7 commits May 31, 2024 12:56
…in Cypress Cloud (#2984)

Implements DHIS2-17377

Conditional Recording Triggers:
Implemented conditional recording triggers via commit messages
and GitHub labels to ensure that Cypress tests are only recorded when necessary.

Parallel Execution Strategies: Refined parallel execution strategies to improve efficiency and
resolve test redundancies in GitHub Actions.
Debugging Enhancements: Added detailed debugging outputs to help track the dynamic values of
the test environment variables and ensure correct parameter passing in the workflow.

Manual Grouping of Tests:
In GitHub Actions, without specified test groups, all tests would run
in every parallel container, leading to unnecessary repetition. By organizing tests into
predefined groups, each group runs only once. This prevents redundancy and expedites the testing
process.

Why Not Rely on Cypress's Automatic Balancing? While Cypress automatically assigns tests to
machines to balance workload (more on Cypress load balancing), GitHub Actions requires explicit
distribution of tasks. This manual grouping ensures efficient resource usage and prevents multiple
executions of the same tests across different runners.

Benefits:
This approach allows precise control over test distribution, enhancing predictability
and efficiency. It reduces total execution time and operational costs by ensuring each test is run
precisely once across the available infrastructure.

This method optimises our use of GitHub Actions, ensuring a faster, cost-effective,
and efficient testing process.

Update Documentation:
Updated the documentation to reflect the changes and ensure clarity
on the new CI/CD processes.

Expected Outcomes:
Reduced Cypress Cloud Credit Usage: By optimising the conditions under which tests are recorded
and uploaded to Cypress Cloud, we anticipate a significant reduction in credit usage.

Increased CI Efficiency: With better management of parallel execution and conditional testing, the
CI process should be more efficient, leading to quicker test cycles.

---------

Co-authored-by: @dhis2-bot <apps@dhis2.org>
Co-authored-by: Jen Jones Arnesen <jennifer@dhis2.org>
* chore: run release step on tags so it publishes to d2-ci

* chore: do not run release step on dev branch
A previous fix for an item flashing issue caused the offline cache to
lack the request for the visualizations.
The fix looks at the recording state and triggers a fetch that can be
recorded.
@dhis2-bot
Copy link
Contributor

dhis2-bot commented Jun 14, 2024

🚀 Deployed on https://pr-3008--dhis2-dashboard.netlify.app

@dhis2-bot dhis2-bot temporarily deployed to netlify June 14, 2024 08:54 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify June 17, 2024 08:54 Inactive
@jenniferarnesen jenniferarnesen merged commit 29d8256 into master Jun 17, 2024
34 checks passed
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 100.2.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants