Граф коммитов

28 Коммитов

Автор SHA1 Сообщение Дата
Peter Bengtsson 988e68fa98
JIT data (#32140) 2022-11-17 13:08:49 +00:00
Peter Bengtsson 8fdf2deccc
measure Node heap memory use with statsd (#25543) 2022-02-22 20:11:39 +00:00
Peter Bengtsson 78500789e5
Don't remove `.feature` frontmatter key inside getApplicableVersions() (#24189)
* goofing around to trigger an error

* only call warmServer once

* delete versions when it can be inherited

* fix nasty unit test
2022-01-11 02:00:19 +00:00
Grace Park 8f7bba1dd9
adding back pagemap (#22426) 2021-11-18 03:56:13 +00:00
Grace Park a6f6ab4f32
update to pageList (#22413) 2021-10-26 09:33:56 -07:00
Grace Park 1a3007578f
Add redirects and pagemap stats to Datadog (#22401)
* add redirects and pagemap to datadog

* removing server."
2021-10-25 20:50:30 +00:00
Kevin Heis 8a56437c93
Pretty format (#20352)
* Update prettier flow to include JS

* Run prettier

* ...run prettier
2021-07-14 14:35:01 -07:00
Kevin Heis 42e785b0a8
Migrate CommonJS to ESM (#20301)
* First run of script

* Get the app running --- ish

* Get NextJS working

* Remove `node:`

* Get more tests passing in unit directory

* Update FailBot test to use nock

* Update test.yml

* Update Dockerfile

* tests/content fixes

* Update page.js

* Update build-changelog.js

* updating tests/routing

* Update orphan-tests.js

* updating tests/rendering

* Update .eslintrc.js

* Update .eslintrc.js

* Install jest/globals

* "linting" tests

* staging update to server.mjs

* Change '.github/allowed-actions.js' to a ESM export

* Lint

* Fixes for the main package.json

* Move Jest to be last in the npm test command so we can pass args

* Just use 'npm run lint' in the npm test command

* update algolia label script

* update openapi script

* update require on openapi

* Update enterprise-algolia-label.js

* forgot JSON.parse

* Update lunr-search-index.js

* Always explicitly include process.cwd() for JSON file reads pathed from project root

* update graphql/update-files.js script

* Update other npm scripts using jest to pass ESM NODE_OPTIONS

* Update check-for-enterprise-issues-by-label.js for ESM

* Update create-enterprise-issue.js for ESM

* Import jest global for browser tests

* Convert 'script/deploy' to ESM

Co-authored-by: Grace Park <gracepark@github.com>
Co-authored-by: James M. Greene <jamesmgreene@github.com>
2021-07-14 13:49:18 -07:00
James M. Greene d639f74aed
Warm server only once no matter what (#20264) 2021-07-02 19:34:50 +00:00
Sarah Schneider d258e77b17 move the tree rendering steps to lib/page-data which happens during warm-server 2021-05-21 12:06:27 -04:00
Sarah Schneider b4ab2c52b6 delete no longer used files 2021-05-20 10:01:08 -04:00
Kevin Heis 57e1a1b9c1
End Lunr AB test (#19155)
* Revert "Start an AB test with Lunr search results as treatment (#18993)"

This reverts commit 3d621ba715.

* Update lunr-search.js
2021-05-06 18:04:28 +00:00
Kevin Heis 3d621ba715
Start an AB test with Lunr search results as treatment (#18993)
* Start search_lunr AB test

* Towards prewarming

* Towards prewarming

* Warm only english/dotcom index

* Update warm-server.js
2021-05-04 16:24:19 +00:00
Sarah Schneider 2c8902f826 asyncify redirect loading 2021-02-26 13:23:50 -05:00
Jason Etcovitch 64f015587f
Use asyncTimer for loadPages and loadPageMap (#17306) 2021-01-14 17:18:05 +00:00
Jason Etcovitch 0ec47e0246
Only read the frontmatter from files in warm-server (#17222)
* Add read-frontmatter.js

* Use it

* Page static read/init are async now

* Fix some blockers

* I'm confused

* Fix some more bugs

* Use frontmatter schema, ensure end fence exists

* Fix a bug

* Still read full contents for index.md files

* Remove comment

* Only get ToC items for index pages

* Readd frontmatter error and verdadero handling

* Fix some borked tests

* Simplify the code

* Add a comment

* Remove redundant variable

* Re-simplify the Page construction

* End chunk _after_ endline

* Just use Page.init
2021-01-14 10:46:59 -05:00
Kevin Heis d507eec2e8
Fix load site data reporting wrong timing data (#17050) 2020-12-17 11:40:25 -08:00
Kevin Heis 0f685115f7
Revert file reads from async to sync (#16979)
* Revert file reads from async to sync

* Async funness

* Fix warm server timers

Co-authored-by: Chiedo John <chiedo@chiedosbmacbook.lan>
2020-12-15 22:04:41 +00:00
Kevin Heis 33bd3e45d3
Instrument the subfunctions of warmServer with datadog (#16854)
Co-authored-by: James M. Greene <JamesMGreene@github.com>
2020-12-10 01:21:38 +00:00
James M. Greene fb30a0766f
Unravel pages (the array + map object) (#16708)
* Revise the 'pages' module to export two methods: 'loadPages' and 'loadPageMap'

Update all existing references to use 'loadPages' for now

* Remove explicit Promise resolutions on loadPage* methods

* Condense reduction method into its now-singular usage spot

* Opt for for-of instead of forEach

* Make require of pages in warm-server more explicit

* Be more explicit about find-page using a pageMap

* Be more explicit about find-page-in-version using a pageMap

* Be more explicit about site-tree using a pageMap

* Extract the map creation from loadPageMap

* Be more explicit about using a pageMap

* Update redirects precompile to take two arguments: pageList, pageMap

* Rename internal loadPages method to loadPageList

* Clarify pageMap is what is stored in context.pages

* Use loadPageMap in tests and stuff
2020-12-03 22:31:10 +00:00
Sarah Schneider 7628caa417 Merge branch 'main' of github.com:github/docs-internal into hidden-docs-alt 2020-12-02 12:47:54 -05:00
James M. Greene 5f6994d001
Instrument the `warmServer` method more precisely (#16698)
* Instrument the `warmServer` method more precisely

This way we only report on it if we have to actually prime it vs. with every call to get the cached results

* Skip the extra variable

* Use Boolean to make intent more explicit
2020-12-01 19:05:24 -06:00
Sarah Schneider 6304c863fe lint 2020-12-01 13:07:00 -05:00
Sarah Schneider b244d447dd Merge branch 'main' of github.com:github/docs-internal into hidden-docs-alt 2020-12-01 12:38:48 -05:00
Jason Etcovitch 86c9bbf7c3
Instrument warm-server via Datadog (#16566)
Co-author: @chiedo

Co-authored-by: Chiedo John <2156688+chiedo@users.noreply.github.com>
2020-11-20 13:09:39 -05:00
Nick Schonning b6de7c6887
chore: Convert Standard to eslint-config-standard (#1328)
* chore: Move standard to ESLint config

* fix: auto-fix ESLint indent issues

* fix: ESLint prefer-regex-literals

* fix: ESLint array-callback-return

- .filter must return a boolean value
- .map replaced with forEach when the value isn't used

* fix: ESLint no-extra-semi
2020-11-17 16:18:18 -05:00
James M. Greene f410fd175c Mostly reverting github/docs-internal#15313 2020-11-09 13:07:04 -06:00
Vanessa Yuen 3df90fc9b8 Hello git history spelunker!
Are you looking for something? Here is all of the GitHub Docs history in one single commit. Enjoy! 🎉
2020-09-27 14:10:11 +02:00