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

Integrate Custom Random Matrix Generation and Merge Ubuntu and Windows Workflows #1776

Merged
merged 21 commits into from
Jun 16, 2024

Conversation

BereKanters
Copy link
Contributor

This PR addresses issue #1460 by integrating a custom random matrix generation script and merging the Ubuntu and Windows workflows into a single CI workflow. This change aims to improve test coverage and CI resource efficiency.

  • Combined the Ubuntu and Windows workflows into a single ci.yml file.
  • Moved common steps, such as caching the Android jar and compiling, into a separate setup job to improve CI efficiency.
  • Updated the README file to reflect the new combined CI workflow badge.

I confirm that I have read the Contributor Agreements v1.0, agree to be bound on them and confirm that my contribution is compliant.

…ndows workflows

- Added a new CI workflow using vlsi/github-actions-random-matrix to generate a dynamic matrix for testing on both Ubuntu and Windows with JDK 8 and JDK 11.
- Merged existing build steps for Ubuntu and Windows into a single workflow file (ci.yml).
- Moved common steps, such as caching the Android jar and compiling, into a separate setup job to improve CI efficiency.
- Updated README.md to reflect the new combined CI workflow badge.
- Improved test coverage and reduced CI resource usage by leveraging the matrix strategy.
@BereKanters BereKanters requested a review from robstoll as a code owner June 12, 2024 17:09
@BereKanters BereKanters changed the title ###Feature/Integrate Custom Random Matrix Generation and Merge Ubuntu and Windows Workflows Integrate Custom Random Matrix Generation and Merge Ubuntu and Windows Workflows Jun 12, 2024
Copy link

codecov bot commented Jun 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.73%. Comparing base (5a62bf6) to head (0fbadea).
Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #1776   +/-   ##
=========================================
  Coverage     92.73%   92.73%           
  Complexity      116      116           
=========================================
  Files           442      442           
  Lines          4941     4941           
  Branches        234      234           
=========================================
  Hits           4582     4582           
  Misses          312      312           
  Partials         47       47           
Flag Coverage Δ
current 92.45% <ø> (ø)
current_windows 91.49% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Owner

@robstoll robstoll left a comment

Choose a reason for hiding this comment

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

feature-random-matrix-ci.patch Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
renovate bot and others added 3 commits June 13, 2024 15:42
…d Windows workflows updated based on feedback

- Added custom matrix generation scripts (`matrix_builder.js` and `matrix.js`) to dynamically generate the matrix for CI jobs.
- Configured the GitHub Actions workflow (`ci.yml`) to use the custom matrix generator.
- Renamed the `setup` job to `dexer` and included the step to check if Atrium's -jvm.jar can be dexed.
@BereKanters BereKanters requested a review from robstoll June 14, 2024 20:28
.github/workflows/ci.yml Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
…Windows workflows based on given feedback

- Updated the `forwardCompatibility` job to run in parallel with `dexer` by removing the unnecessary dependency.
- Added `fetch-depth: 1` to all checkout steps for faster execution.
- Removed unnecessary Node.js setup step since Node.js is pre-installed on the runner.
- Updated the README file to reflect the new combined CI workflow badge.
- Removed patch file
@BereKanters BereKanters requested a review from robstoll June 14, 2024 23:08
.github/workflows/quality-assurance.yml Outdated Show resolved Hide resolved
.github/workflows/quality-assurance.yml Outdated Show resolved Hide resolved
- Updated distribution and java-version back to 'adopt' and '17'
@BereKanters BereKanters requested a review from robstoll June 15, 2024 21:50
Copy link
Owner

@robstoll robstoll left a comment

Choose a reason for hiding this comment

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

You have merge conflicts which means you need to rebase on main of Atrium, i.e. not on your local main -- add atrium as git remote add upstream https://github.com/robstoll/atrium and then git rebase upstream/main and resolve the conflicts. Let me know in case you need help with it

@@ -86,7 +84,7 @@ jobs:
run: ATRIUM_ANDROID_JAR="$PWD/android-jar-cache/android.jar" ./gradlew checkDexer

forwardCompatibility:
needs: [] #Not sure if it should be left empty or if it should contain generate-matrix
needs: []
Copy link
Owner

Choose a reason for hiding this comment

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

You could also remove the line entirely

