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

477 Коммитов

Автор SHA1 Сообщение Дата
Ken Chau 089fedf9a5 applying package updates 2024-11-20 02:43:43 +00:00
Kenneth Chau d2ddec2c03
added exit code support for the npm runner with the executeInProcess (lage exec) command (#823)
* adding exit code support for executeInProcess

* Change files

* fixed to forward exitcode
2024-11-19 18:40:10 -08:00
Ken Chau 021c2f581e applying package updates 2024-11-18 23:22:30 +00:00
slavkan007 b09af7d392
Fix git command for getting untracked files in PackageTree.ts (#821)
* Fix git command for getting untracked files in PackageTree.ts

* Change files
2024-11-18 15:19:03 -08:00
Ken Chau 32e896ea11 applying package updates 2024-11-08 19:45:09 +00:00
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
Ken Chau 0b4047c7e5 applying package updates 2024-11-08 19:27:44 +00:00
Bruno Ruiz de Somocurcio 824eeab824
Escape ADO cache write to remote cache with env.LAGE_WRITE_CACHE=false (#820)
* Escape with env.LAGE_WRITE_CACHE

* Change files

* Prettier formatting

---------

Co-authored-by: Bruno Ruiz de Somocurcio 🦙 <brunoru@microsoft.com>
2024-11-08 11:24:18 -08:00
Ken Chau bc8b814002 applying package updates 2024-11-01 08:07:38 +00:00
Kenneth Chau 0266df8454
Use node script for command instead of npm client (#811)
* node scripts

* Change files

* added a fix so that the "shell" command is only applied on windows

* Change files

* adding task args

* update snapshots
2024-11-01 01:03:55 -07:00
Ken Chau 88df67cfae applying package updates 2024-10-22 15:19:29 +00: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
Ken Chau d7031bbbb7 applying package updates 2024-10-21 22:18:54 +00:00
Ronak Jain afe5d34e1b
Optimize transitive reduction (#802)
* Optimize transitive reduction

* Change files

* Add a test
2024-10-21 15:15:13 -07:00
Ken Chau 8cac8b3361 applying package updates 2024-10-17 20:33:04 +00:00
Ronak Jain bd7270ead8
Optimize subgraph build (#798)
* Optimize subgraph build

* Change files
2024-10-17 13:29:22 -07:00
Ken Chau 22055531df applying package updates 2024-10-11 22:09:18 +00:00
Kenneth Chau cd7a1ed3a8
avoids re-creating target picker (#797)
* moved the picker creation to be just once to be reused in a singletargetworker

* Change files

* adding a mkdirp before writing to the log file

* Change files
2024-10-11 15:05:51 -07:00
Ken Chau 8ba5d9fcf8 applying package updates 2024-10-11 19:49:15 +00:00
Kenneth Chau 4304893f92
fixing publish of lage to enable lage-server to work (#796) 2024-10-11 12:45:57 -07:00
Ken Chau 523006d60d applying package updates 2024-10-10 20:14:59 +00:00
Kenneth Chau cad4d2b233
Retry logic (#795)
* fixing up the lage integrate with buildxl to utilize lage-server

* Change files

* moved initialization back inside runTarget() to lazy initialize things so that server can start taking requests

* shutoff at 3 minutes

* no change file here

* Change files
2024-10-10 13:11:36 -07:00
Ken Chau 278977d362 applying package updates 2024-10-09 17:20:33 +00:00
Kenneth Chau 41964958d5
fixing up the lage integrate with buildxl to utilize lage-server (#794)
* fixing up the lage integrate with buildxl to utilize lage-server

* Change files

* moved initialization back inside runTarget() to lazy initialize things so that server can start taking requests
2024-10-09 10:17:02 -07:00
Ken Chau 72ab911c0a applying package updates 2024-10-08 20:03:36 +00:00
Kenneth Chau e0b1d9352f
Shell script launching with BIN scripts rather than directly using node to call the .js (#793)
* changing the launch to use the bin script

* Change files
2024-10-08 13:00:10 -07:00
Ken Chau 6b3e9a9fcf applying package updates 2024-10-07 19:33:13 +00:00
Kenneth Chau 43e4f422ae
LAGE_WORKER_SERVER had an incorrect server launch arg for the info command (#792)
* fixing the command generator for info

* make info parse for server

* Change files

* refactoring and add unit tests
2024-10-07 12:29:53 -07:00
Ken Chau 5797a7bdc2 applying package updates 2024-10-04 23:41:44 +00:00
Kenneth Chau 5030c3eca2
Remote execution (#791)
* wip: remote execution

* wip

* info command & exec & server

* adds a detached service

* adding an environment variable

* fixing info

* Change files

* since fix

* allow empty staged

* centralize the runners

* adds a end-to-end test for lageserver

* updated the snapshot

* finally getting a stable test

* get rid of duped cleanup

* fixing prettier issue

* Change files

* fixing cleanup to be retried

* fixed a test

* another try

* get rid of the shell

* laucnh without quotes

* no shell for you

* globby

* yarned
2024-10-04 16:38:18 -07:00
Ken Chau fe23d3e7dc applying package updates 2024-10-02 20:26:19 +00:00
Kenneth Chau 6ecbd57066
Adds support for background service mode for info command (#790)
* 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

* wip: starting to refactor optimizer in its own package

* refactor optimization and add option for server

* add lage server mode

* update action

* fixing the binary location for lage.js and lageserver.js

* fixing the binary location for lage.js and lageserver.js

* info action now generates server commands for --server

* Change files

* adds the lage-server bin

* adding some dummy runner files for tests
2024-10-02 13:22:44 -07:00
Ken Chau 128bc17432 applying package updates 2024-09-27 20:03:49 +00:00
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
Ken Chau 38ef4ba7e1 applying package updates 2024-09-25 20:28:10 +00:00
Kenneth Chau 09313be6a4
Record all the inputs for hashes (#788)
* writes out the "inputs" as hashes files inside node_modules\.cache\lage\hashes\**

* adds a list of inputs in the form of json string

* Change files

* adding a new output from lage
2024-09-25 13:24:35 -07:00
Ken Chau 804d116ee3 applying package updates 2024-09-13 18:05:04 +00:00
Kenneth Chau 924b93e66a
Adds lage-server binary - buildxl breakaway process part 1 (#784)
* beginning our journey with servers

* WIP: adding a server

* timeout is working

* adding another binary to lage!

* Change files

* fixing cli package to not include fastify/express
2024-09-13 11:01:40 -07:00
Ken Chau df63c15240 applying package updates 2024-09-11 20:52:15 +00:00
renovate[bot] ee081994fc
Update dependency fast-glob to v3.3.2 (#714)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-11 13:41:13 -07:00
renovate[bot] 4f321b564b
Update dependency micromatch to v4.0.8 [SECURITY] (#771)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-11 13:39:38 -07:00
Ken Chau 35a66aa013 applying package updates 2024-09-11 20:30:48 +00: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
Ken Chau 46dba0340c applying package updates 2024-09-07 00:01:57 +00:00
Kenneth Chau fb00e0249a
adding parallelism to server command (#777)
* adding parallelism to server

* adding a few more log msgs

* Change files

* adding a dep
2024-09-06 16:59:12 -07:00
Ken Chau 105fabf720 applying package updates 2024-09-06 20:03:01 +00:00
Kenneth Chau 0d2a6f936b
Adds a RPC mechanism for lage (#775)
* wip: adding grpc

* adding buf for generation of TS

* got the right versions matching

* inversion of control for service implementation

* WIP: adding action for worker or service - need to decide on name

* adding a createClient

* rpc now works to run scripts

* remote execution now works with a better command set

* Change files

* fixing up the change files

* removing unused file

* ignore generated files for linting
2024-09-06 13:00:10 -07:00
Ken Chau aa15990e80 applying package updates 2024-09-04 23:25:05 +00:00
Kenneth Chau cbfd60ade5
Use file hashes for target envglobs instead of the file names (#774)
* Use file hashes instead of just the file names for env glob for targets\

* clean up after test

* Change files

* get rid of reset where not needed
2024-09-04 16:22:15 -07:00
Ken Chau cb838068fa applying package updates 2024-08-30 18:40:09 +00:00