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

49 Коммитов

Автор SHA1 Сообщение Дата
Kenneth Chau 9b607e7123
adding sourcemaps when doing compile; adds shouldRun() capability on a per-target basis (#819)
* adding sourcemaps when doing compile

* sync version of shouldRun

* support async shouldRun checks

* wip!

* replaced the async being on the addTargetConfig side, but to the graph build time.

* Change files

* fixing format
2024-11-08 11:40:36 -08:00
renovate[bot] 067b34dac0
Update dependency workspace-tools to v0.37.0 (#801)
* Update dependency workspace-tools to v0.37.0

* bump also inside benchmark

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ken Chau <kchau@microsoft.com>
2024-10-22 08:15:42 -07:00
Kenneth Chau 3fb589f859
Yarn 4 (#778)
* yarn 4

* husky reinit

* bumping lint-staged

* fixing up the yarn 4 dlx jest

* fix script for prettier

* use auto line ending

* point to exact yarn path

* escape yarn path as well

* filter out the line that says "Done ..."
2024-09-11 13:27:24 -07:00
Kenneth Chau 8b27a04b8d
Runner refactor - in preparation for exec and server commands (#770)
* WIP: moving runners to another package

* moving runners to its own package, fixing up imports

* fixing up the test to use the right path

* Change files

* updated runners package readme.md

* get rid of unused deps

* fixing up another one

* fixing the deps for runners package according to depcheck
2024-08-28 14:09:49 -07:00
Kenneth Chau e294f80531
Use globby instead of glob-hasher's glob function. This thing supports gitignore AND extglob patterns (#762)
* moving back to using globby instead for speed & accuracy reasons

* Change files

* adding unit tests

* Change files

* Change files

* bumps esbuild

* bumps depcheck to include .mts magic

* fix tests

* fix spacing issues
2024-06-25 11:08:16 -07:00
Elizabeth Craig 4ac826bcb7 Use a longer timeout for windows tests 2024-04-23 17:14:04 -07:00
Elizabeth Craig c6b1be01ff
Further test and settings updates (#739) 2024-04-23 16:55:52 -07:00
Elizabeth Craig 7453924a5a
Use @swc/jest and fix debugging tests (#738) 2024-04-23 15:29:04 -07:00
Elizabeth Craig f324cccc43
Set shell: true when spawning npm commands (#732) 2024-04-23 22:18:54 +00:00
Elizabeth Craig fb4fcb8419
Run prettier on all files (#731) 2024-04-17 16:18:32 -07:00
Elizabeth Craig 429047eb17
Pin external deps to ensure explicit updates to lage bundle (#712) 2023-12-21 01:46:18 -08:00
Elizabeth Craig 0752bad677
Unpin devDependencies (#654) 2023-12-21 00:35:03 -08:00
sstchur f631134451
Upgrade workspace-tools package (#707) 2023-12-11 20:20:01 -08:00
renovate[bot] 5f41b1db34
Update lage core deps (#627)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-17 08:09:47 -07:00
Elizabeth Craig 56910ce2ef
Add back the init command (#645)
* Add back the init command

* fix eslint
2023-04-25 21:51:19 -07:00
Kenneth Chau bb22ec2ee3
Boot speed: bumping backfill and workspace-tools! (#632)
* making lage boot faster

* Change files
2023-04-13 21:33:38 -07:00
Kenneth Chau ec15819ad8
Bumps workspace-tools and use the new async API for getPackageInfos to speed things up (#626)
* bumps workspace-tools and use async packageinfos

* Change files

* bumps to latest to get the fastest workspace-tools yet
2023-04-06 15:23:38 -07:00
Kenneth Chau 884c8b5aba
Replace `ink` with `@ms-cloudpack/task-reporter` (#622)
* adding task-reporter instead of using ink

* renamed progressreporter back to .ts

* WIP: task-reporter but not as .cjs

* making progress on progress reporter

* reporter

* Change files

* get rid of unused external

* fixed the depcheck issue
2023-03-31 17:23:58 -07:00
Kenneth Chau e2eb2c00d1
Global cache support (#594)
* allows global script cache

* sorting the cache to be consistent

* adding correct deps for lage + glob-hasher

* fixed salt test

* updating snapshot with a reasoning

* fixing the packages

* Change files

* fixing lint issues

* get rid of unused dep

* fixing depchecks

* fixing depchecker!
2023-03-07 16:01:15 -08:00
Kenneth Chau d66a3b4811
Adding Yarn 2 & 3 support to lage!! (#583)
* bumping workspace-tools to latest to support yarn 3

* Change files
2023-02-15 08:43:12 -08:00
Kenneth Chau ac2bf42648
Verbose reporter - fixes it so it uses the old reporter when verbose or grouped are specified (#561)
* switch back to old log reporter when "verbose" or "grouped" are used

* Change files

* adding tests
2023-01-31 18:18:18 +00:00
Kenneth Chau 3fa4b9c8aa
Fancy reporter (#514)
* Fixing the ChromeTraceEventsReporter to use real threadId

* update snapshot

* wip: making a "progress" reporter

* creating the beginnings of a progress reporter - it's in beta

* adding a wip progress reporter

* Change files

* making some progress on the looks of the progress

* adding prebuilt yoga as a dep (cry!)

* Change files

* fixing depcheck chbecker
2022-12-05 16:41:41 -08:00
Kenneth Chau 04f9c13f6f
Refactoring WorkerPool implementation to prepare for more work in this area (#492)
* WIP: initial refactor of worker pool

* updated how the availability tracking is done

* get rid of a "eventarget leak" by removing listeners for the abortSignal

* fixing lint errors

* Change files
2022-11-16 12:01:46 -08:00
Kenneth Chau 723a8d6c0d
Create a new "simplified" TargetGraphBuilder that isn't used for workspaces (#481)
* adding a simpler targetgraphbuilder

* refactoring workspace target graph builder - using ts-jest for snapshots

* update api call

* Change files
2022-11-10 12:01:30 -08:00
Kenneth Chau 9a11cfd194
Switch transpilation to swc for build performance (#477)
* start of swc

* docs are skipped in transpilation

* more replace

* moving the build to bundle for lage v2

* added fixes in pr & release

* fixing the types worker to only generate d.ts files

* swcrc instead of individual hacks

* change what "build" means

* transpile fixes the path from src to lib

* making swc the transpiler of choice

* Change files

* force color = 0 in the setup rather than individual test files

* fixed monorepo fixture and targetrunnerpicker to pick out runner transpiled by swc

* Change files
2022-11-04 18:02:31 -07:00
Kenneth Chau 6dba6df4c6
fixed the tsconfig.lage2.json to output node16 moduleRes (#476)
* fixed the tsconfig.lage2.json to output node16 moduleRes

* Change files

* we are going to inline the dynamic imports!

* forcing a single typescript version in the repo

* Change files

* deleted a test that cannot be run inside jest for now
2022-11-04 14:08:35 -07:00
Kenneth Chau e64f7bfdd1
Import() instead of require() everywhere (#475)
* switching from require() to import() where possible

* Change files

* get rid of comments that are not need to disable eslint rule
2022-11-02 13:38:13 -07:00
Kenneth Chau 1664f38eca
Import extensions - add .js to all the import specifiers! (#472)
* adding import extensions and enforced in linter

* Change files

* fixing import extensions

* Change files

* fixing according to ts-jest esm-support
2022-11-01 15:18:33 -07:00
Kenneth Chau e8946dc08f
Depcheck and fixes! (#464)
* adding a depcheck worker

* adding an ignore for the monorepo-scripts

* fixing all the depcheck failures!

* fixing to have PRs check for deps

* Change files

* fixing up lage deps

* Change files
2022-10-31 14:20:42 -07:00
Kenneth Chau 06a9d752fd
Bump workspace tools (#461)
* Bumps workspace-tools to 0.29.0

* bumps workspace-tools

* force a single version of workspace-tools

* Change files
2022-10-29 11:35:59 -07:00
Kenneth Chau 224e7db14f
Docs update & jest-worker (#456)
* adds a weight for tests

* add jest worker change

* making everything faster in cookbook!

* fastest everything!

* docs

* unique fixture

* make unique IDs for tests

* try to do e2e tests one by one for now

* forgot to add the same dependsOn

* lage e2e also
2022-10-26 17:34:19 -07:00
Elizabeth Craig ef0f70f8f0
Remove some unused files and scripts (#419)
* Remove unused things

* Change files

* move script
2022-10-06 17:39:32 +00:00
Kenneth Chau 43b36b8bd6
enable cache for lage repo itself (#413)
* enable cache for lage repo itself

* get rid of extra inherited process.env

* update e2e tests to accommodate new env

* show errors and caching

* do not extend process.env

* prettier

* also get rid of process.env extend with lage v1 e2e tests

* fixes the monorepo mock to not use process.env of the pipeline

* updated the process env setting in spawn a lage run test in e2e

* deletes process.env

* formatting

* update the lage version

* revert the hacks, and use a single setup

* fixing the config to use the right setupFilesAfterEnv

* silly log level to check the cache put sitch

* fixing the bundle for lage so it uses the right uuid impl

* Change files
2022-10-06 17:18:31 +00:00
Kenneth Chau b0ffb4f991
Upgrade 2.2.2 (#405)
* upgrade lage to 2.2.2

* Change files
2022-10-04 13:12:19 -07:00
Kenneth Chau 68c7fda6d0
updating various aspects of codebase before the scheduler rework (#397)
* updating various aspects of codebase before the scheduler rework

* Change files

* fixing lint and format errors

* not ready yet for the lage index.js to over write the registerWorker()

* removed unused change file
2022-10-03 20:35:42 +00:00
Kenneth Chau 13c84e2a17
Adding concurrency setting that isn't OS.CPUS() - 1 in CI (#392)
* try out exclusions

* powershell

* sigh

* adding github workspace to exclusion

* env

* adding an exclusion rule to make windows runs a bit faster

* add concurrency instead of trying to make exclusions

* runinband for jest for lage runs of tests
2022-10-01 11:19:09 -07:00
Kenneth Chau 8f3016548a
Find npm client package (#391)
* Fixing cycle detection to not have console log, and also do added findnpmclient package

* Change files

* fixes formatting
2022-10-01 16:15:51 +00:00
Kenneth Chau 94d8266336
Add aggregate prioritization to the target graph (#389)
* add prioritization

* adding some prioritize tests

* Change files
2022-10-01 06:36:12 +00:00
renovate[bot] 5f2e103b59
Update dependency workspace-tools to ^0.28.0 (#367)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-29 14:43:36 -07:00
Kenneth Chau 3fb1614f94
get rid of some lint issues (#363)
* fixing lage build

* await is the key

* Change files

* fix unused var
2022-09-19 04:56:17 +00:00
renovate[bot] f972817afd
Update dependency workspace-tools to ^0.27.0 (#354)
* Update dependency workspace-tools to ^0.27.0

* update backfill in lock

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Elizabeth Craig <elcraig@microsoft.com>
2022-09-17 01:02:15 +00:00
renovate[bot] feb30c988c
Update jest monorepo to v29 (major) (#346)
* Update jest monorepo to v29

* remove unused jest setup in docs-beta

* update configs

* update snapshots and fix typescript errors

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Elizabeth Craig <elcraig@microsoft.com>
2022-09-16 03:53:50 +00:00
Kenneth Chau 21bc0d3c79
[lage v2] Worker Runner (#336)
* WIP: adding worker runner

* WIP: starting to measure how to put WorkerRunner in CLI

* fixed run action command to use the workerRunner

* adding cleanup

* WIP: trying to figure out stdout/stdin

* worker pool + process working!

* WIP: using lage-run's own worker-threads-pool

* format and refactoring

* adding support for the bundle

* Change files

* fixing up the lint script to actually fail

* allowing for setup / teardown of a worker thread - useful for setting up streams

* get rid of unused event emits

* formatting

* some basic test to pass

* get rid of unneeded storing of logs

* get rid unneeded imports

* Change files

* lint fix

* fixing eslint issues
2022-09-04 15:55:42 -07:00
renovate[bot] d97182fb84
Update dependency workspace-tools to ^0.26.0 (#309)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-24 08:18:03 -07:00
Kenneth Chau 74c34a0e19
@lage-run/scheduler (#320)
* scheduler init checkin

* simple scheduler is functionality complete

* polish on types

* adding a simple test

* simple scheduler test

* WIP

* wip: working on abortsignals

* Figured out the abort controller pattern

* abort signal handled!

* added a way for targets to specify a node option

* learn how to launch npm

* only run npm script when there IS a script in the package.json

* adding formatduration test

* clearing up responsibility

* made sure the abort signal works in a unit test

* wip on testing npmscriptrunner

* abort signal test work!

* testing the environment variables

* wrapped target tests started

* test that wrapped target can cache

* tests written about aborting earlier vs not

* Change files

* comments

* less exposed functions, and added more comments

* adding a cmd file for the fakeNpm

* adding fixes for windows to be able to test this

* use a matrix to make sure builds and tests are okay with all os's

* fixing formatting according to prettier

* updating test to exhibit correct behavior

* fixed tests to be able to run very quickly and in parallel

* Don't publish monorepo-scripts!

* make sure to ignore the generated and node_modules with prettier

* forget about enforcing the endofline

* include an inline snapshot to show what is in the dependencies instead
2022-08-09 12:10:23 -07:00
Kenneth Chau 6bd2ca57ef
Implementing @lage-run/cache (#316)
* cache implementation, salt fn tested

* updated for remote cache provider

* polishing the branch a bit

* Polishing PR

* adding monorepo-fixture

* fixing up and polishing

* polishing with lint

* refactored to have remoteFallbackCacheProvider take in providers to assist in testing and better separation of concerns

* some documentation for when we implement the consumer of this library!

* Change files

* fixing up prettier formatting

* cleaning up linting issues

* adding some nice comments

* fixing the tests

* using lage itself to build itself!

* get all the jest config in one spot

* added some imports in examples

* added index.ts exports to make it easier to use this library
2022-08-01 14:13:30 -07:00
Ken 7c32202183 monorepo-scripts handle windows case! 2022-07-25 14:17:39 -07:00
Kenneth Chau c0bc72904f
Adds monorepo-scripts and linting (#312)
* Do linting!

* fixed formatting

* Change files
2022-07-25 08:49:55 -07:00
Kenneth Chau f7a3998477
New docs! Fixing some types to make documentation better! (#51)
* updated docs

* greatly increase the cohesion between code types and docs

* adding TONS more docs

* Change files
2020-07-24 12:33:34 -07:00