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

Diff features by fetching from GitHub Actions #13720

Merged
merged 1 commit into from
Nov 25, 2021

Conversation

ddbeck
Copy link
Collaborator

@ddbeck ddbeck commented Nov 24, 2021

Summary

This substantially speeds up feature diffing, where the enumeration has already been done in GitHub Actions. Where possible, it tries to fetch from GitHub Actions, or falls back to using a worktree to enumerate directly.

Test results and supporting details

You can see this in action with these examples:

  • node ./scripts/diff-features.js --format=json 80d976fb46e5ca453856adcab9bcf0b36a4bf140, for a fallback case. This is typical for commits older than about 24 hours. On my machine, runs in about 10 seconds (with a full npm cache).
  • node ./scripts/diff-features.js --format=json 1409a8c6d17e7d420404bb1a0561cca431cba1b5, for a GitHub-facilitated case. Runs in about 5 seconds.

Related issues

See #13695 for background.

This substantially speeds up feature diffing, where the enumeration has
already been done in GitHub Actions. Where possible, it trys to fetch
from GitHub Actions, or falls back to using a worktree to enumerate
directly.

See mdn#13695 for
background.
@ddbeck ddbeck requested a review from Elchi3 November 24, 2021 17:57
@github-actions github-actions bot added the scripts Issues or pull requests regarding the scripts in scripts/. label Nov 24, 2021
Copy link
Member

@Elchi3 Elchi3 left a comment

Choose a reason for hiding this comment

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

Well done! I like the fallback option!

@Elchi3 Elchi3 merged commit 488c048 into mdn:main Nov 25, 2021
@ddbeck ddbeck deleted the get-diff-from-artifact branch November 26, 2021 13:32
@ddbeck ddbeck mentioned this pull request Apr 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scripts Issues or pull requests regarding the scripts in scripts/.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants