Skip to content

Commit

Permalink
internal: Polish and fixes. (#1731)
Browse files Browse the repository at this point in the history
* Fix json output.

* Update deps.

* Fix tests.

* Polish python.

* Fix submodule dir issues.

* Fix tests.

* Support submodules.

* Better submodules support.
  • Loading branch information
milesj committed Nov 25, 2024
1 parent c4faab4 commit 896844d
Show file tree
Hide file tree
Showing 34 changed files with 617 additions and 355 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
with:
auto-install: true
cache: ${{ runner.os == 'Linux' }}
proto-version: '0.42.1' # Keep in sync
proto-version: '0.42.2' # Keep in sync
- uses: mozilla-actions/[email protected]
if: ${{ vars.ENABLE_SCCACHE == 'true' }}
- name: Checking coverage status
Expand Down
23 changes: 11 additions & 12 deletions .moon/workspace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,14 @@ docker:
include:
- '*.config.js'
- '*.json'

unstable_remote:
host: 'grpc://localhost:9092'
# mtls:
# caCert: 'crates/remote/tests/__fixtures__/certs-local/ca.pem'
# clientCert: 'crates/remote/tests/__fixtures__/certs-local/client.pem'
# clientKey: 'crates/remote/tests/__fixtures__/certs-local/client.key'
# domain: 'localhost'
# tls:
# # assumeHttp2: true
# cert: 'crates/remote/tests/__fixtures__/certs-local/ca.pem'
# # domain: 'localhost'
# unstable_remote:
# host: 'grpc://localhost:9092'
# mtls:
# caCert: 'crates/remote/tests/__fixtures__/certs-local/ca.pem'
# clientCert: 'crates/remote/tests/__fixtures__/certs-local/client.pem'
# clientKey: 'crates/remote/tests/__fixtures__/certs-local/client.key'
# domain: 'localhost'
# tls:
# # assumeHttp2: true
# cert: 'crates/remote/tests/__fixtures__/certs-local/ca.pem'
# # domain: 'localhost'
17 changes: 15 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,32 @@
- Refactored the `moon query tasks` command.
- CLI options have been replaced with new task based options, instead of being project based.
- Now utilizes the new task graph and affected tracker.
- The `moon project-graph --json` output no longer includes task data (the `tasks` field is an empty
map).
- Use `moon task-graph` to access this data, and piece things together using the project
`taskTargets` field.
- The `moon project --json` output pieces everything together automatically.

#### 🚀 Updates

- Added unstable support for self-hosted remote caches, powered by the
- Added _unstable_ support for self-hosted remote caches, powered by the
[Bazel Remote Execution API](https://github.com/bazelbuild/remote-apis).
- Allows for 3rd-party implementations like
[`bazel-remote`](https://github.com/buchgr/bazel-remote) to be used.
- Currently supports the gRPC protocol, and will support HTTP in a later release.
- Our moonbase product will be sunset in the future.
- Added Python tier 2 and 3 support.
- Will download and install Python into the toolchain when a `version` is configured.
- Will parse the `requirements.txt` to resolve and install dependencies.
- Added a `python` setting to `.moon/toolchain.yml`.
- Added a `toolchain.python` setting to `moon.yml`.
- Updated `moon bin` commands to support Python.
- Added a new task graph, that enables new granular based functionality for task related features.
- Added a new `moon task-graph` command.
- Can now control the depth of upstream (dependencies) and downstream (dependents).
- Affected information now tracks based on dependent graph connections.
- Added `--upstream` and `--downstream` options to `moon query tasks`.
- Added basic support for Git submodules, and will now extract touched files from all submodules.
- Added 7 new token variables: `$arch`, `$os`, `$osFamily`, `$vcsBranch`, `$vcsRepository`,
`$vcsRevision`, `$workingDir`
- Added a `rust.binstallVersion` setting to `.moon/toolchain.yml`.
Expand All @@ -35,11 +47,12 @@

- Fixed `moon project-graph <id>` not including all dependencies/dependents. It was only showing
direct relationships.
- Fixed an issue where touched file paths would include Git submodule directories and trigger hasher warnings.

#### ⚙️ Internal

- Updated dependencies.
- Updated proto to v0.42.1 (from 0.42.0).
- Updated proto to v0.42.2 (from 0.42.0).

## 1.29.4

Expand Down
95 changes: 47 additions & 48 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,11 @@ compact_str = { version = "0.8.0", default-features = false, features = [
"serde",
] }
console = "0.15.8"
convert_case = "0.6.0"
dirs = "5.0.1"
futures = "0.3.31"
indexmap = "2.6.0"
md5 = "0.7.0"
miette = "7.2.0"
once_cell = "1.20.1"
pathdiff = "0.2.2"
Expand All @@ -51,14 +54,14 @@ reqwest = { version = "0.12.9", default-features = false, features = [
"native-tls-vendored",
] }
rustc-hash = "2.0.0"
scc = "2.2.4"
scc = "2.2.5"
schematic = { version = "0.17.6", default-features = false, features = [
"schema",
] }
serial_test = "3.2.0"
semver = "1.0.23"
serde = { version = "1.0.215", features = ["derive"] }
serde_json = "1.0.128"
serde_json = "1.0.133"
serde_yaml = "0.9.34"
sha2 = "0.10.8"
starbase = { version = "0.9.4" }
Expand Down Expand Up @@ -92,7 +95,7 @@ uuid = { version = "1.11.0", features = ["v4"] }
# proto/plugin related
extism = "=1.8.0"
extism-pdk = "1.3.0"
proto_core = "0.43.5"
proto_core = "0.43.6"
proto_installer = "0.7.1"
system_env = "0.6.1"
version_spec = "0.7.0"
Expand Down
Loading

0 comments on commit 896844d

Please sign in to comment.