Skip to content

Rename workflow files and add datamanager deployment workflows#600

Closed
forstmeier wants to merge 1 commit intomasterfrom
06-16-rename_workflow_files_and_add_datamanager_deployment_workflows
Closed

Rename workflow files and add datamanager deployment workflows#600
forstmeier wants to merge 1 commit intomasterfrom
06-16-rename_workflow_files_and_add_datamanager_deployment_workflows

Conversation

@forstmeier
Copy link
Copy Markdown
Collaborator

@forstmeier forstmeier commented Jun 17, 2025

Overview

Changes

  • rename workflow files for clarity
  • remove redundant/outdated application infrastructure workflow
  • add datamanager service deployment workflows

Comments

I was thinking we'll want a way to have datamanager available outside market hours for model training so this is a stab at that. Open to other ideas.

Summary by CodeRabbit

  • New Features

    • Introduced new workflows for scheduled application launch and teardown, as well as manual and scheduled management of the datamanager service.
  • Chores

    • Removed legacy workflows for infrastructure deployment and lifecycle management.
    • Updated job names in code quality, stale issue management, and test workflows for improved clarity.

Copilot AI review requested due to automatic review settings June 17, 2025 02:24
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Jun 17, 2025

Walkthrough

This change restructures GitHub Actions workflows for infrastructure and application lifecycle management. It deletes the combined scheduled lifecycle workflow and the deploy workflow, introduces separate scheduled workflows for launching and tearing down both the application and datamanager services, and makes minor job name updates in code quality and test workflows.

Changes

File(s) Change Summary
.github/workflows/lifecycle.yaml, .github/workflows/deploy.yaml Deleted scheduled infrastructure management and deploy workflows.
.github/workflows/launch_application.yaml, .github/workflows/teardown_application.yaml Added new scheduled workflows for launching and tearing down the application.
.github/workflows/launch_datamanager.yaml, .github/workflows/teardown_datamanager.yaml Added new workflows for manual launch and scheduled teardown of the datamanager service.
.github/workflows/check_code_quality.yaml Renamed job from python_quality_check to run_python_quality_check.
.github/workflows/close_stale_issues_and_pull_requests.yaml Renamed job from stale to check_stale_items.
.github/workflows/run_tests.yaml Renamed job identifier from python_test_and_coverage to run_python_test_and_coverage.

Sequence Diagram(s)

sequenceDiagram
    participant Scheduler
    participant GitHub Actions
    participant Flox
    participant Pulumi

    Scheduler->>GitHub Actions: Trigger (scheduled or manual)
    GitHub Actions->>GitHub Actions: Time/Day Check (if needed)
    GitHub Actions->>GitHub Actions: Checkout Code
    GitHub Actions->>Flox: Install Flox
    GitHub Actions->>Flox: Activate Environment
    GitHub Actions->>Pulumi: Run pulumi up/down (deploy/teardown)
    Pulumi-->>GitHub Actions: Result
Loading

Possibly related PRs

Suggested reviewers

  • chrisaddy

Poem

In the warren of workflows, we hop and we leap,
Old scripts retire, while new ones we keep.
Launch in the morning, teardown at night,
Rabbits and actions—what a delight!
With Flox and Pulumi, the garden is neat,
Our CI carrots are perfectly sweet.
🥕


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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Copy Markdown
Collaborator Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@forstmeier forstmeier added this to the Refactor milestone Jun 17, 2025
Copy link
Copy Markdown
Contributor

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 renames existing workflow files and introduces new workflows for deploying and tearing down the datamanager service. Key changes include the addition of new datamanager deployment and teardown workflows, an update to the scheduled application management workflow naming, and the removal of the legacy deploy workflow.

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/teardown_datamanager.yaml New workflow for scheduled teardown of the datamanager service
.github/workflows/deploy_datamanager.yaml New workflow for manual deployment of the datamanager service
.github/workflows/deploy_and_teardown_application.yaml Renamed and updated to manage application scheduling with improved job names
.github/workflows/deploy.yaml Removed legacy deploy workflow

Comment thread .github/workflows/deploy_and_teardown_application.yaml Outdated
@graphite-app
Copy link
Copy Markdown

graphite-app Bot commented Jun 17, 2025

Graphite Automations

"Assign author to pull request" took an action on this PR • (06/17/25)

1 assignee was added to this PR based on John Forstmeier's automation.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🧹 Nitpick comments (3)
.github/workflows/teardown_datamanager.yaml (2)

17-17: Remove trailing whitespace.
YAMLlint flagged trailing spaces on line 17. Please delete the unnecessary spaces to comply with linting rules.


39-39: Ensure newline at end of file.
Add a newline after the last line to satisfy the new-line-at-end-of-file lint rule.

.github/workflows/deploy_datamanager.yaml (1)

21-21: Ensure newline at end of file.
Add a trailing newline to satisfy the new-line-at-end-of-file lint rule.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between e6c35a7 and 3c89f47.

📒 Files selected for processing (4)
  • .github/workflows/deploy.yaml (0 hunks)
  • .github/workflows/deploy_and_teardown_application.yaml (2 hunks)
  • .github/workflows/deploy_datamanager.yaml (1 hunks)
  • .github/workflows/teardown_datamanager.yaml (1 hunks)
💤 Files with no reviewable changes (1)
  • .github/workflows/deploy.yaml
🧰 Additional context used
🪛 YAMLlint (1.37.1)
.github/workflows/deploy_datamanager.yaml

[error] 21-21: no new line character at the end of file

(new-line-at-end-of-file)

.github/workflows/teardown_datamanager.yaml

[error] 17-17: trailing spaces

(trailing-spaces)


[error] 39-39: no new line character at the end of file

(new-line-at-end-of-file)

⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Run Python tests
🔇 Additional comments (2)
.github/workflows/deploy_datamanager.yaml (1)

1-3: Workflow trigger and steps look correct.
The workflow_dispatch trigger and Pulumi/Flox steps are well-configured for manual datamanager deployments.

.github/workflows/deploy_and_teardown_application.yaml (1)

25-26: ```shell
#!/bin/bash

Check for Flox configuration files in the repo root

echo "Searching for Flox configuration files..."
config_files=$(ls flox.toml flox.yaml floxfile.* 2>/dev/null || true)
if [ -n "$config_files" ]; then
echo "Found Flox configuration file(s):"
echo "$config_files"
echo "Displaying contents of the first file:"
head -n 200 $(echo "$config_files" | head -n1)
else
echo "No Flox configuration file (flox.toml, flox.yaml, or floxfile.*) found"
fi


</details>

</blockquote></details>

</details>

<!-- This is an auto-generated comment by CodeRabbit for review status -->

Comment thread .github/workflows/teardown_datamanager.yaml
Comment thread .github/workflows/deploy_and_teardown_application.yaml Outdated
@forstmeier forstmeier force-pushed the 06-16-rename_workflow_files_and_add_datamanager_deployment_workflows branch from 3c89f47 to 3235ee6 Compare June 18, 2025 00:54
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (3)
.github/workflows/deploy_datamanager.yaml (1)

21-21: Add missing newline at end of file
YAMLlint reports no newline at EOF. Please append a blank line after the last command to satisfy the new-line-at-end-of-file rule.

.github/workflows/teardown_datamanager.yaml (2)

17-17: Remove trailing spaces
Line 17 contains unnecessary trailing whitespace. Please delete the extra spaces to clean up the shell script block.


39-39: Add missing newline at end of file
YAMLlint flags a missing newline at EOF. Append a blank line after the final pulumi destroy step to comply with YAML conventions.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 3c89f47 and 3235ee6.

📒 Files selected for processing (4)
  • .github/workflows/deploy.yaml (0 hunks)
  • .github/workflows/deploy_and_teardown_application.yaml (2 hunks)
  • .github/workflows/deploy_datamanager.yaml (1 hunks)
  • .github/workflows/teardown_datamanager.yaml (1 hunks)
💤 Files with no reviewable changes (1)
  • .github/workflows/deploy.yaml
🚧 Files skipped from review as they are similar to previous changes (1)
  • .github/workflows/deploy_and_teardown_application.yaml
🧰 Additional context used
🪛 YAMLlint (1.37.1)
.github/workflows/deploy_datamanager.yaml

[error] 21-21: no new line character at the end of file

(new-line-at-end-of-file)

.github/workflows/teardown_datamanager.yaml

[error] 17-17: trailing spaces

(trailing-spaces)


[error] 39-39: no new line character at the end of file

(new-line-at-end-of-file)

⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Run Python tests

@forstmeier forstmeier force-pushed the 06-16-rename_workflow_files_and_add_datamanager_deployment_workflows branch from 3235ee6 to 037e9bc Compare June 18, 2025 01:03
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (3)
.github/workflows/teardown_datamanager.yaml (3)

17-17: Remove trailing whitespace
There's trailing spaces on this blank line (17) which will trigger lint errors. Please delete them.


12-24: Consider extracting market-hours check into a composite action
This “Check if within market hours” logic appears in multiple workflows. Packaging it as a reusable composite action would DRY up the pipelines and centralize maintenance.


39-39: Add terminating newline
POSIX-compliant files should end with a newline to avoid warnings in various tools.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 3235ee6 and 037e9bc.

📒 Files selected for processing (9)
  • .github/workflows/check_code_quality.yaml (1 hunks)
  • .github/workflows/close_stale_issues_and_pull_requests.yaml (1 hunks)
  • .github/workflows/deploy.yaml (0 hunks)
  • .github/workflows/launch_application.yaml (1 hunks)
  • .github/workflows/launch_datamanager.yaml (1 hunks)
  • .github/workflows/lifecycle.yaml (0 hunks)
  • .github/workflows/run_tests.yaml (1 hunks)
  • .github/workflows/teardown_application.yaml (1 hunks)
  • .github/workflows/teardown_datamanager.yaml (1 hunks)
💤 Files with no reviewable changes (2)
  • .github/workflows/deploy.yaml
  • .github/workflows/lifecycle.yaml
✅ Files skipped from review due to trivial changes (6)
  • .github/workflows/check_code_quality.yaml
  • .github/workflows/run_tests.yaml
  • .github/workflows/close_stale_issues_and_pull_requests.yaml
  • .github/workflows/teardown_application.yaml
  • .github/workflows/launch_datamanager.yaml
  • .github/workflows/launch_application.yaml
🧰 Additional context used
🪛 YAMLlint (1.37.1)
.github/workflows/teardown_datamanager.yaml

[error] 17-17: trailing spaces

(trailing-spaces)


[error] 39-39: no new line character at the end of file

(new-line-at-end-of-file)

⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Run Python tests
🔇 Additional comments (1)
.github/workflows/teardown_datamanager.yaml (1)

20-21: Explicit base-10 conversion is correct
The use of 10#$current_time prevents unintended octal parsing of leading-zero timestamps.

@github-actions
Copy link
Copy Markdown

Marked stale due to inactivity. Remove stale label or comment or this will be closed.

@github-actions github-actions Bot added the stale Old issue or pull request label Jun 27, 2025
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jul 5, 2025

Closed due to inactivity.

@github-actions github-actions Bot closed this Jul 5, 2025
@forstmeier forstmeier deleted the 06-16-rename_workflow_files_and_add_datamanager_deployment_workflows branch July 13, 2025 00:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale Old issue or pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants