Skip to content

Conversation

mekarpeles
Copy link
Member

@mekarpeles mekarpeles commented Jul 13, 2025

Closes #11019

Fixes deploys

Technical

Testing

Screenshot

Stakeholders

@Copilot Copilot AI review requested due to automatic review settings July 13, 2025 22:55
@mekarpeles mekarpeles added Affects: Admin/Maintenance Issues relating to support scripts, bots, cron jobs and admin web pages. [managed] Priority: 1 Do this week, receiving emails, time sensitive, . [managed] labels Jul 13, 2025
Copy link
Contributor

@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 fixes several issues in the deployment script and adds new tag/release workflows.

  • Defines OL_REPO globally and updates all tag_deploy calls to use it
  • Changes how the latest tag is determined and adds tag and release subcommands
  • Adjusts interactive prompts in deploy_wizard for more intuitive defaults
Comments suppressed due to low confidence (3)

scripts/deployment/deploy.sh:611

  • The new tag and release subcommands should be documented in the script’s usage/help section so users know they are available.
elif [ "$1" == "tag" ]; then

scripts/deployment/deploy.sh:568

  • The new conditional flow in deploy_wizard (skipping deploy and optionally checking sync) isn't covered by automated tests. Consider refactoring for testability or adding tests for all interactive paths.
    read -p "[Now] Run openlibrary deploy & audit now? [Y/n]..." answer

scripts/deployment/deploy.sh:406

  • [nitpick] Removing the PID from the background-start message makes it harder to trace processes during debugging. Consider restoring the PID output for better visibility.
        echo "(started in background)"

Copy link
Collaborator

@cdrini cdrini left a comment

Choose a reason for hiding this comment

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

One bug, and one spot where some duplicated code's been added. Merge at your discretion, I can't decide how problematic that bug is -- we might want to add at least a warning or a notice. I'm a bit tight on time today so can't fix these rn. We can unblock deploys by having Jim make the PID fix locally, that should fix the deploy if his version of bash also for some reason errors with the -1 index.

@jimchamp jimchamp merged commit f2e130e into master Jul 22, 2025
7 checks passed
@jimchamp jimchamp deleted the fix-tag-deploy branch July 22, 2025 19:58
@mekarpeles mekarpeles mentioned this pull request Jul 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Affects: Admin/Maintenance Issues relating to support scripts, bots, cron jobs and admin web pages. [managed] Needs: Testing Priority: 1 Do this week, receiving emails, time sensitive, . [managed]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deploy Script fails at tagging releases

3 participants