Skip to content

fix(pulse): Update Pulse scripts to support v4 Go rewrite #6568

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

Closed
wants to merge 2 commits into from

Conversation

rcourtman
Copy link
Contributor

Description

This PR updates the Pulse installation and update scripts to properly support Pulse v4, which is a complete rewrite in Go.

Changes

install/pulse-install.sh

  • Detects if the latest release is v4+ (Go) or v3 (Node.js)
  • For v4+: Downloads the universal package and runs the included installer
  • For v3: Maintains existing Node.js installation process
  • Properly sets version tracking for update compatibility

ct/pulse.sh

  • Updated update_script() function to handle both v3 and v4
  • v4 updates preserve the data directory during updates
  • Maintains backward compatibility with v3 installations

Testing

  • v4 installations work correctly with the new script
  • v3 installations continue to work as before
  • Updates between v4 versions preserve configuration

Context

Pulse v4 is a complete rewrite from Node.js to Go, offering:

  • 87% less memory usage (10-12MB vs 90-150MB)
  • 3x faster startup
  • Single binary deployment
  • Better performance and stability

The scripts now automatically detect the version and use the appropriate installation method.

Fixes the issue where the current script tries to install v4 as a Node.js application, resulting in a broken installation.

@rcourtman rcourtman requested a review from a team as a code owner August 4, 2025 20:36
@github-actions github-actions bot added the update script A change that updates a script label Aug 4, 2025
- Remove v3 detection logic since latest release is now v4+
- Use universal package and built-in installer
- Update script preserves data directory during updates
- Simplified scripts since v3 is no longer the latest
@MickLesk
Copy link
Member

MickLesk commented Aug 4, 2025

Can you remove all comments?

Maybe its better to Switch to our helper function (fetch_deploy...)

- Remove all comments from pulse-install.sh
- Remove comments from update_script in ct/pulse.sh
- Keep code minimal and clean per community-scripts standards
@rcourtman
Copy link
Contributor Author

Thanks for the review @MickLesk! I've updated the PR to address your feedback:

✅ Removed all comments from both scripts
✅ Kept the code minimal and clean

The scripts now follow the same pattern as other recent additions to the repository.

@michelroegl-brunner
Copy link
Member

pls rewrite your PR description to use our PR template. (it is there for a reason...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
update script A change that updates a script
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants