-
Notifications
You must be signed in to change notification settings - Fork 3
dev on rayci #259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
dev on rayci #259
Conversation
terminates windows instance that runs for too long Signed-off-by: Lonnie Liu <[email protected]>
Signed-off-by: Lonnie Liu <[email protected]>
with default configs in a file separate from the config definition. Signed-off-by: Lonnie Liu <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR titled "dev on rayci" introduces several new API types and functions to support user authentication and CI management, along with adding new CLI entry points and reverse proxy support.
- Introduces login-related API types (token, login, and logout requests/responses) in reefapi/login.go.
- Adds a new function to clean up dead Windows CI instances in reefd/reaper.go and enhances authentication flow in reefd/auth_gate.go.
- Provides new main packages for raycirun and doorway to support build orchestration and proxy functionality.
Reviewed Changes
Copilot reviewed 17 out of 29 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
reefd/reefapi/login.go | New API types for login and logout requests/responses with minor grammar issues in comments. |
reefd/reaper.go | Added function to terminate dead Windows instances using AWS SDK. |
reefd/context_test.go | Test coverage for context-based user functions. |
reefd/context.go | Context functions for propagating user information. |
reefd/auth_gate.go | Authentication gate implementation with session handling. |
raycirun/raycirun/main.go | New CLI entry point invoking raycirun package main functions. |
raycirun/main.go | Main function for raycirun CLI managing build configurations. |
doorway/main.go | Reverse proxy implementation using autocert for HTTPS support. |
Files not reviewed (12)
- doorway/_build/.dockerignore: Language not supported
- doorway/_build/.gitignore: Language not supported
- doorway/_build/Dockerfile: Language not supported
- doorway/build.sh: Language not supported
- go.mod: Language not supported
- reefd/_build/.dockerignore: Language not supported
- reefd/_build/.gitignore: Language not supported
- reefd/_build/config.hujson: Language not supported
- reefd/_dev/.gitignore: Language not supported
- reefd/_tmpl/index.html: Language not supported
- reefd/build.sh: Language not supported
- reefd/build_dev.sh: Language not supported
// SSHSignature is the signature structure of the verifying an token request | ||
// that is signed with an SSH key. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] Consider rephrasing the comment for clarity, for example: 'SSHSignature represents the signature used to verify a token request signed with an SSH key'.
// SSHSignature is the signature structure of the verifying an token request | |
// that is signed with an SSH key. | |
// SSHSignature represents the signature used to verify a token request | |
// signed with an SSH key. |
Copilot uses AI. Check for mistakes.
Rest []byte `json:"rest,omitempty"` | ||
} | ||
|
||
// LoginRequest is the request to sign in as an user. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace 'an user' with 'a user' to correct the grammar.
// LoginRequest is the request to sign in as an user. | |
// LoginRequest is the request to sign in as a user. |
Copilot uses AI. Check for mistakes.
No description provided.