68 Commits
Author SHA1 Message Date
Yota Hamada 2db4a3bbdb Fix installer.ps1 elevation, wizard, and upgrades (#4612) 2026-12-05 04:01:36 +09:00
Yota Hamada 93079d3d84 Fix installer.sh failures across common setups (#4611) 2026-12-05 04:01:30 +09:00
Yota Hamada 8db84dd7e1 Publish dagu .deb and .rpm packages to apt and dnf (#4575)
Each release builds a dagu server package for amd64 and arm64 as .deb
and .rpm and publishes it to a signed apt and dnf repository at
https://pkg.dagu.sh, so hosts install and upgrade Dagu with their
package manager. The package runs the server as a dagu system account
and carries the install-owner marker that dagu upgrade reads.

Every run rebuilds the repository from the newest five stable releases
and the newest five prereleases and uploads it to an R2 bucket, files
before the indexes that name them. The release jobs change only to
sign the .rpm. The publish runs apart from them and does nothing until
the bucket is configured.
2026-12-04 16:49:06 +09:00
Yota Hamada 490f2e55f2 Submit the Windows installer to WinGet (#4590)
Each stable release submits its signed Inno Setup installer to
microsoft/winget-pkgs as Dagu.Dagu, so winget install and winget
upgrade work once the package is accepted.

WinGet installs a copy, dagu_<version>_windows_amd64_setup.exe, that
the release uploads once and never replaces, so a manual rebuild of
the installer leaves the hash in WinGet's catalog valid. Nothing is
uploaded or submitted until the WINGET_GITHUB_TOKEN secret exists.
2026-12-04 14:34:02 +09:00
Yota Hamada ef2b1342e7 Test only Windows-specific packages on pull requests (#4532) 2026-12-03 00:00:53 +09:00
Yota Hamada 178326a371 Run the Linux and Windows tests in one job each (#4529) 2026-12-02 23:34:57 +09:00
Yota Hamada 806cedb1c7 Pull test images while Go is set up (#4508) 2026-12-02 19:09:15 +09:00
Yota Hamada 59371b9987 Report the slowest Go tests in each test job (#4501) 2026-12-02 14:36:50 +09:00
Yota Hamada 2195f3df5d Trim each Go cache to the entries its job used (#4497) 2026-12-02 13:29:20 +09:00
Yota Hamada 896a315a0a Cut CI time to about a third (#4384) 2026-12-01 14:24:43 +09:00
Yota Hamada 747437dcdf Split long test name lists across go test calls (#4343)
The Windows unit shards failed with "Argument list too long" once the
split packages held about 900 tests per shard: the -run regexp that
lists them passed the 32,767-character command-line limit on Windows.

The shard planner now prints a shard's split tests over as many lines
as it takes to keep each regexp under 8,000 characters. Each line is
one go test call, and every test still runs on exactly one shard.
2026-11-29 02:53:49 +09:00
Yota Hamada bf9de588b5 Report port use when Windows tests fail (#4092) 2026-11-23 20:20:34 +09:00
Yota Hamada 0ad254c59f Keep runs alive across service restarts (#3903) 2026-11-14 19:17:47 +09:00
Yota HamadaandClaude Fable 5.1 e5b262a1ee Ask the Windows installer one plain question instead of seven checkboxes (#3655)
The tasks page listed shortcuts for start-all, server, scheduler,
coordinator and worker next to the PATH and service options. A first-time
user cannot tell what those processes are, and the shortcuts opened
console windows, so the page read as a quiz about Dagu internals.

The wizard now asks "How should Dagu run?" with two radio buttons: as a
Windows service (recommended) or as a command-line tool, plus one PATH
checkbox. The welcome page says in one paragraph what those choices mean.
When the service is chosen, a new page asks for the web UI and
coordinator ports, refuses a port that is already in use before anything
is installed, and keeps the ports of an existing service on an upgrade.
The summary page shows the resulting URL and data directory, the finish
page repeats them and can open the web UI, and the Start menu gets an
"Open Dagu" shortcut instead of five console launchers. An upgrade
removes the old launchers, and one that switches to the command-line
tool removes the service rather than leaving it registered.

Service setup shows a status line while it runs and keeps the script's
output in service-setup.log; a failure dialog quotes the actual error
from that log together with the command to retry. The uninstaller keeps
the service files if the service could not be removed.

The setup file, the shortcut and the Apps & features entry use the web
UI's icon. Silent installs choose the mode with /TASKS=service,path or
/TASKS=manual,path and may pass /PORT and /COORDINATORPORT, each of
which is kept from the installed service when omitted on an upgrade.

The installer tests move to a workflow of their own, triggered only by
the installer files, and cover both modes and the single-flag upgrades.
The release workflow gains a manual trigger that rebuilds and re-signs
one release's installer, publishing it without a moment in which the
release has no installer, and one run at a time per tag.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-11-08 12:15:22 +09:00
Yota HamadaandClaude Fable 5.1 351289d2f6 Sign the Windows binaries and installer with Azure Artifact Signing (#3645)
SmartScreen blocked dagu-<version>-setup.exe in Edge because it was an
unsigned executable with no download reputation, and Windows showed an
unknown publisher when it ran. Azure Artifact Signing (formerly Trusted
Signing) fixes both, and feeds reputation straight into SmartScreen.

Signing happens inside GoReleaser, as a post-build hook that signs each
Windows binary in place with jsign, so the archive, checksums.txt, the
attestation, the packslip and the installer all carry the same signed
bytes. The installer job then passes a jsign sign tool to Inno Setup,
which signs the setup executable and its uninstaller, and refuses to
upload an installer whose signature is not valid and timestamped.

A composite action logs in to Azure with the job's OIDC token for the
`release` environment, fetches a short-lived token for the signing
service and downloads a checksum-pinned jsign. No secret is stored. The
whole path is gated on the AZURE_SIGNING_ACCOUNT repository variable, so
a release still builds unsigned when it is empty.

The installer is now dagu-windows-amd64-setup.exe on every release, so
the newest one has a stable releases/latest/download URL.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-11-08 00:18:34 +09:00
Yota Hamada f6b99497e6 Revert the user-level AI skill install
This reverts commit 15f354f23 (#3493). The installers return to the
previous skill install, detection and uninstall behavior.

This also restores the bash 3.2 uninstall failure on empty lists,
which #3493 fixed alongside the skill change.
2026-11-07 00:43:58 +09:00
Yota Hamada 15f354f232 Install the AI skill for the user, not the folder (#3493) 2026-11-03 16:56:15 +09:00
Yota Hamada e9c23f74a1 Add a Calendars page to browse and edit calendars (#3451) 2026-11-01 22:18:55 +09:00
Yota Hamada 9436ffc1fd Lint Windows and macOS files in one linter job
Three linter jobs each linted all 285 packages, for linux, windows,
and darwin, though only 29 packages have files that differ on Windows
and 4 on macOS. One job now lints everything for Linux, then lints
only those packages for each other system, which sees every file
behind a build constraint at a fraction of the work and two fewer
jobs per run.
2026-10-25 21:24:15 +09:00
Yota Hamada d6c474a3bd Spend fewer runner minutes per CI run
CI waits on the org's 20 concurrent jobs, and most of each job was
setup. Every Ubuntu job restored a 6.6 GB build cache, mostly builds
of earlier commits that Go keeps for five days, which took two to
three minutes to unpack. The linters restored that race and coverage
cache too, though they compile for another GOOS.

The job that saves a cache now first drops the entries it did not
use, so the cache holds one build. Each linter GOOS keeps a small
cache of its own. Suites whose tests run shorter than a job's setup
use fewer shards: Ubuntu integration one instead of three, and the
Windows unit and integration suites two each instead of three and
four.
2026-10-25 21:19:23 +09:00
Yota Hamada eb5b40bcc8 Guide new installs to a first monitored workflow (#3227) 2026-10-18 02:21:19 +09:00
Yota Hamada b0dc45a379 Show license status and paid feature benefits (#3013) 2026-10-04 21:53:49 +09:00
Yota Hamada 1a76b62f62 ci: shard Go and conformance tests to cut CI time (#2862) 2026-09-25 15:14:29 +09:00
Louis DeconinckandYota Hamada 6af1bab692 feat(windows): add Inno Setup installer (#2743)
Co-authored-by: Yota Hamada <yohamta@gmail.com>
2026-09-11 20:20:02 +09:00
Yota Hamada 9f57a0196f fix: restore simple Windows installer command (#2541) 2026-08-09 10:33:20 +09:00
Yota Hamada 4588800b70 fix: run downloaded Windows installer in script scope (#2540) 2026-08-09 01:55:26 +09:00
Yota Hamada 29e04f68ff fix: restore Windows installer and add CI coverage (#2535) 2026-08-08 16:16:51 +09:00
Yota Hamada 492c833e5c fix: keep proc liveness usable when a proc file is damaged (#2507) 2026-08-06 17:13:47 +09:00
Yota Hamada 0c8a7670a0 refactor: remove migrate command (#2347) 2026-07-01 21:28:45 +09:00
Cocoon-Break e6b54d442c fix: track temp files via registry file instead of subshell-local array (#2198) 2026-05-24 18:09:36 +09:00
Yota Hamada aded506fef feat: add remote action executor (#2167) 2026-05-18 13:37:26 +09:00
Yota Hamada 7420a1932e feat: add dagu agent command (#2107) 2026-05-06 23:03:01 +09:00
dependabot[bot]andYota Hamada b620cf132d chore(deps): bump the ui-patch group across 1 directory with 6 updates (#2070)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Yota Hamada <yohamta@gmail.com>
2026-04-30 13:41:20 +09:00
Yota Hamada 8d940166c0 test(e2e): add distributed stack Playwright harness (#1996) 2026-04-12 20:54:04 +09:00
Yota Hamada 62ebc8b76e revert: rollback installer tmpfile refactor 2026-04-06 13:25:33 +09:00
Yota Hamada 2c47e3f284 fix: migrate GitHub org references to dagucloud 2026-04-06 13:16:44 +09:00
Yota Hamada 70f1891b5b fix: track installer tmpfiles in parent shell (#1870) 2026-03-29 00:30:37 +09:00
Yota Hamada 15556d6c16 fix(installer): remove --ignore-missing flag from sha256sum for BusyBox compatibility (#1819) 2026-03-22 01:14:51 +09:00
Yota Hamada 168cd9d9cf Preserve service PATH in installer 2026-03-20 23:58:14 +09:00
Yota Hamada 0b57e01f43 Restore installer executable bit 2026-03-20 19:18:15 +09:00
Yota Hamada 97591e3020 Improve installer wizard flows 2026-03-20 19:18:15 +09:00
Yota Hamada b581118067 chore: add GPL-3.0 license headers to source files
Add copyright and SPDX license identifier headers to all Go source
files, test files, shell scripts, and proto files.
2026-03-09 18:38:11 +09:00
Yota Hamada 4a1d614b1c chore: remove ralph scripts 2026-02-22 13:13:54 +09:00
Yota Hamada e4cdf605f7 chore: adjust config 2026-02-06 23:05:34 +09:00
Yota Hamada 0214ea01e1 chore: add ralph setup 2026-02-06 22:34:30 +09:00
Yota Hamada f8cf041741 chore: add ralph scripts 2026-02-06 21:51:04 +09:00
Yota Hamada a75f667f95 fix(ui): escape config path string injected in html (#1472)
* **Chores**
* Added Windows build automation scripts for the UI and application
build pipeline with dependency management and error handling.
* Updated frontend template path handling with JavaScript escaping for
enhanced security.
2025-12-11 01:34:27 +09:00
Yota Hamada 66057232ad chore: fix windows installer 2025-12-01 21:07:39 +09:00
Yota Hamada d431b90ac5 chore: fix windows installer 2025-12-01 10:41:41 +09:00
YotaHamada f3f71bc9a6 chore: fix Windows installer (#1433) 2025-12-01 10:25:15 +09:00