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

23 Коммитов

Автор SHA1 Сообщение Дата
Kenneth Chau 2919f9041f
Simulate file access (#789)
* Simulate file access for lage server

* new grpc stuff

* revert last commit

* fixing up globby to be used, do gitignore, and fix up the getinput and outputs to be shown across the grpc

* Change files

* adding reference to globby

* fixing prettier issues

* fixing the ts version to be consistent

* set up the timeout only after pool is idle

* reverting scope change

* Change files
2024-09-27 13:00:24 -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 c6b1be01ff
Further test and settings updates (#739) 2024-04-23 16:55:52 -07:00
Kenneth Chau c4bd97fb49
Target Hasher rework (#642)
* WIP: creating a target hasher outside of the cache dir

* WIP: adding missing files from cache

* WIP: exploring moving the target hasher to the hasher package

* wip

* WIP: on filehasher

* updated to use glob-hasher's stat fn

* WIP

* target hasher

* prevent infinite loop, but very slow

* test hash WIP

* adding the read from git thing

* adding a package tree class

* skip sorting for a hashing

* completed integration of new target hasher

* get main thread to send memory hashes, but only from a request from inside a worker

* adding cleanup to simple scheduler

* causing the reporter not to output things after summary

* adding new fixtures

* cleaning up unused files

* fixing up tests

* Change files

* fixing depcheck

* fixing a test in simplescheduler watchmode

* fixing tests to not use root dir

* updated per feedback
2023-05-08 14:53:34 -07:00
Kenneth Chau 2f641860d4
Updated hasher tests to not be reliant on a test order! (#619)
* WIP: moving hasher tests

* renamed folders

* updated test to handle tests

* get rid of hasher hackarounds

* updated cleanup code

* Change files
2023-03-30 10:43:47 -07:00
Kenneth Chau d7bf00acf2
Promoting v2 to be latest! (#572)
* migrating to V2

* Change files

* Change files

* use beachball to bump major

* specific to package bundle

* Update packages/lage/RELEASE.md

Co-authored-by: David Zearing <dzearing@microsoft.com>

* Update packages/lage/RELEASE.md

Co-authored-by: David Zearing <dzearing@microsoft.com>

* updated release notes

* adding notes about new @lage-run packages

---------

Co-authored-by: David Zearing <dzearing@microsoft.com>
2023-02-07 15:49:19 -08:00
Kenneth Chau b0f0b5a777
Fix profile reporter (#548)
* fixing profiler so that it will load correctly in the tracing UI

* initialize hash

* Change files
2023-01-26 16:20:12 -08:00
Kenneth Chau 96448520cd
Fixed E2E tests to use the @lage-run/lage package instead of the broken out "cli" package (#544)
* updated the e2e tests to use the lage bundle to catch anything unexpected things

* Change files

* changing the test to depend on the bundle
2023-01-19 00:28:26 +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 d08b99eb6d
fixing the monorepo fixture package (#482) 2022-11-10 13:31:42 -08:00
Ken b1a42cb963 adjusting lage config maxWorkers 2022-11-10 12:15:27 -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 ffb4fc2ceb
Hasher: porting the package-deps-hash code to @lage-run/hasher (#474)
* pass build

* fixed the package-deps-hash unit tests

* adding fixtures

* Change files

* adding fixtures

* Change files

* deleting some files

* fixing lint issues

* added some cleanups

* adding a specific taskArgs for hasher tests
2022-11-01 23:21:57 -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 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
Ken Chau 64a4d8d723 get rid of maxWorkers 2022-10-21 16:17:23 -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 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
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
Kenneth Chau 8fb3883281
@lage-run/cli package - run command (#323)
* adding commander to replace yargs

* logging and verbosity

* make sure the error case exits with an exit code of 1

* fixed README.md

* pass the internalCacheFolder into the config

* Change files

* fixing formating

* updates the snapshots

* most e2e passed, except for transitiveDepsTests

* fixed up the transitive task deps - by adding back the default behavior of v1.x --include-dependencies

* formatting

* move e2e tests to a new package

* fixing up mocking after moving e2e tests

* Change files

* adding an entry for lage test
2022-08-23 00:49:09 -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
Kenneth Chau c0d69c29e1
Making this repo into a monorepo in preparation of more granular work (#250)
* Turning lage into monorepo to prepare subdividing into pieces

* getting rid of renovate for now

* updated the root scripts to work

* fixing up pipelines

* moving many files around requires adjustments to beachball config

* upgrade node version to allow docusaurus to consume newer node version

* Change files

* get rid of the extra docs: prefix

* adding verbose logging
2022-05-25 13:05:03 -07:00