mdn / mdn/dex

Dex's play/index.js has diverged from Fred

Open
#436 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
6
Forks
4
Avg merge
21h 12m
Merged PRs (30d)
32

Description

Summary

cloud-function/src/internal/play/index.js in Dex has drifted from its upstream source, vendor/yari/libs/play/index.js in mdn/fred.

The file is vendored from Fred (which in turn vendors it from Yari), but there is currently no automation keeping it in sync, so the two copies have diverged.

Notable differences

  • Fred uses @import JSDoc references for Theme / RunnerDefaults (pointing at Fred-internal paths), while Dex still inlines those typedefs.
  • Fred threads a uuid (from the uuid query param) through the postMessage console-proxy calls; Dex does not.
  • Minor formatting differences (trailing commas, unquoted attribute values, dropped @returns tags).

Proposed fix

Add a daily scheduled GitHub Actions workflow that fetches Fred's vendor/yari/libs/play/index.js, and opens a PR whenever it diverges from Dex's copy, so the two stay in sync automatically.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Compare cloud-function/src/internal/play/index.js with vendor/yari/libs/play/index.js and review the issue's listed differences first. Then check GitHub Actions scheduling and pull-request creation guidance. Done means a daily workflow detects divergence and opens a PR to update Dex's vendored copy.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, javascript
Domain
ci-cd
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.