Skip to content

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

Open
wants to merge 49 commits into
base: main
Choose a base branch
from
Open

dev on rayci #259

wants to merge 49 commits into from

Conversation

aslonnie
Copy link
Collaborator

No description provided.

@aslonnie aslonnie requested a review from Copilot May 2, 2025 18:32
Copy link

@Copilot Copilot AI left a 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

Comment on lines +9 to +10
// SSHSignature is the signature structure of the verifying an token request
// that is signed with an SSH key.
Copy link
Preview

Copilot AI May 2, 2025

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'.

Suggested change
// 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.
Copy link
Preview

Copilot AI May 2, 2025

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.

Suggested change
// 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.

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