Skip to content

Commit

Permalink
internal: New project graph. (#980)
Browse files Browse the repository at this point in the history
* Add contexts.

* Start implementing load.

* Add globs.

* Add aliases event.

* Rework events.

* Add constraints.

* Add caching.

* Add graph itself.

* Add creation.

* Add new token expander.

* Start on expander tests.

* Fix task builder tests.

* Fix project builder tests.

* Start on tests.

* Add output tests.

* Move to another struct.

* Move to a new crate.

* Move regex to config.

* Add more expansion.

* Finish expander.

* Add another pattern.

* Expand projects on demand.

* Add query.

* Test command.

* Test args and env.

* Test inputs and outputs.

* Test deps.

* Migrate to new pg.

* Fix cache.

* Fix query.

* Rework expander.

* JSONify pg.

* Remove old code.

* Hook up events.

* Remove old tests.

* Update some tests.

* Fix dep graph.

* Fix pg recursion.

* Move expansion.

* Get tests working.

* Use new events.

* Start on graph tests.

* Test aliases and dupes.

* Migrate tests.

* Add source tests.

* Test more sources.

* Test cycle.

* Test caching.

* Test expansion.

* Polish.

* Delete old fixtures.

* Rename to project expander.

* Refactor expanders.

* Rename pg package.

* Overlapping outputs.

* Test inheritance.

* Test tag deps.

* Update docs.

* Fix tests.

* Fix tests.

* Fix more tests.

* Fix versions.
  • Loading branch information
milesj committed Jul 31, 2023
1 parent 7bfd630 commit d93ee21
Show file tree
Hide file tree
Showing 228 changed files with 6,937 additions and 6,766 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
# strategy:
# matrix:
# bench: [dep_graph_benchmark, emitter_benchmark, project_graph_benchmark, pipeline_benchmark]
# bench: [dep_graph_benchmark, emitter_benchmark, pipeline_benchmark]
# fail-fast: false
steps:
- run: echo ${{ github.event.pull_request.head.sha }}
Expand All @@ -38,8 +38,7 @@ jobs:
# args: --workspace --bench ${{ matrix.bench }} -- --save-baseline base-sha
run:
cargo bench --workspace --bench dep_graph_benchmark --bench emitter_benchmark --bench
project_graph_benchmark --bench pipeline_benchmark --bench tar_benchmark --
--save-baseline head-sha
pipeline_benchmark --bench tar_benchmark -- --save-baseline head-sha

# Run on base branch to get a baseline
- name: Checkout base branch
Expand All @@ -51,8 +50,7 @@ jobs:
# args: --workspace --bench ${{ matrix.bench }} -- --save-baseline base-sha
run:
cargo bench --workspace --bench dep_graph_benchmark --bench emitter_benchmark --bench
project_graph_benchmark --bench pipeline_benchmark --bench tar_benchmark --
--save-baseline base-sha
pipeline_benchmark --bench tar_benchmark -- --save-baseline base-sha

# Compare diffs
- name: Install critcmp
Expand Down
22 changes: 14 additions & 8 deletions .yarn/versions/d9ea8a14.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
releases:
"@moonrepo/cli": minor
"@moonrepo/core-linux-arm64-gnu": minor
"@moonrepo/core-linux-arm64-musl": minor
"@moonrepo/core-linux-x64-gnu": minor
"@moonrepo/core-linux-x64-musl": minor
"@moonrepo/core-macos-arm64": minor
"@moonrepo/core-macos-x64": minor
"@moonrepo/core-windows-x64-msvc": minor
'@moonrepo/cli': minor
'@moonrepo/core-linux-arm64-gnu': minor
'@moonrepo/core-linux-arm64-musl': minor
'@moonrepo/core-linux-x64-gnu': minor
'@moonrepo/core-linux-x64-musl': minor
'@moonrepo/core-macos-arm64': minor
'@moonrepo/core-macos-x64': minor
'@moonrepo/core-windows-x64-msvc': minor
'@moonrepo/types': patch

declined:
- '@moonrepo/report'
- '@moonrepo/runtime'
- 'website'
Loading

0 comments on commit d93ee21

Please sign in to comment.