Repository navigation
redo OTel engine => client pipeline - #7996
Conversation
d3f4e1e to
2bc95a7
Compare
cc70038 to
b0a02bc
Compare
This comment was marked as resolved.
This comment was marked as resolved.
03b2d32 to
30cdb51
Compare
|
Follow-up: the only unique flake was I found the root cause for the hang and fixed it in ce1fb22 ("synchronously subscribe, fix client buffering") - now the After making that change I haven't seen the test hang; every I can spend some more time updating the PR description, but I'm marking this "ready for review" as I'm running out of TODOs, in case any of y'all want to take an early peek. ALSO: I kept the changes that redirect our GHA workflow logs to files that get uploaded as artifacts, since I don't want to waste too much time working around their bug, and downloading the logs as an artifact is pretty decent anyway compared to the "View Raw Logs -> copy URL -> curl" flow I've had to do. |
Signed-off-by: Alex Suraci <[email protected]>
this re-evaluates when the same client initializes again, which is currently the case for repeated sequential calls in certain scenarios Signed-off-by: Alex Suraci <[email protected]>
was causing a 'failed to marshal log record body' error in logs Signed-off-by: Alex Suraci <[email protected]>
there's no need to require these to be UTF-8 (unintended consequence of protojson), and no need to query these structurally, so let's just keep it BLOBby Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
we can't always expect the caller to have configured trace context, and this isn't really an appropriate spot to be generating a ton of traces, so skip creating the span instead Signed-off-by: Alex Suraci <[email protected]>
github's secret scrubbing currently chokes on large output, and you have to 'view raw logs' to see everything anyway, might as well just download an artifact instead. Signed-off-by: Alex Suraci <[email protected]>
also make sure to keep still-active clients in case there's one sitting around for an hour Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
otherwise telemetry gets shut down for good as soon as the first client goes away, leaving the rest stranded Signed-off-by: Alex Suraci <[email protected]>
not only is this much nicer to use since you can skip the extra hop, but it also fixes the "leaking" gRPC session attachable spans. to be honest it's not clear to me _why_ it fixes it, since i would expect those to end up beneath the span Buildkit creates, but we already know there's wonkiness in Buildkit's span setup, and we want this change independently, so going with it. Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
tempted to go into more detail, but best to just click the PR Signed-off-by: Alex Suraci <[email protected]>
|
@jedevc for sure - added! Will merge on green. |
[](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [dagger/dagger](https://togithub.com/dagger/dagger) | patch | `v0.12.4` -> `v0.12.5` | --- ### Release Notes <details> <summary>dagger/dagger (dagger/dagger)</summary> ### [`v0.12.5`](https://togithub.com/dagger/dagger/blob/HEAD/CHANGELOG.md#v0125---2024-08-15) [Compare Source](https://togithub.com/dagger/dagger/compare/v0.12.4...v0.12.5) ##### Added - cli: allow calling core functions directly by [@​helderco](https://togithub.com/helderco) in [https://github.com/dagger/dagger/pull/7310](https://togithub.com/dagger/dagger/pull/7310) \ Usage: `dagger core <function>` \ Example: `dagger core container from --address=alpine terminal` Works the same as `dagger call`, but instead of loading a user module, it only uses functions from the core API. Run `dagger core --help` for available functions. *Note that this command is experimental and the DX for calling core functions in the CLI may change in the future.* - New SDK aliases for `elixir` and `php` by [@​jedevc](https://togithub.com/jedevc) in [https://github.com/dagger/dagger/pull/8067](https://togithub.com/dagger/dagger/pull/8067) \ SDKs with experimental module support (elixir and php) can now be accessed using `--sdk=<sdk>` (such as `--sdk=elixir` and `--sdk=php` respectively) instead of the full form `--sdk=github.com/dagger/dagger/sdk/<sdk>@​<version>`. - Add `File.digest` method by [@​TomChv](https://togithub.com/TomChv) in [https://github.com/dagger/dagger/pull/8114](https://togithub.com/dagger/dagger/pull/8114) \ This method provides an efficient way to compute a file's digest, which unlock optimized file comparison or check for file changes. - Bundle CLI in the Engine image so that both parts of Dagger (CLI+Engine) ship as a single artefact by [@​gerhard](https://togithub.com/gerhard) in [https://github.com/dagger/dagger/pull/8147](https://togithub.com/dagger/dagger/pull/8147) ##### Changed - Reimplemented the OpenTelemetry data pipeline to avoid hangs and other complications by [@​vito](https://togithub.com/vito) in [https://github.com/dagger/dagger/pull/7996](https://togithub.com/dagger/dagger/pull/7996) ##### Fixed - Fix `Directory.glob` to correctly handle globs with subdir prefixes by [@​jedevc](https://togithub.com/jedevc) in [https://github.com/dagger/dagger/pull/8110](https://togithub.com/dagger/dagger/pull/8110) \ Previously, attempting to glob with a prefix subdir in a pattern like `<subdir>/*` would not match any files. This should now be fixed, and files in `<subdir>` will now be correctly matched. - Fix `failed to collect IDs from parent fields` error when module objects contain fields with nil values by @​jedevc/[@​sipsma](https://togithub.com/sipsma) in [https://github.com/dagger/dagger/pull/8132](https://togithub.com/dagger/dagger/pull/8132) - Fixed enum lists in modules by [@​helderco](https://togithub.com/helderco) in [https://github.com/dagger/dagger/pull/8096](https://togithub.com/dagger/dagger/pull/8096) - Fixed referring to module's own objects/interfaces/enums in constructor signature by [@​jedevc](https://togithub.com/jedevc) in [https://github.com/dagger/dagger/pull/8115](https://togithub.com/dagger/dagger/pull/8115) \ Previously, modules would fail to launch if they declared a constructor that contained a reference to a type from it's own module in it's args. - Fixed using custom enum types as optional arguments by [@​jedevc](https://togithub.com/jedevc) in [https://github.com/dagger/dagger/pull/8148](https://togithub.com/dagger/dagger/pull/8148) \ Previously, function calls that defined an optional argument would not be callable. - Make retrieving secret from command works on Windows by [@​wingyplus](https://togithub.com/wingyplus) in [https://github.com/dagger/dagger/pull/8121](https://togithub.com/dagger/dagger/pull/8121) ##### What to do next? - Read the [documentation](https://docs.dagger.io) - Join our [Discord server](https://discord.gg/dagger-io) - Follow us on [Twitter](https://twitter.com/dagger_io) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "after 4pm on thursday" in timezone America/Los_Angeles, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View the [repository job log](https://developer.mend.io/github/scottames/dots). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yNi4xIiwidXBkYXRlZEluVmVyIjoiMzguMjYuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: scottames-github-bot[bot] <162828115+scottames-github-bot[bot]@users.noreply.github.com>
[](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [dagger/dagger](https://togithub.com/dagger/dagger) | patch | `v0.12.4` -> `v0.12.5` | --- ### Release Notes <details> <summary>dagger/dagger (dagger/dagger)</summary> ### [`v0.12.5`](https://togithub.com/dagger/dagger/blob/HEAD/CHANGELOG.md#v0125---2024-08-15) [Compare Source](https://togithub.com/dagger/dagger/compare/v0.12.4...v0.12.5) ##### Added - cli: allow calling core functions directly by [@​helderco](https://togithub.com/helderco) in [https://github.com/dagger/dagger/pull/7310](https://togithub.com/dagger/dagger/pull/7310) \ Usage: `dagger core <function>` \ Example: `dagger core container from --address=alpine terminal` Works the same as `dagger call`, but instead of loading a user module, it only uses functions from the core API. Run `dagger core --help` for available functions. *Note that this command is experimental and the DX for calling core functions in the CLI may change in the future.* - New SDK aliases for `elixir` and `php` by [@​jedevc](https://togithub.com/jedevc) in [https://github.com/dagger/dagger/pull/8067](https://togithub.com/dagger/dagger/pull/8067) \ SDKs with experimental module support (elixir and php) can now be accessed using `--sdk=<sdk>` (such as `--sdk=elixir` and `--sdk=php` respectively) instead of the full form `--sdk=github.com/dagger/dagger/sdk/<sdk>@​<version>`. - Add `File.digest` method by [@​TomChv](https://togithub.com/TomChv) in [https://github.com/dagger/dagger/pull/8114](https://togithub.com/dagger/dagger/pull/8114) \ This method provides an efficient way to compute a file's digest, which unlock optimized file comparison or check for file changes. - Bundle CLI in the Engine image so that both parts of Dagger (CLI+Engine) ship as a single artefact by [@​gerhard](https://togithub.com/gerhard) in [https://github.com/dagger/dagger/pull/8147](https://togithub.com/dagger/dagger/pull/8147) ##### Changed - Reimplemented the OpenTelemetry data pipeline to avoid hangs and other complications by [@​vito](https://togithub.com/vito) in [https://github.com/dagger/dagger/pull/7996](https://togithub.com/dagger/dagger/pull/7996) ##### Fixed - Fix `Directory.glob` to correctly handle globs with subdir prefixes by [@​jedevc](https://togithub.com/jedevc) in [https://github.com/dagger/dagger/pull/8110](https://togithub.com/dagger/dagger/pull/8110) \ Previously, attempting to glob with a prefix subdir in a pattern like `<subdir>/*` would not match any files. This should now be fixed, and files in `<subdir>` will now be correctly matched. - Fix `failed to collect IDs from parent fields` error when module objects contain fields with nil values by @​jedevc/[@​sipsma](https://togithub.com/sipsma) in [https://github.com/dagger/dagger/pull/8132](https://togithub.com/dagger/dagger/pull/8132) - Fixed enum lists in modules by [@​helderco](https://togithub.com/helderco) in [https://github.com/dagger/dagger/pull/8096](https://togithub.com/dagger/dagger/pull/8096) - Fixed referring to module's own objects/interfaces/enums in constructor signature by [@​jedevc](https://togithub.com/jedevc) in [https://github.com/dagger/dagger/pull/8115](https://togithub.com/dagger/dagger/pull/8115) \ Previously, modules would fail to launch if they declared a constructor that contained a reference to a type from it's own module in it's args. - Fixed using custom enum types as optional arguments by [@​jedevc](https://togithub.com/jedevc) in [https://github.com/dagger/dagger/pull/8148](https://togithub.com/dagger/dagger/pull/8148) \ Previously, function calls that defined an optional argument would not be callable. - Make retrieving secret from command works on Windows by [@​wingyplus](https://togithub.com/wingyplus) in [https://github.com/dagger/dagger/pull/8121](https://togithub.com/dagger/dagger/pull/8121) ##### What to do next? - Read the [documentation](https://docs.dagger.io) - Join our [Discord server](https://discord.gg/dagger-io) - Follow us on [Twitter](https://twitter.com/dagger_io) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "after 4pm on thursday" in timezone America/Los_Angeles, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View the [repository job log](https://developer.mend.io/github/scottames/containers). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yNi4xIiwidXBkYXRlZEluVmVyIjoiMzguMjYuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: scottames-github-bot[bot] <162828115+scottames-github-bot[bot]@users.noreply.github.com>
[](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [dagger/dagger](https://togithub.com/dagger/dagger) | patch | `v0.12.4` -> `v0.12.5` | --- ### Release Notes <details> <summary>dagger/dagger (dagger/dagger)</summary> ### [`v0.12.5`](https://togithub.com/dagger/dagger/blob/HEAD/CHANGELOG.md#v0125---2024-08-15) [Compare Source](https://togithub.com/dagger/dagger/compare/v0.12.4...v0.12.5) ##### Added - cli: allow calling core functions directly by [@​helderco](https://togithub.com/helderco) in [https://github.com/dagger/dagger/pull/7310](https://togithub.com/dagger/dagger/pull/7310) \ Usage: `dagger core <function>` \ Example: `dagger core container from --address=alpine terminal` Works the same as `dagger call`, but instead of loading a user module, it only uses functions from the core API. Run `dagger core --help` for available functions. *Note that this command is experimental and the DX for calling core functions in the CLI may change in the future.* - New SDK aliases for `elixir` and `php` by [@​jedevc](https://togithub.com/jedevc) in [https://github.com/dagger/dagger/pull/8067](https://togithub.com/dagger/dagger/pull/8067) \ SDKs with experimental module support (elixir and php) can now be accessed using `--sdk=<sdk>` (such as `--sdk=elixir` and `--sdk=php` respectively) instead of the full form `--sdk=github.com/dagger/dagger/sdk/<sdk>@​<version>`. - Add `File.digest` method by [@​TomChv](https://togithub.com/TomChv) in [https://github.com/dagger/dagger/pull/8114](https://togithub.com/dagger/dagger/pull/8114) \ This method provides an efficient way to compute a file's digest, which unlock optimized file comparison or check for file changes. - Bundle CLI in the Engine image so that both parts of Dagger (CLI+Engine) ship as a single artefact by [@​gerhard](https://togithub.com/gerhard) in [https://github.com/dagger/dagger/pull/8147](https://togithub.com/dagger/dagger/pull/8147) ##### Changed - Reimplemented the OpenTelemetry data pipeline to avoid hangs and other complications by [@​vito](https://togithub.com/vito) in [https://github.com/dagger/dagger/pull/7996](https://togithub.com/dagger/dagger/pull/7996) ##### Fixed - Fix `Directory.glob` to correctly handle globs with subdir prefixes by [@​jedevc](https://togithub.com/jedevc) in [https://github.com/dagger/dagger/pull/8110](https://togithub.com/dagger/dagger/pull/8110) \ Previously, attempting to glob with a prefix subdir in a pattern like `<subdir>/*` would not match any files. This should now be fixed, and files in `<subdir>` will now be correctly matched. - Fix `failed to collect IDs from parent fields` error when module objects contain fields with nil values by @​jedevc/[@​sipsma](https://togithub.com/sipsma) in [https://github.com/dagger/dagger/pull/8132](https://togithub.com/dagger/dagger/pull/8132) - Fixed enum lists in modules by [@​helderco](https://togithub.com/helderco) in [https://github.com/dagger/dagger/pull/8096](https://togithub.com/dagger/dagger/pull/8096) - Fixed referring to module's own objects/interfaces/enums in constructor signature by [@​jedevc](https://togithub.com/jedevc) in [https://github.com/dagger/dagger/pull/8115](https://togithub.com/dagger/dagger/pull/8115) \ Previously, modules would fail to launch if they declared a constructor that contained a reference to a type from it's own module in it's args. - Fixed using custom enum types as optional arguments by [@​jedevc](https://togithub.com/jedevc) in [https://github.com/dagger/dagger/pull/8148](https://togithub.com/dagger/dagger/pull/8148) \ Previously, function calls that defined an optional argument would not be callable. - Make retrieving secret from command works on Windows by [@​wingyplus](https://togithub.com/wingyplus) in [https://github.com/dagger/dagger/pull/8121](https://togithub.com/dagger/dagger/pull/8121) ##### What to do next? - Read the [documentation](https://docs.dagger.io) - Join our [Discord server](https://discord.gg/dagger-io) - Follow us on [Twitter](https://twitter.com/dagger_io) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "after 4pm on thursday" in timezone America/Los_Angeles, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View the [repository job log](https://developer.mend.io/github/scottames/daggerverse). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yNi4xIiwidXBkYXRlZEluVmVyIjoiMzguMjYuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: scottames-github-bot[bot] <162828115+scottames-github-bot[bot]@users.noreply.github.com>
Replaces the live one-shot pub/sub approach with saving telemetry to a per-client database.
Previously:
PubSubas the global tracer provider for all telemetry in the engine.PubSub, which would send relevant spans to all affected clients, including keeping track of parentsPubSubwould drain when all spans for a client have completed and all stdio logs saw EOF.This model forced every decision to be made in "one shot" - during exporting. There was no persistence, so the only way to tell we got all of a client's data is to watch for its activity to stop, which is fraught with peril.
Now:
TracerProviderandLoggerProviderinstalled for each request, which writes to the client's own SQLite database.Now that there's persistence we can decouple the event writing from the event reading and just read all events until conceptual EOF when a client shuts down. No more draining on spans completing. No more hanging waiting for new events. Just a pretty straightforward state machine.
TODO:
Worth mentioning:
CREATE TABLE IF NOT EXISTS.dagger-entrypoint.shto match the value we set in our production CI runners (1048576). Otherwise it was picking up the super low default of1024on my system which made tests fail.testandtestdevjobs now redirect theirdagger calloutput to a file and upload it as an artifact, to work around Long log lines slow down the runner actions/runner#1031