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

hoc2023: initial work #646

Merged
merged 16 commits into from
Sep 19, 2023
Merged

hoc2023: initial work #646

merged 16 commits into from
Sep 19, 2023

Conversation

breville
Copy link
Member

@breville breville commented Sep 13, 2023

This change updates the dance-party repo to build with the same key tooling as our main repo. In particular, it now builds with node version 18.16.0, uses yarn instead of npm, and uses webpack version 5.

I believe that for Ubuntu builds, tests requires Ubuntu 20.04 or later, rather than 18.04 (which our main repo's drone docker image still uses), because the canvas component requires GLIBC 2.28 or later, and Ubuntu 18.04 only has GLIBC 2.27. The GitHub Actions used to test PRs in this repo currently get Ubuntu 22.04.

The trickiest part of this change was getting the test:integration component of the tests running again. It uses Karma, which is now deprecated, but is at least now at the latest version. A number of tricks were needed to make it work again with all of these latest versions. I took a cursory look at a couple alternatives, but Karma offered the convenience of preprocessing with webpack, invocation of headless chrome, and does still work.

@breville breville marked this pull request as draft September 13, 2023 21:13
@breville breville changed the base branch from main to hoc2023-prettier-src September 15, 2023 04:42
@breville breville marked this pull request as ready for review September 17, 2023 22:12
@breville breville requested review from a team, cat5inthecradle and Hamms September 17, 2023 22:14
Copy link
Contributor

@Hamms Hamms left a comment

Choose a reason for hiding this comment

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

This looks great!

Targeting a version of Ubuntu greater than 18 makes sense to me; we're planning to update our main repo to 20 soon enough, and I think testing against 22 should be just fine.

- name: Build
run: npm run build
run: yarn run build
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit; I believe you can omit run from yarn commands; ie, yarn dev rather than yarn run dev. yarn run still works, though!

Base automatically changed from hoc2023-prettier-src to main September 19, 2023 01:44
@breville breville merged commit 31a89e6 into main Sep 19, 2023
1 check passed
@breville breville deleted the hoc2023-initial branch September 19, 2023 01:45
@breville breville requested a review from samantha-code October 2, 2023 18:17
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