Skip to content

Conversation

@cognifloyd
Copy link
Member

@cognifloyd cognifloyd commented Mar 6, 2025

This PR is working towards doing packaging via pantsbuild. Eventually, I hope to archive and stop using st2-packages.git.

The post/pre install/remove scriptlets (technically only rpm uses the term scriptlets, but I'm using this term to refer to the scripts for both rpm/deb) will need to be in this repo to include them in the pants+nfpm -built rpm/deb packages. I tried to preserve the git history and git authorship, though I modified the commits I cherry-picked to only include the target scriptlets. I also excluded old irrelevant scriptlets that these commits touched, like scripts specifically for: mistral, st2resultstracker, and st2exporter. I also updated the cherry-picked commit messages to include a link to the original commit.

One of the last commits renames the scriptlets and puts them under packaging/*/scripts for use by pants+nfpm. This PR does not change the contents of these files at all. In follow-up PRs, I will refactor these scripts and fix the shellcheck errors that I've temporarily ignored.

dennybaa and others added 30 commits March 6, 2025 16:42
nzlosh and others added 9 commits March 6, 2025 16:42
Fixes docker build where systemctl is not available during the st2 package installation resulting in a failure.

```
Setting up st2 (3.6dev-47) ...
System has not been booted with systemd as init system (PID 1). Can't operate.
dpkg: error processing package st2 (--configure):
 installed st2 package post-installation script subprocess returned error exit status 1
```

Cherry-picked from StackStorm/st2-packages@e6903ed
These scripts will be heavliy refactored in a follow-up PR.
That refactor will also fix the shellcheck issues.
@cognifloyd cognifloyd added this to the pants milestone Mar 6, 2025
@cognifloyd cognifloyd self-assigned this Mar 6, 2025
@pull-request-size pull-request-size bot added the size/L PR that changes 100-499 lines. Requires some effort to review. label Mar 6, 2025
Copy link
Member Author

@cognifloyd cognifloyd left a comment

Choose a reason for hiding this comment

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

Here are links to the files in st2-packages. They should be the same including their git history.

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member Author

@cognifloyd cognifloyd Mar 6, 2025

Choose a reason for hiding this comment

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

@cognifloyd cognifloyd requested a review from a team March 7, 2025 14:37
@cognifloyd cognifloyd merged commit 8f826bc into master Mar 7, 2025
117 of 120 checks passed
@cognifloyd cognifloyd deleted the packaging-scriptlets_copy branch March 7, 2025 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance pantsbuild size/L PR that changes 100-499 lines. Requires some effort to review. st2-packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants