Skip to content
This repository has been archived by the owner on Jun 11, 2020. It is now read-only.

Make CI slow by validating against master definitely typed #718

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

orta
Copy link
Contributor

@orta orta commented Dec 13, 2019

This clones DT into a sibling folder, then runs through everything up till deployment on CI

- git clone https://github.com/DefinitelyTyped/DefinitelyTyped ../DefinitelyTyped

script:
- npm tes
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
- npm tes
- npm test

- npm run build
- npm run clean
- npm run parse
- npm run check
Copy link
Member

Choose a reason for hiding this comment

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

  1. This isn't very valuable, it mostly just tells you what @types packages are superceded by in-package types.
  2. On the other hand, we shouldn't never run it.
  3. On the third hand, it'll make CI slow.
  4. Is CI never not slow?
  5. This is probably the right place to run it.

- npm run build
- npm run clean
- npm run parse
- npm run check

Copy link
Member

Choose a reason for hiding this comment

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

probably should npm run calculate-versions and npm run generate and npm run index.

Note that some of these tasks hit npm (parse, index and maybe generate?)

- npm tes
- npm run build
- npm run clean
- npm run parse
Copy link
Member

Choose a reason for hiding this comment

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

This relies on a cache to avoid querying npm for everything. It is NOT the most reliable cache, and I don't understand travis' caching strategy. You should test to see whether it's running npm info on every @types package for every CI run. If it's not, then you need to make sure that it's correctly running npm info on packages that were recently updated in DT.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants