Skip to content

feat: PoC of generating Go bindings for augurs' outlier detection using Gravity#359

Closed
sd2k wants to merge 7 commits intorand-0.9from
outlier-components-for-go-using-gravity
Closed

feat: PoC of generating Go bindings for augurs' outlier detection using Gravity#359
sd2k wants to merge 7 commits intorand-0.9from
outlier-components-for-go-using-gravity

Conversation

@sd2k
Copy link
Collaborator

@sd2k sd2k commented Sep 23, 2025

This is a proof of concept of using gravity to generate Go bindings
for augurs' outlier detection functionality. There are two stages:

  1. Build a Wasm component which wraps augurs-outlier in a simple
    interface that accepts and returns a string (since that is all
    Gravity supports right now).
  2. Generate Go bindings from the Wasm component using gravity.

This results in a Go package that can be used to detect outliers using
the augurs code.

This commit is an attempt to remove rand 0.8 from the dependency tree
and replace it with rand 0.9, and by extension getrandom 0.3.

Right now it has a lot of patched dependencies, which I'm using as
a todo-list to know where I need to contribute various patches upstream.
…ng Gravity

This is a proof of concept of using [gravity] to generate Go bindings
for augurs' outlier detection functionality. There are two stages:

1. Build a Wasm component which wraps `augurs-outlier` in a simple
   interface that accepts and returns a string (since that is all
   Gravity supports right now).
2. Generate Go bindings from the Wasm component using gravity.

This results in a Go package that can be used to detect outliers using
the augurs code.

[gravity]: https://github.com/arcjet/gravity
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Sep 23, 2025

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch outlier-components-for-go-using-gravity

Tip

👮 Agentic pre-merge checks are now available in preview!

Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.

  • Built-in checks – Quickly apply ready-made checks to enforce title conventions, require pull request descriptions that follow templates, validate linked issues for compliance, and more.
  • Custom agentic checks – Define your own rules using CodeRabbit’s advanced agentic capabilities to enforce organization-specific policies and workflows. For example, you can instruct CodeRabbit’s agent to verify that API documentation is updated whenever API schema files are modified in a PR. Note: Upto 5 custom checks are currently allowed during the preview period. Pricing for this feature will be announced in a few weeks.

Please see the documentation for more information.

Example:

reviews:
  pre_merge_checks:
    custom_checks:
      - name: "Undocumented Breaking Changes"
        mode: "warning"
        instructions: |
          Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).

Please share your feedback with us on this Discord post.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@sd2k
Copy link
Collaborator Author

sd2k commented Oct 7, 2025

Superseded by #367

@sd2k sd2k closed this Oct 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments