-
Notifications
You must be signed in to change notification settings - Fork 2
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
[DEPR] bok-choy: remove supporting tooling & archive repo #13
Comments
PR to mark bok-choy as deprecated in its README and ReadTheDocs: openedx-unsupported/bok-choy#364 |
No concerns have been raised on the GitHub issue, the DEPR ticket in Jira, or the deprecation announcement on the forums, so Bok-Choy is now officially deprecated! A notice has been added to the repository's README and ReadTheDocs page (the ReadTheDocs notice may take some time to manifest). |
Big PR of bok-choy cruft removed from edx-platform: openedx/edx-platform#29813 |
@jmbowman what's left to do on this issue? |
Finish moving the e2e tests to Cypress, and look for any remaining usage in other repos that we may have overlooked in our first pass. I think the e2e switchover is very close to complete, but I'm not sure at the moment what the exact ETA is. |
@jmbowman just curious, any movement on the e2e switchover, or a relevant ticket we could link to this one? |
The e2e tests for edx.org have been switched over to using Cypress. I have seen usages of bok choy in credentials and ecommerce, but we can at least start looking into cleaning out some of edx-platform. |
Here are some github searches to see some current uses: Search code:
Search repo files, like:
Also in docs:
|
Bok-Choy has been deprecated since Feb 2022 (openedx/public-engineering#13). The docs were updated, but a new release was never pushed to PyPI, until now. Also in this commit: Update "Development Status" metadata field in setup.py to "7 - Inactive".
Updates:
Next steps:
|
Bok-Choy has been deprecated since Feb 2022 (openedx/public-engineering#13). The docs were updated, but a new release was never pushed to PyPI, until now. Also in this commit: Update "Development Status" metadata field in setup.py to "7 - Inactive".
@kdmccormick: I'm not sure what the refactor should be, but the bok_choy.yml file is used in the following github workflows:
|
@robrap as it turns out, that was actually what led me back to this DEPR ticket today 😄 I'm currently experimenting with replacing those with the minimal.yml files that @feanil recently introduced. What we really need is a broader configuration cleanup, but in the short term I'm hoping minimal.yml will do that trick. |
There is a team at 2U that is looking to convert the remaining bok-choy tests as well. We should be able to replace the usages of bok_choy.yml with minimal.yml. |
I've got to step away from this to focus on other work. As far as I know, these steps are what's needed to fully close out the DEPR: #13 (comment) |
@feanil What's the current status of this? Can it be moved into 'removed'? |
We've got one more cleanup PR left before we can fully remove bok-choy. The work is in progress now: openedx-unsupported/ecommerce#4093 |
@salman2013 I've archived the bok-choy and edx-custom-a11y-rules repos. There are still a bunch of mentions of bokchoy in the platform, can you review them and open PRs for any that should be cleaned up? https://github.com/search?q=org%3Aopenedx%20bokchoy&type=code Once that's done, I think we can close this. |
Some more references, from the various spellings of bok-choy "bok-choy": https://github.com/search?q=org%3Aopenedx+%22bok-choy%22&type=code "bok choy": https://github.com/search?q=org%3Aopenedx+%22bok+choy%22&type=code "bok_choy": https://github.com/search?q=org%3Aopenedx+%22bok_choy%22&type=code |
@salman2013 can you take a look at the searches that Kyle provided and clean those up as well? |
@kdmccormick These search result are found in release notes so I leave them intentionally. Could you please check if this should also be removed then i can do that. |
Thanks @salman2013 . I'll take a look at the edx-platform, feedbackblock, and registrar PRs.
Leaving those there is the right thing to do 👍🏻 |
I had a question on the FeedbackXBlock Pr but everything else is merged. |
Here is a 2U specific search, but one that other orgs can use if they want to remove their own bokchoy references. It uses 4 versions of the term found above: |
Or if you want to be really thorough, GitHub search now supports regular expressions like |
This package was only used by bok-choy which was archived a while ago. We just missed the fact that this package was also a node dependency. See openedx/public-engineering#13 for more details.
Overview
We propose the removal all remaining bok-choy test suites, all tooling code supporting bok-choy test suites, and the bok-choy test framework itself.
Target acceptance date: 2022-02-18
Earliest possible release without bok-choy: Nutmeg
Context
Bok-Choy is a home-grown library allowing acceptance-level tests against Web pages to be written in Python. Over the years, it has been used in a few different places:
As we have moved from Django-templated (“legacy”) frontends to React micro-frontends (“MFEs”), bok-choy has fallen out favor, as the framework does not work or make sense to use with MFEs. Even with legacy frontends, we have found their bok-choy test suites to be so slow and flaky that their usefulness has been called into question.
In 2020, we decided to remove the vast majority of bok-choy acceptance tests from edx-platform. In 2021, edX decided to do the same for edx-platform accessibility tests.
Replacement
There is no direct Open edX replacement for bok-choy. Instead, we encourage community members to write acceptance and integration tests using third-party libraries. For example, the new Authentication Micro-Frontend uses Cypress for end-to-end tests.
Removal steps
edx-e2e-tests
repository.openedx
GitHub organization, removing any dangling references to the test library or old test suites.edx
GH org.--
Original Jira Issue: https://openedx.atlassian.net/browse/DEPR-174
Communicated to community: https://discuss.openedx.org/t/deprecation-removal-bok-choy-test-suites-framework/6547
The text was updated successfully, but these errors were encountered: