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

Update/i18n workflow #559

Merged
merged 6 commits into from
Jun 6, 2024
Merged

Update/i18n workflow #559

merged 6 commits into from
Jun 6, 2024

Conversation

circlecube
Copy link
Member

Proposed changes

Earlier I assumed the hash was random and unique everytime the make-json command ran. Turns out I was wrong. I didn't dig in to determine what the parameters are for the hash, but tested locally and see that they remain consistent each run (even when i18n strings are added).

This simplifies the workflow and the json files can be updated without needing a rename command (which never worked in github runner).

I'm also removing the commit step since it wasn't working either, and I'm not sure we're quite ready for it anyway. I'm just having the workflow check if there are any file changes and if so failing and echo that the composer run i18n script should be run locally to update the files if there are changes, we can disregard for small releases, but should keep it updated as best we can and can look at updating it in the future to run the command and commit the files in a release branch.

This at least brings things to a better place than an i18n step that always fails with no clear direction.

I think once we get to a place where we are ready to update this to a reusable workflow file we can figure out the commit step.

Type of Change

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update (if none of the other choices apply)

Checklist

  • I have read the CONTRIBUTING doc
  • Linting and tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

@circlecube circlecube self-assigned this May 17, 2024
@circlecube
Copy link
Member Author

circlecube commented May 17, 2024

Also, I should note that I opened this PR against main so that the updated i18n workflow would trigger, but it was branched off release/2.8.0 so we shouldn't merge it until the release.

@circlecube
Copy link
Member Author

✅ i18n workflow passed as expected with no i18n file changes needed.

@circlecube
Copy link
Member Author

✅ Command fails as expected with i18n text string edits that are not reflected in the i18n files. I'll revert the string change.

Copy link

cypress bot commented May 17, 2024

1 flaky test on run #3698 ↗︎

0 329 29 0 Flakiness 1

Details:

composer bump
Project: HostGator Plugin Commit: 340d7b5637
Status: Passed Duration: 23:17 💡
Started: May 28, 2024 5:48 PM Ended: May 28, 2024 6:11 PM
Flakiness  vendor/newfold-labs/wp-module-ecommerce/tests/cypress/integration/Home/commerceHomePage.cy.js • 1 flaky test

View Output Video

Test Artifacts
Commerce Home Page- Next Steps > Verify Next steps when experience level is novice Test Replay Screenshots Video

Review all test suite changes for PR #559 ↗︎

Copy link

cypress bot commented May 17, 2024

1 flaky test on run #3707 ↗︎

0 325 23 0 Flakiness 1

Details:

Merge 340d7b5 into ca973aa...
Project: HostGator Plugin Commit: 20f91967e9 ℹ️
Status: Passed Duration: 22:32 💡
Started: May 28, 2024 5:48 PM Ended: May 28, 2024 6:11 PM
Flakiness  vendor/newfold-labs/wp-module-ecommerce/tests/cypress/integration/Home/commerceHomePage.cy.js • 1 flaky test

View Output Video

Test Artifacts
Commerce Home Page- Next Steps > Verify Next steps when experience level is novice Test Replay Screenshots Video

Review all test suite changes for PR #559 ↗︎

Copy link
Member

@wpscholar wpscholar left a comment

Choose a reason for hiding this comment

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

@circlecube This appears to have more than just I18N changes?

* main:
  update min wp version
@circlecube
Copy link
Member Author

@wpscholar Yes, It was started before the last release. I got it cleaned up merging main into this branch.

@circlecube circlecube requested a review from wpscholar June 6, 2024 17:29
@circlecube
Copy link
Member Author

The module updates in the composer file are just bumping the versions to what is installed and not updating the modules - they've already been updated main, just not bumped in the composer file

@circlecube circlecube merged commit 8655d86 into main Jun 6, 2024
23 checks passed
@circlecube circlecube deleted the update/i18n-workflow branch June 6, 2024 17:32
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