Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
8 changes: 8 additions & 0 deletions .repos/alchemy-effect/.github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,14 @@ jobs:
- name: Run Typecheck
run: pnpm tsc -b

# Must run after `tsc -b`: it reads distilled's emitted `lib/*.d.ts`,
# and stale/missing declarations resolve to `any`.
- name: Lint providers
run: pnpm lint:providers

- name: Test CLI launcher
run: timeout 240 pnpm test test/Cli/launcher.test.ts test/Cli/exitCodes.test.ts --retry 0 --concurrency 1

- name: Check API JSDocs
run: pnpm docs:check-jsdoc

Expand Down
17 changes: 15 additions & 2 deletions .repos/alchemy-effect/.github/workflows/pkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ on:
- "tsconfig.json"
- ".github/workflows/pkg.yml"
pull_request:
types: [opened, synchronize, reopened, labeled]
paths:
- "submodules/distilled"
- "packages/**"
Expand Down Expand Up @@ -54,6 +55,7 @@ jobs:
# Pack the pull request head rather than the synthetic merge commit,
# so every tarball is addressed by a commit that exists on the PR.
ref: ${{ github.event.pull_request.head.sha || github.sha }}
fetch-depth: 0

- name: Checkout distilled
run: git submodule update --init --depth=1 --checkout -- submodules/distilled
Expand All @@ -69,19 +71,29 @@ jobs:
install: true
require-lockfile: true

# Cold-building the alchemy package peaks near 17 GB of heap, which
# starves the runner agent on a 32 GB machine and drops the job. A soft
# limit holds the peak near 11 GB for roughly twice the compile time.
- name: Build packages
env:
GOMEMLIMIT: 6GiB
GOGC: "40"
run: pnpm build:pkg

# Keep the directory lists in sync with the `build:pkg` script.
# The @distilled.cloud list is alchemy's dependency set, which `build:pkg`
# derives with `--filter=alchemy...`; keep the @alchemy.run list in sync.
- name: Pack packages
id: pack
run: >-
pnpm exec pkg pack
${{ contains(github.event.pull_request.labels.*.name, 'force-ci') && '--all' || '' }}
--rebuild-all-path 'scripts/copy-package-files.ts'
--group 'alchemy=./packages/alchemy'
--group '@alchemy.run[Collapsed]=./packages/{better-auth,cloudflare-runtime,frontend-frameworks,node-utils,floci,pkg}'
--group '@distilled.cloud[Collapsed]=./submodules/distilled/packages/{core,aws,axiom,cloudflare,fly-io,github,hetzner,neon,planetscale,railway,stripe}'
--group '@distilled.cloud[Collapsed]=./submodules/distilled/packages/{core,acme,aws,axiom,cloudflare,doppler,fly-io,github,hetzner,infisical,neon,prisma,planetscale,railway,stripe,zerossl}'
- name: Vouch for the manifest
if: steps.pack.outputs.package-count != '0'
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: ${{ steps.pack.outputs.artifact-name }}
Expand All @@ -91,4 +103,5 @@ jobs:
retention-days: 1

- name: Publish packages
if: steps.pack.outputs.package-count != '0'
run: pnpm exec pkg publish
5 changes: 5 additions & 0 deletions .repos/alchemy-effect/.github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ jobs:
bun scripts/release/prepare.ts '${{ inputs.version }}' | tee -a "$GITHUB_OUTPUT"
- name: Build release packages
# Match preview CI: the cold tsgo build can starve the runner
# without Go heap limits on this 32 GB machine.
env:
GOMEMLIMIT: 6GiB
GOGC: "40"
run: >-
pnpm turbo run build
$(jq -r '.[] | "--filter=\(.name)"' release-packages.json)
Expand Down
7 changes: 7 additions & 0 deletions .repos/alchemy-effect/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ smoke
*.d.ts
!examples/prisma-tanstack-start/migrations/**/start-contract.d.ts
!examples/prisma-tanstack-start/migrations/**/end-contract.d.ts
# Emitted Prisma ORM v8 contract types: imported by the fixtures/example that
# consume them, so a clean checkout must typecheck without running a deploy.
!examples/cloudflare-neon-prisma/src/prisma/generated/contract.d.ts
!packages/alchemy/test/Cloudflare/Workers/fixtures/prisma-orm/generated/contract.d.ts
!packages/alchemy/test/Prisma/ORM/fixtures/client/generated/contract.d.ts
# drizzle-kit's generated durable-sqlite migrations bundle (checked-in test fixture)
!packages/alchemy/test/Cloudflare/Workers/fixtures/drizzle-do/drizzle/migrations.js
# Container image contexts COPY these into the image; without the negation
Expand Down Expand Up @@ -67,6 +72,8 @@ examples/cloudflare-worker/src/scratch.ts
/packages/alchemy/README.md

!/packages/alchemy/bin/cli.js
!/packages/alchemy/bin/alchemy.js
!/packages/alchemy/bin/exec.js
!/packages/alchemy/bin/register-dev-mode.js
!/packages/alchemy/bin/register-oxc.js
.tmp
Expand Down
6 changes: 3 additions & 3 deletions .repos/alchemy-effect/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -857,8 +857,8 @@ Resolve the bindings, expose one route per behavior, default-export the class so
// fixtures/worker.ts
import * as Cloudflare from "@/Cloudflare/index.ts";
import * as Effect from "effect/Effect";
import { HttpServerRequest } from "effect/unstable/http/HttpServerRequest";
import * as HttpServerResponse from "effect/unstable/http/HttpServerResponse";
import { HttpServerRequest } from "effect/http/HttpServerRequest";
import * as HttpServerResponse from "effect/http/HttpServerResponse";
import { Gateway } from "./gateway.ts";
export default class TestWorker extends Cloudflare.Worker<TestWorker>()(
Expand Down Expand Up @@ -895,7 +895,7 @@ import * as Test from "@/Test/Alchemy";
import { expect } from "alchemy-test";
import * as Effect from "effect/Effect";
import * as Schedule from "effect/Schedule";
import * as HttpClient from "effect/unstable/http/HttpClient";
import * as HttpClient from "effect/http/HttpClient";
import TestWorker from "./fixtures/worker.ts";
const { test, beforeAll, afterAll, deploy, destroy } = Test.make({
Expand Down
Loading
Loading