BereKanters and others added 7 commits June 16, 2024 10:34
Copied samples from api-fluent:
  - CharSequenceToContainCheckerSamples.kt
  - CharSequenceToContainCreatorSamples.kt
  - CharSequenceToContainSearchBehaviourSamples.kt

- Transformed examples to the infix style.
- Linked corresponding functions in the KDOC via @sample.

- Updated regex patterns in CharSequenceToContainCreatorSamples to more complex patterns to differentiate them from simple value checks.
- Revised tests for `value`, `values`, `regex`, and `elementsOf` to use more complex regex patterns like "A(BC|C/DC)".
- Added @sample comments to ensure consistency with existing documentation and examples.
…ndows workflows

- Added a new CI workflow using vlsi/github-actions-random-matrix to generate a dynamic matrix for testing on both Ubuntu and Windows with JDK 8 and JDK 11.
- Merged existing build steps for Ubuntu and Windows into a single workflow file (ci.yml).
- Moved common steps, such as caching the Android jar and compiling, into a separate setup job to improve CI efficiency.
- Updated README.md to reflect the new combined CI workflow badge.
- Improved test coverage and reduced CI resource usage by leveraging the matrix strategy.
…d Windows workflows updated based on feedback

- Added custom matrix generation scripts (`matrix_builder.js` and `matrix.js`) to dynamically generate the matrix for CI jobs.
- Configured the GitHub Actions workflow (`ci.yml`) to use the custom matrix generator.
- Renamed the `setup` job to `dexer` and included the step to check if Atrium's -jvm.jar can be dexed.
…er` by removing the unnecessary dependency.

- Added `fetch-depth: 1` to all checkout steps for faster execution.
- Removed unnecessary Node.js setup step since Node.js is pre-installed on the runner.
- Updated the README file to reflect the new combined CI workflow badge.
- Removed patch file
- Updated distribution and java-version back to 'adopt' and '17'
- Removed Needs in forwardCompatibility
- Should have resolved conflicts and rebased on main of Atrium
…eature/random-matrix-ci

# Conflicts:
#	.github/workflows/quality-assurance.yml
@BereKanters
Copy link
Contributor Author

I have no clue what just happend, I did git rebase upstream/main (I already had the upstream set) afterwords asked me to resolve conflicts where I removed the build_windows file by using: 'git rm .github/workflows/build-windows.yml ' then added git add .github/workflows/quality-assurance.yml did git rebase --continue and then pushed but it seems it pushed all of that with it for some reason.

@BereKanters BereKanters requested a review from robstoll June 16, 2024 12:39
- Removed Needs in forwardCompatibility
- Reset to earliet commit.
@BereKanters
Copy link
Contributor Author

BereKanters commented Jun 16, 2024

Alright I went back to an older commit [28ff511] changed code on feedback and it should now be fixed

- Updated `matrix_builder.js` to ensure the `namePattern` is correctly set and used to generate meaningful names for the matrix rows.
- Configured `matrix.js` to set the `namePattern` for generating the matrix rows, ensuring the `name` field is populated.
- Updated `matrix.js` Axis contains:
'corretto', 'liberica', 'microsoft','temurin','zulu',
- Updated `matrix.js` Axis contains:
'corretto', 'liberica', 'microsoft','temurin','zulu',
robstoll
robstoll previously approved these changes Jun 16, 2024
@BereKanters BereKanters dismissed robstoll’s stale review June 16, 2024 14:39

The merge-base changed after approval.

@robstoll robstoll merged commit 9c560e9 into robstoll:main Jun 16, 2024
16 checks passed
@robstoll
Copy link
Owner

@BereKanters thanks for your second contribution. I missed that you changed the target branch just before I merged. We'll figure out if everything was as intended at a screen bigger than my mobile phone.

BereKanters added a commit to BereKanters/atrium that referenced this pull request Jun 16, 2024
…s Workflows (robstoll#1776)

* ###feature/Integrate random matrix generation and merge Ubuntu and Windows workflows

- Added a new CI workflow using vlsi/github-actions-random-matrix to generate a dynamic matrix for testing on both Ubuntu and Windows with JDK 11 and JDK 17
- Merged existing build steps for Ubuntu and Windows into a single workflow file.
@robstoll robstoll linked an issue Jun 16, 2024 that may be closed by this pull request
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.

Use random github matrix generation
2 participants