230 Commits

Author SHA1 Message Date
MUGUNDAN f3ddede797 chore: add support for publishing Windows ARM64 binaries (#6577)
Signed-off-by: MUGUNDAN <mugunthan.selvanayagam@multicorewareinc.com>
2026-11-18 08:14:11 +08:00
Johnny 7afb4f3681 fix(mysql): improve MariaDB compatibility and test coverage (#6572) 2026-11-16 23:03:15 +08:00
boojack dcf08b5911 chore(ci): share Go and web setup through composite actions
Add .github/actions/setup-go (Go version from go.mod) and
.github/actions/setup-web (pnpm from web/package.json, Node 24,
frozen install), and use them in every workflow that installed the
toolchains by hand. Drop the per-workflow version env vars and the
redundant pnpm store cache steps that duplicated setup-node's cache.
2026-10-27 20:22:30 +08:00
boojack 07538326a9 chore: apply the brand copy and reshape the README
Take the tagline, one-liner, and short description from the rewritten
BRAND.md in usememos/.github and use the serif lockup and the light and
dark timeline previews published there. The README now leads with what a
visitor gets, keeps the quick start to one command plus the URL to open,
drops badges that repeat the sidebar, and carries the star-history
badges
instead of the chart. The local Georgia wordmark is removed.

In the app, the about page, manifest, and English locales carry the same
copy. The identity label uses the theme's serif stack at the wordmark's
weight and spacing rather than a vendored face. The about tagline sizes
to its column so neither sentence breaks mid-line, and the version chip
is the single place for build identity: a release links to its tag and a
development build links to its commit, so the Build commit row and its
locale label are gone.
2026-10-18 20:53:48 +08:00
johnnyjoygh e051129f1d chore(brand): adopt SVG bird logo across app and README
Share logo and identity typography across navigation, auth, and About
while preserving custom branding.

Use a transparent blue favicon and Celadon installation icons with
refreshed cache versions.
2026-10-16 09:23:19 +08:00
Johnny f9d277f6bd chore: switch release versions to YY.MM.N (#6469) 2026-10-14 19:26:59 +08:00
johnnyjoygh 9e3a164dff feat(usage): add default limits and explicit rule targets
Move memo content size into usage limits, with 8 KiB content and 32 MiB
upload defaults when settings are absent. Represent stored rule targets
with all_users or a positive user_id, and use that same schema for
deployment configuration.

Rename the memo count metric, remove reserved proto declarations, and
renumber fields and enums for the unreleased schema. Synchronize
enforcement, settings UI, generated clients, and tests.
2026-10-12 22:35:39 +08:00
Garrett Allen fa2dcf59d5 fix: upgrade golang.org/x/net, grpc and Go to 1.27.2 (CVE-2026-78669, CVE-2026-84445) (#6453)
Co-authored-by: johnnyjoygh <johnnyjoygg@gmail.com>
2026-10-11 09:20:42 +08:00
johnnyjoygh a316e7935b chore(go): modernize source and enforce go fix in CI 2026-10-09 22:07:23 +08:00
ABird af38e75e2d refactor(api)!: drop the v1 version marker (#6447) 2026-10-08 21:49:37 +08:00
boojack 8f6e6a7ae6 fix(version): derive development CalVer from HEAD commit date 2026-10-03 06:17:19 +08:00
Johnny fa12d84606 feat: adopt calendar versioning and reset the migration baseline (#6362) 2026-09-22 09:03:49 +08:00
bluedbird f4d97fafcd fix: block CGNAT SSRF and restore cross-database CI coverage 2026-09-19 22:54:43 +08:00
johnnyjoygh f32d367c7f chore: update database drivers
Drop the D1 store driver, its migrations, emulator, design doc, filter
dialect, and test-harness wiring. Memos supports SQLite, MySQL, and
PostgreSQL only.
2026-09-17 09:31:42 +08:00
Johnny 2e3db14741 feat(store): add Cloudflare D1 database driver (#6330) 2026-09-16 01:43:17 +08:00
ABird 45519accd3 refactor: name packages by role and enforce import direction (#6317) 2026-09-13 18:22:54 +08:00
boojack 3cb98f26ae chore(ci): manage stale issues and pull requests 2026-08-28 22:02:13 +08:00
amblued 57a4b7aee6 chore(go): upgrade to Go 1.27 (#6217) 2026-08-20 23:37:02 +08:00
boojack 34e2a59a4a chore: simplify issue templates 2026-08-12 00:04:02 +08:00
Justin Zobel 156ee7edac chore(ci): remove stale issue and pull request automation (#6133)
Remove the aggressive 14-day stale and 3-day close policy so valid issues and contributions are not discarded during maintainer review delays.
2026-08-02 21:19:03 +08:00
johnnyjoygh 1236d9ba94 test(ci): add upgrade and startup smoke coverage
Exercise real server startup on backend test runs and gate releases on fresh-install, previous-stable upgrade, and entrypoint smoke checks across supported databases.
2026-07-26 21:21:15 +08:00
boojack 83552c35be fix(ci): stamp canary image with semantic version
The canary workflow passed VERSION=canary as a build-arg, so the demo
instance reported "canary" as its version. Derive the version from the
latest git tag instead (e.g. 0.29.1) so the app reports a real semver.
The `canary` image tag is unchanged.
2026-07-08 21:58:00 +08:00
boojack 6870e863de chore(github): improve issue templates with structured triage fields
Add area dropdowns, reproduction requirements, regression info, and
compatibility sections to reduce back-and-forth on bug reports and
feature requests.
2026-06-08 22:21:33 +08:00
Steven a0b6417689 chore: bump pnpm to 11.0.1 and align list test assertions 2026-04-30 20:05:39 +08:00
boojack ee65e90a39 chore: upgrade pnpm to 11 (#5911) 2026-04-28 22:16:22 +08:00
boojack 616487fa37 chore: update backend and frontend dependencies (#5900)
Co-authored-by: memoclaw <265580040+memoclaw@users.noreply.github.com>
2026-04-28 08:25:26 +08:00
boojack f8a304bae3 fix(release): inject build version into artifacts 2026-04-19 12:02:32 +08:00
boojack 88cb58ab64 refactor(web/routing): guard-based auth flow, migrate tests to Vitest (#5848) 2026-04-18 01:06:54 +08:00
boojack 587f5b1b6c chore(github): simplify issue templates 2026-04-17 23:54:17 +08:00
boojack f394e9469a chore: add release-please automation (#5842) 2026-04-15 23:04:10 +08:00
boojack 065e817470 fix: backend tests action 2026-04-06 11:19:31 +08:00
boojack 201c8a8ea9 chore: add rc release handling 2026-03-31 08:34:36 +08:00
johnnyjoygh 1ed542c21d feat: add GitHub release installer and release workflow 2026-03-17 20:16:16 +08:00
memoclaw 12e2205cb6 chore(backend): update Go toolchain and dependencies (#5730) 2026-03-16 21:07:52 +08:00
memoclaw 6f5f0d94e8 chore(web): update frontend dependencies and Node runtime (#5729) 2026-03-16 20:37:16 +08:00
memoclaw e5b9392fcd chore: use issue types instead of labels for bug/feature templates
Replace `labels: [bug]` and `labels: [enhancement]` with `type: Bug`
and `type: Feature` to leverage GitHub's native issue types already
configured on this repo.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 18:49:27 +08:00
memoclaw 1bfd121d7d chore: improve GitHub issue templates (#5700)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 18:25:10 +08:00
Steven 2be4a52e1a ci: extend stale workflow to cover PRs and improve clarity
- Add PR stale/close handling alongside issues
- Reduce close grace period from 7 to 3 days
- Add inline comments explaining the two-phase stale behavior
- Rename workflow and job names for clarity
2026-02-26 22:44:47 +08:00
Steven 27063d4850 chore(ci): auto-upload binaries to GitHub Release on publish 2026-02-10 20:51:05 +08:00
Steven 71e8a06463 chore: upgrade Echo v4 to v5.0.3 2026-02-10 09:15:27 +08:00
Steven 7465fbb4cc refactor: improve GitHub Actions workflows structure and maintainability
- Add build-binaries workflow for multi-platform binary releases
- Rename workflows for conciseness:
  - demo-render-deploy.yml → demo-deploy.yml
  - build-and-push-canary-image.yml → build-canary-image.yml
  - build-and-push-stable-image.yml → build-stable-image.yml
- Centralize version config with env variables (GO_VERSION, NODE_VERSION, PNPM_VERSION)
- Standardize step names across all workflows
- Add concurrency controls to prevent redundant runs
- Update Node.js (20→22) and pnpm (9→10) versions to match build-binaries
- Improve job names with descriptive labels
- Add consistent comments and formatting
- Set artifact retention to 60 days for binary builds
2026-02-02 23:15:15 +08:00
Steven 4033f64b9a feat: add build binaries workflow for multi-platform releases
- Add workflow_dispatch trigger for manual binary builds
- Build for linux (amd64, arm64, arm/v7), darwin (amd64, arm64), windows (amd64)
- Package as tar.gz (Unix) and zip (Windows)
- Generate build summary with artifact sizes
2026-02-02 22:54:30 +08:00
Salman Chishti a8dbc1fd5e chore: upgrade GitHub Actions for Node 24 compatibility (#5527)
Signed-off-by: Salman Muin Kayser Chishti <13schishti@gmail.com>
2026-01-26 09:02:57 +08:00
Salman Chishti 1e82723e88 chore: upgrade GitHub Actions to latest versions (#5528)
Signed-off-by: Salman Muin Kayser Chishti <13schishti@gmail.com>
2026-01-26 08:48:07 +08:00
Pádraic Slattery 7fbf3bed85 chore: update outdated GitHub Actions versions (#5522) 2026-01-23 23:22:14 +08:00
Johnny 552318209b fix: resolve flaky migration tests and add stable upgrade test (#5514) 2026-01-20 19:25:00 +08:00
Johnny e082adf7b6 fix: set DRIVER=sqlite in CI to prevent TestMain from spawning child processes
Problem:
- store/test/TestMain checks if DRIVER env var is set
- If not set, it runs tests for all 3 drivers (sqlite, mysql, postgres)
  by spawning child 'go test' processes
- This conflicts with t.Parallel() in individual tests
- CI workflow didn't set DRIVER, triggering multi-driver execution

Solution:
- Set DRIVER=sqlite in GitHub Actions workflow
- TestMain will run tests once with SQLite driver
- Tests run in parallel with t.Parallel() as intended
- Avoids spawning child processes and race conditions

Why SQLite:
- Fastest test execution (no container startup)
- Sufficient for CI validation
- MySQL/Postgres can be tested locally when needed

This fixes the 'table already exists' errors and test flakiness
in CI while maintaining parallel execution benefits.
2026-01-14 22:50:30 +08:00
Johnny 07b837b6f6 perf: optimize backend tests with parallel execution
Major improvements:
- Split tests into 4 parallel groups (store, server, plugin, other)
  * 3-4x faster test execution (4-6min → 1-2min)

- Enable golangci-lint cache (was disabled)
  * Saves 20-30s on lint checks

- Remove unnecessary flags
  * check-latest: API call overhead
  * --verbose: unnecessary output
  * skip-cache: disabled caching

- Add race detector (-race)
  * Better concurrency bug detection
  * Only 10-20% overhead

- Add coverage tracking
  * Per-group coverage upload to Codecov
  * Better visibility into test quality

- Add concurrency control
  * Cancel outdated PR runs
  * Saves runner minutes

- Clean up output processing
  * Remove test.log and complex awk/sed parsing
  * GitHub Actions shows output by default

Performance impact:
- Setup: 30s → 10s (2-3x faster)
- Tests: Sequential → 4 parallel jobs (3-4x faster)
- Total: 4-6min → 1-2min (~70% faster)
2026-01-14 22:34:46 +08:00
Johnny d7c5641246 fix: correct manifest merge step in workflows
- Re-run docker/metadata-action in merge job to generate proper JSON
- Use steps.meta.outputs.json instead of needs.prepare.outputs.tags
- Remove unused prepare job outputs (tags, labels)
- Simplify workflow dependency chain

This fixes the jq parse error when creating multi-arch manifests.
2026-01-14 22:28:26 +08:00
Johnny d1d2d86900 perf: optimize CI/CD workflows and Docker builds
- Implement parallel matrix builds for multi-platform images (~50% faster)
- Add pnpm store caching for 20-40s savings on cache hits
- Use --frozen-lockfile for faster, deterministic installs
- Optimize Dockerfile: CGO_ENABLED=0, -trimpath, static linking
- Reduce Docker layers and improve caching strategy
- Enhance .dockerignore to exclude unnecessary files (~1MB saved)

Build time improvements:
- Canary: 12-18min → 6-10min
- Stable: 17-27min → 8-12min
2026-01-14 22:12:28 +08:00