Commit graph

877 commits

Author SHA1 Message Date
Rune Morling
7da1fa8043
common: Add script for showing build/commit history (#895)
**Summary**

This PR adds a script that allows one to easily print a few things for a
given timespan:

- Commit log
- Build log (all builds on the build server)
- Update log (all package updates based on the build log)

The output can be given for both terminal (`-f tty`, the default) and
Markdown (`-f md`). The former includes clickable links for compatible
terminal emulators.

Resolves #713

**Test Plan**

Terminal output:


![afbeelding](f912e61d-cfc3-4ee4-a9ea-75676901ebbf)

Markdown output:

6 commits:
- [.github: use 'Package Update Request' label in issue
template](2972b0138a)
- [common: Add script for showing build/commit
history](71c2f4d169)
- [corectrl: Update to
v1.3.8](4d768beaf3)
- [python-idna: Update to
3.6](528bbb9aa3)
- [python-imageio: Update to
2.33.0](44fb100bff)
- [python-importlib-resources: Update to
6.1.1](0d6f0e9bcd)

6 builds:
- [corectrl
1.3.8-35](4d768beaf3)
- [gnucash
5.4-48](7e4e770248)
- [kmymoney
5.1.3-29](34dee6618e)
- [python-idna
3.6-12](528bbb9aa3)
- [python-imageio
2.33.0-8](44fb100bff)
- [python-importlib-resources
6.1.1-10](0d6f0e9bcd)

6 updates:
- [corectrl
1.3.8-35](4d768beaf3)
- [gnucash
5.4-48](7e4e770248)
- [kmymoney
5.1.3-29](34dee6618e)
- [python-idna
3.6-12](528bbb9aa3)
- [python-imageio
2.33.0-8](44fb100bff)
- [python-importlib-resources
6.1.1-10](0d6f0e9bcd)

**Checklist**

- [x] Package was built and tested against unstable
2023-11-27 00:53:07 +01:00
Rune Morling
fc25643265
ci/package_checks: add check for commit message ending in ] (#889)
**Summary**

Adds a check for commit messages ending in a `]`. The comment is added
on the first file of the commit if there is any.

**Test Plan**

See [this test pull
request](https://github.com/silkeh/packages/pull/5/files#diff-fd36bdf870f06c81d1e087aca13513b1e87ec59e451f02eeee4e591e31a5992aR1)

**Checklist**

- [x] ~~Package was built and tested against unstable~~ n/a
2023-11-27 00:39:50 +01:00
Rune Morling
024b565d2a
ci/package_checks: exclude merge commits from checks/changelog (#887)
**Summary**

Exclude merge commits from the changelog generation. See, for example,
[this
changelog](6975160174),
which includes an entry for the merge commit.

**Test Plan**

See [this
changelog](6989475137).

**Checklist**

- [x] ~~Package was built and tested against unstable~~ n/a.
2023-11-27 00:38:15 +01:00
Silke Hofstra
8b0b0b8dd1 common: remove old script for listing package changes
Use `worklog.py commits` instead.
2023-11-26 16:31:01 +01:00
Silke Hofstra
469b6f0dc4 common: Add script for showing build/commit history 2023-11-26 16:24:54 +01:00
Silke Hofstra
d990a0e326 ci/package_checks: add check for commit message ending in ] 2023-11-25 17:47:27 +01:00
Silke Hofstra
0fadc995b7 ci/package_checks: add check for SPDX license identifiers 2023-11-25 17:18:17 +01:00
Silke Hofstra
91473516d7 ci/package_checks: fix crash on dictionary dependencies 2023-11-25 17:18:17 +01:00
Silke Hofstra
924f09575f ci/package_checks: exclude merge commits from checks/changelog 2023-11-25 14:48:05 +01:00
Joey Riches
c5f4ae1a4a common: Remove unneeded packages file
**Summary**
- The packages file used to be a point of contact to see all the repos
  that needed to be cloned when we used individual git repos. Now we're
  monorepo this is no longer a concern.
2023-11-23 15:09:01 +00:00
Silke Hofstra
22f01a7e19 ci/package_checks: Add check for order of {build,check,run}deps 2023-10-30 20:20:57 +01:00
Joey Riches
e55a2772fc common: Small `publish() improvements in rebuild-template-script
**Summary**
2023-10-27 15:58:44 +01:00
Reilly Brogan
d4056404eb
Add zsh monorepo helper script (#543)
**Summary**

Add helper script for zsh for working with the monorepo

**Test Plan**

Exercised all functions in script with a fresh shell. Exercised package
name completions.

**Checklist**

- [x] Script was built and tested against unstable

fixes #486
2023-10-24 16:53:48 -05:00
David Harder
7f8fa67b1d
common/Scripts: replace annoying pushd usage with cd in helpers.sh (#618)
**Summary**

To match .fish and .zsh helpers. Plus, it was annoying having massive
pushd stacks.

**Test Plan**

Use helpers as normal, verify cd was being used

**Checklist**

- [ ] Package was built and tested against unstable N/A
2023-10-21 11:47:43 -05:00
Tracey Clark
b73a8e48a9 Add zsh helper script 2023-10-20 20:42:34 -05:00
Joey Riches
bcdd47c35d common: Parse build page json in buildserver-notification.sh
**Summary**
Make use of the new json output from the build page in order to obtain
more reliable results.

Additionally, get the tag from the package.yml stored in the latest commit
instead potentially tagging from any unstaged changes.

Lastly, take this opportunity to cleanup the script a little.
2023-10-20 19:49:47 +01:00
Joey Riches
de3ba6f9fb common/Scripts: replace annoying pushd usage with cd in helpers.sh
To match .fish and .zsh helpers. Plus, it was annoying having massive
pushd stacks.
2023-10-20 12:27:14 +01:00
Silke Hofstra
c155ac4f0d ci/package_checks: Fix syntax error 2023-10-18 20:37:34 +02:00
Silke Hofstra
0b4b9f1982 repo: add Git hooks 2023-10-18 20:31:58 +02:00
Joey Riches
d6107ee62b gnome-builder: fix builddep 2023-10-18 16:08:17 +01:00
Reilly Brogan
1963a9ac15
common: Make notify-complete more robust
Signed-off-by: Reilly Brogan <reilly@reillybrogan.com>
2023-10-18 08:28:51 -05:00
Reilly Brogan
4f7c777a5f
taskfile: Move to root of repo
There's no reason that this still needs to live in common, and putting it here allows tasks to correctly work when the current directory is some child of common.

Signed-off-by: Reilly Brogan <reilly@reillybrogan.com>
2023-10-13 14:44:41 -05:00
Reilly Brogan
ad66bbf609
common/Taskfile: Add clean-all action to remove _all_ eopkgs (#528)
**Summary**

Add `go-task clean-all` action to remove _all_ eopkgs found in the
monorepo

**Test Plan**

`go-task clean-all`

**Checklist**

- [ ] Package was built and tested against unstable N/A
2023-10-13 14:27:23 -05:00
Reilly Brogan
829e58b6b3
common: Allow dots in package names in new-package.sh (#500)
**Summary**

Allows dots in package names when creating a new package

**Test Plan**

`go-task new cairomm-1.16 https://penisland.com/foobar.tar.gz`

**Checklist**

- [ ] Package was built and tested against unstable n/a
2023-10-13 13:19:03 -05:00
Reilly Brogan
6ffd351409
ci: Render commits as comments (#474)
**Summary**

Render commits as notice messages in the diff.

**Test Plan**

See [this test PR](https://github.com/silkeh/packages/pull/3).

**Checklist**

- [x] ~~Package was built and tested against unstable~~ n/a
2023-10-13 13:17:28 -05:00
Joey Riches
134afb235e common/Taskfile: Add clean-all action to remove _all_ eopkgs 2023-10-12 21:06:29 +01:00
Silke Hofstra
f0a8725e80 common: Add Fish helper scripts 2023-10-11 18:21:20 +02:00
Joey Riches
2133153385 common: Allow dots in package names in new-package.sh 2023-10-10 19:39:57 +01:00
Silke Hofstra
3a64372137 ci: Render commits as summary 2023-10-10 19:48:46 +02:00
Reilly Brogan
069558e7f1
ci: cleanup and add check for bumped packages (#475)
**Summary**

- Perform an extensive cleanup of the package checks script
- Add a linter to check if a package has been bumped *once*. This is set
as a warning, so it doesn't interfere with PRs that do not require
rebuilds.

**Test Plan**

See [this test
PR](https://github.com/silkeh/packages/pull/4/files#diff-fd36bdf870f06c81d1e087aca13513b1e87ec59e451f02eeee4e591e31a5992a).

**Checklist**

- [x] ~~Package was built and tested against unstable~~ n/a
2023-10-10 12:04:22 -05:00
Silke Hofstra
419d2bb2dd ci/package_checks: add check for initial package release 2023-10-08 15:28:46 +02:00
Silke Hofstra
1c018fbc25 ci/package_checks: add check for bumped packages 2023-10-08 15:14:33 +02:00
Silke Hofstra
686ffc8580 ci/package_checks: add commits to checks 2023-10-08 15:10:34 +02:00
Silke Hofstra
b1059b3fef ci/package_checks: clean up package file helpers 2023-10-08 15:10:30 +02:00
Silke Hofstra
974838927f ci/package_checks: clean up running of checks 2023-10-08 14:55:28 +02:00
Silke Hofstra
746dafe2a4 ci/package_checks: cleanup Git command handling 2023-10-08 14:55:28 +02:00
Silke Hofstra
53f349884d ci/package_checks: extend GitHub action message support 2023-10-08 14:55:28 +02:00
Thomas Staudinger
3d053c29fa buildserver-notification: also use tags from pspec.xml 2023-10-08 00:23:30 +02:00
Silke Hofstra
10f3526864 Add flags for checking modified and untracked files 2023-10-07 18:18:04 +02:00
Silke Hofstra
1a4a1a0e81 Add flag for repository root directory 2023-10-07 18:18:04 +02:00
Silke Hofstra
b633ce8248 ci: Fix mypy issues in package checks 2023-10-07 18:09:07 +02:00
Silke Hofstra
c6cd2fb98e
ci: ensure homepage is consistent in packages (#464)
**Summary**

Extend the pspec consistency checks to catch a mismatched homepage. This
can be caused when adding it without rebuilding the package, which is
likely when new packagers are asked to add it.

**Test Plan**

Add a homepage to `nginx` without rebuild and run `go-task check --
packages/n/nginx/*`.

**Checklist**

- [ ] ~~Package was built and tested against unstable~~ n/a
2023-10-07 17:58:51 +02:00
Joey Riches
8f0642f291 common: Switch rebuild-template-script.sh to git workflow setup
Instead of git branches.
2023-10-06 23:19:40 +01:00
Silke Hofstra
662d932d97 common: Add go-task for running CI checks 2023-10-06 22:53:01 +02:00
Silke Hofstra
e28a9505df ci: Add CI checks for PRs 2023-10-06 22:53:01 +02:00
Joey Riches
a9a00657eb common: Some minor scripting fixes for rebuild-template-script.sh 2023-10-04 10:57:09 +01:00
Rune Morling
90d2d8e096
Taskfile.yml: Fix duplicated include statements
This slipped through the cracks as part of PR #364.

Thanks to @FriesischScott for the heads up.

Signed-off-by: Rune Morling <ermo@serpentos.com>
2023-10-02 12:14:53 +02:00
Tracey
638ed46dfc
Merge pull request #401 from getsolus/bash-helpers
common: Initial helpers script to provide common functionality
2023-10-01 17:14:25 -05:00
Tracey
913ba1b04f
Merge pull request #364 from getsolus/qt5-task
tasks: Add qt5-update task
2023-10-01 17:12:02 -05:00
Rune Morling
1f7a2fdcc9
Taskfile.yml: Add 'help' task for convenience
Suggested by @algen-al and @silkeh.

Signed-off-by: Rune Morling <ermo@serpentos.com>
2023-10-01 15:53:13 +02:00