Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
f20fb90
ci: fix ShellCheck warning in PostgreSQL reload polling
LIghtJUNction Nov 21, 2026
7cd8077
test(ci): match Core protocol's required Extore submodule
LIghtJUNction Nov 20, 2026
312eed4
fix: inspect installed extension with its service identity
LIghtJUNction Nov 20, 2026
2c71357
test(packaging): compare the exact procfs executable path
LIghtJUNction Nov 21, 2026
c5503ad
ci: export reviewed Alpine acceptance receipts to the runner
LIghtJUNction Nov 22, 2026
7d0d33b
Merge current Core84 main into the native CI fixture branch
LIghtJUNction Nov 22, 2026
1df0ac9
Run serial Core test groups on independent CI databases
LIghtJUNction Nov 22, 2026
f4f668b
Use the verified Alpine receipt export from PR #13 for combined CI
LIghtJUNction Nov 22, 2026
d923167
Guard the exact native receipt upload paths and private fixture output
LIghtJUNction Nov 22, 2026
7566aad
Verify the CI and receipt fixtures against current main
LIghtJUNction Nov 22, 2026
cbc3bff
fix(core): freeze admitted key selection in admin usage logs
LIghtJUNction Nov 23, 2026
726c580
fix(web): clarify auth pending and empty pricing catalog
LIghtJUNction Nov 23, 2026
5d5674c
feat(channels): add native Sub2API balance reads
LIghtJUNction Nov 23, 2026
25426c7
test(channels): cover Sub2API balance refresh races
LIghtJUNction Nov 23, 2026
240f08a
test(core): pin key snapshot failover and reader compatibility
LIghtJUNction Nov 23, 2026
d1b09e2
merge: assemble native candidate E on D
LIghtJUNction Nov 23, 2026
1fa2b7d
merge: include key snapshot compatibility evidence in E
LIghtJUNction Nov 23, 2026
b605106
merge: complete E Sub2API boundary regression coverage
LIghtJUNction Nov 23, 2026
eafc7f7
test(core): simplify captured dispatch state type
LIghtJUNction Nov 23, 2026
3f06722
Merge remote-tracking branch 'origin/main' into fix/pr18-cloud-ci
LIghtJUNction Nov 23, 2026
c042cbd
test(core): honor provider contracts and session revocation in fixtures
LIghtJUNction Nov 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ env:
jobs:
microkernel:
uses: ./.github/workflows/core-protocol.yml
with:
split_rust_targets: true
web:
name: Web checks and production build
runs-on: ubuntu-24.04
Expand Down
39 changes: 28 additions & 11 deletions .github/workflows/core-protocol.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ name: Microkernel implementation checks
on:
workflow_dispatch:
workflow_call:
# ci.yml owns automatic push/PR runs so this expensive suite runs only once.
inputs:
split_rust_targets:
description: Run unit and integration targets on separate PostgreSQL services.
type: boolean
default: false
# Manual qualification keeps a single runner and the full Cargo target set.
permissions:
contents: read
defaults:
Expand All @@ -13,11 +18,17 @@ concurrency:
cancel-in-progress: true
jobs:
protocol:
name: ${{ matrix.targets == 'integration' && 'Rust integration targets' || 'protocol' }}
strategy:
fail-fast: false
matrix:
targets: ${{ fromJSON(inputs.split_rust_targets && '["unit","integration"]' || '["all"]') }}
runs-on: ubuntu-24.04
# Budget for cold builds, serial real PostgreSQL tests, and the following
# payment, Go, and RPC checks while keeping the complete job bounded.
timeout-minutes: 150
env:
RUST_TARGET_GROUP: ${{ matrix.targets }}
GOWORK: "off"
DATABASE_URL: postgres://postgres:postgres@127.0.0.1:5432/postgres
CARGO_BUILD_JOBS: "2"
Expand Down Expand Up @@ -76,7 +87,7 @@ jobs:
- name: Preserve source before checks
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
with:
name: microkernel-source-${{ github.sha }}-${{ github.run_id }}
name: microkernel-source-${{ github.sha }}-${{ github.run_id }}${{ matrix.targets == 'integration' && '-integration' || '' }}
path: |
${{ runner.temp }}/core-source.tar.gz
${{ runner.temp }}/core-source-sha.txt
Expand Down Expand Up @@ -196,7 +207,7 @@ jobs:
if: ${{ !cancelled() && steps.rust_test_compile.outcome == 'success' }}
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
with:
name: commerce-acceptance-driver-${{ github.sha }}-${{ github.run_id }}
name: commerce-acceptance-driver-${{ github.sha }}-${{ github.run_id }}${{ matrix.targets == 'integration' && '-integration' || '' }}
path: ${{ runner.temp }}/commerce-acceptance-driver
if-no-files-found: error
compression-level: 0
Expand Down Expand Up @@ -232,9 +243,15 @@ jobs:
LMM_PAYMENT_BOOTSTRAP_SHA256="$(sha256sum "$LMM_PAYMENT_BOOTSTRAP_BIN" | cut -d ' ' -f1)"
export LMM_PAYMENT_CORE_BIN LMM_PAYMENT_CORE_SHA256 LMM_PAYMENT_GO_BIN LMM_PAYMENT_GO_SHA256 LMM_PAYMENT_BOOTSTRAP_BIN LMM_PAYMENT_BOOTSTRAP_SHA256
# Emit panic diagnostics immediately, including when the job times out.
cargo test --locked --all-targets --no-fail-fast -- --skip synthetic_live_proof_crosses_core_go_processes_and_posts_once --nocapture 2>&1 | tee "$RUNNER_TEMP/core-tests.log"
case "$RUST_TARGET_GROUP" in
all) targets=(--all-targets) ;;
unit) targets=(--lib --bins --examples --benches) ;;
integration) targets=(--test '*') ;;
*) echo "Unknown Rust target group: $RUST_TARGET_GROUP" >&2; exit 1 ;;
esac
cargo test --locked "${targets[@]}" --no-fail-fast -- --skip synthetic_live_proof_crosses_core_go_processes_and_posts_once --nocapture 2>&1 | tee "$RUNNER_TEMP/core-tests.log"
- name: Repeat rejected event acknowledgement regression
if: ${{ !cancelled() && steps.rust_test_compile.outcome == 'success' }}
if: ${{ !cancelled() && matrix.targets != 'integration' && steps.rust_test_compile.outcome == 'success' }}
working-directory: services/core
run: |
for attempt in {1..10}; do
Expand All @@ -245,7 +262,7 @@ jobs:
if: ${{ !cancelled() }}
run: python3 -B scripts/ci-payment-live.py --output "$(realpath -m "$RUNNER_TEMP/payment-live")" 2>&1 | tee "$RUNNER_TEMP/payment-live-build.log"
- name: Go contract and race tests
if: ${{ !cancelled() }}
if: ${{ !cancelled() && matrix.targets != 'integration' }}
working-directory: services/extensions
run: |
bash ../../scripts/check-go-format.sh .
Expand All @@ -254,7 +271,7 @@ jobs:
go test -race ./... -count=1 -json | tee "$RUNNER_TEMP/extension-tests.jsonl"
CGO_ENABLED=0 go build -mod=readonly -trimpath -o "$RUNNER_TEMP/lmm-extensions" ./cmd/extensions
- name: Store and support real PostgreSQL acceptance
if: ${{ !cancelled() }}
if: ${{ !cancelled() && matrix.targets != 'integration' }}
env:
LMM_STORE_TEST_DSN: postgres://postgres:postgres@127.0.0.1:5432/lmm_store_test?sslmode=disable
run: |
Expand All @@ -265,13 +282,13 @@ jobs:
go vet -mod=readonly ./...
go test -mod=readonly -race -count=1 -json ./... | tee "$RUNNER_TEMP/store-postgres.jsonl"
- name: Durable cross-language event process recovery
if: ${{ !cancelled() }}
if: ${{ !cancelled() && matrix.targets != 'integration' }}
run: |
(cd services/core && cargo build --locked --example protocol-events-fixture)
(cd contracts/proto/tests/go && go vet -mod=readonly ./... && go build -mod=readonly -o "$RUNNER_TEMP/mk06-go-fixture" .)
MK06_GO_FIXTURE="$RUNNER_TEMP/mk06-go-fixture" python3 contracts/proto/tests/process_recovery.py 2>&1 | tee "$RUNNER_TEMP/events-process.log"
- name: Native protobuf round trips and failure recovery
if: ${{ !cancelled() }}
if: ${{ !cancelled() && matrix.targets != 'integration' }}
run: |
# Absolute, symlink-free, and absent: the fixture creates a private empty 0700 root.
evidence="$(realpath -m -- "$RUNNER_TEMP/core-rpc-docker-evidence")"
Expand All @@ -281,7 +298,7 @@ jobs:
fi
python3 -B scripts/test-core-rpc-docker.py --output-root "$evidence" --build-timeout-seconds 2400 2>&1 | tee "$RUNNER_TEMP/core-rpc-docker.log"
- name: Stage readable core RPC evidence
if: ${{ always() }}
if: ${{ always() && matrix.targets != 'integration' }}
run: |
# Secret files are chowned to container uid 65532 and mode 0400.
# upload-artifact fails the whole zip if any selected file is unreadable.
Expand Down Expand Up @@ -313,7 +330,7 @@ jobs:
if: ${{ always() }}
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
with:
name: microkernel-checks-${{ github.sha }}-${{ github.run_id }}
name: microkernel-checks-${{ github.sha }}-${{ github.run_id }}${{ matrix.targets == 'integration' && '-integration' || '' }}
path: |
${{ runner.temp }}/core-source-sha.txt
${{ runner.temp }}/core-format.log
Expand Down
38 changes: 32 additions & 6 deletions .github/workflows/linux-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ jobs:
git rev-parse HEAD | tee out/evidence/revision.txt
nfpm --version | tee out/evidence/nfpm-version.txt
node --test scripts/workflow-topology.test.mjs
python3 -B packaging/linux/test_extore_receipts.py
python3 -B packaging/linux/test_native.py -v 2>&1 | tee out/evidence/native-tests.log
go run github.com/rhysd/actionlint/cmd/actionlint@v1.7.12 -color .github/workflows/linux-packages.yml
- name: Build the three product binaries for this architecture
Expand All @@ -99,6 +100,7 @@ jobs:
docker buildx build --platform "linux/$ARCH" -f deployment/docker/extensions.Dockerfile \
--target binaries-musl --output type=local,dest=out/extensions-musl .
- name: Build verified source archives and native packages
id: packages
run: |
revision=$(git rev-parse HEAD)
SOURCE_DATE_EPOCH=$(git show -s --format=%ct HEAD)
Expand All @@ -109,6 +111,7 @@ jobs:
done
python3 scripts/build-distribution.py build --component extensions \
--version 0.1.0-preview --revision "$revision" --platform "linux-musl-$ARCH" --input out/extensions-musl
package_paths=()
for component in core extensions cli; do
package="lmm-$component"
if [[ "$component" == cli ]]; then package=lmm; fi
Expand All @@ -118,12 +121,19 @@ jobs:
archive="out/distributions/${package}-0.1.0-preview-${platform}.tar.gz"
digest=$(sha256sum "$archive" | cut -d ' ' -f 1)
for release in 1 2; do
python3 packaging/linux/build.py --archive "$archive" --sha256 "$digest" \
--revision "$revision" --component "$component" --format "$format" --release "$release"
built=$(python3 packaging/linux/build.py --archive "$archive" --sha256 "$digest" \
--revision "$revision" --component "$component" --format "$format" --release "$release")
package_paths+=("$built" "$built.sha256" "$built.buildinfo.json")
done
done
done
(cd out/linux-packages && sha256sum --check ./*.sha256)
for path in "${package_paths[@]}"; do test -s "$path"; done
{
echo 'paths<<END_PACKAGES'
printf '%s\n' "${package_paths[@]}"
echo 'END_PACKAGES'
} >> "$GITHUB_OUTPUT"
- name: Install, upgrade, run and remove in disposable distribution containers
run: |
set -o pipefail
Expand Down Expand Up @@ -159,23 +169,39 @@ jobs:
-f packages/extore/tests/native_plugin_alpine.Dockerfile --target fixture \
--build-arg "EXTORE_RUST_TARGET=$RUST_TARGET" -t lmm-extore-alpine-fixture packages/extore
docker image inspect lmm-extore-alpine-fixture --format '{{.Id}}' > out/evidence/extore-fixture-image.txt
umask 077
staging=$(mktemp -d "$RUNNER_TEMP/extore-receipts.XXXXXXXX")
report=extore-native-alpine.json
touch "$staging/$report" "$staging/$report.package.json"
timeout 300 docker run --rm --network none --add-host localhost.localdomain:127.0.0.1 \
--cap-add NET_ADMIN --cpus 1 --memory 768m --pids-limit 256 \
--security-opt no-new-privileges:true -e LMM_PACKAGING_ISOLATED=1 \
-v "$PWD/out/linux-packages:/packages:ro" -v "$PWD/out/native-probe:/probe:ro" \
-v "$PWD/out/evidence:/evidence" \
-v "$staging/$report:/receipts/$report" \
-v "$staging/$report.package.json:/receipts/$report.package.json" \
-v "$PWD/packaging/linux/extore-plugin-smoke.py:/package-probe.py:ro" \
--entrypoint python3 lmm-extore-alpine-fixture /package-probe.py \
--arch "$ARCH" --revision "$(git rev-parse HEAD)" \
--parent-netns "$(readlink /proc/self/ns/net)" \
--report /evidence/extore-native-alpine.json 2>&1 | tee out/evidence/extore-native-alpine.log
--report "/receipts/$report" > "$staging/fixture.log" 2>&1
for receipt in "$staging/$report" "$staging/$report.package.json"; do
test -s "$receipt"
test -O "$receipt"
done
mv -- "$staging/$report" "$staging/$report.package.json" out/evidence/
- name: Preserve preview packages and scoped evidence, never publish
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
with:
name: native-linux-${{ matrix.arch }}-${{ github.sha }}
path: |
out/linux-packages/
out/evidence/
${{ steps.packages.outputs.paths }}
out/evidence/revision.txt
out/evidence/nfpm-version.txt
out/evidence/install-matrix.txt
out/evidence/image-digests.txt
out/evidence/extore-fixture-image.txt
out/evidence/extore-native-alpine.json
out/evidence/extore-native-alpine.json.package.json
if-no-files-found: error
retention-days: 7
2 changes: 2 additions & 0 deletions .github/workflows/mk-01-identity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ jobs:
identity:
# All merged modules use the same preserved executors and private fixtures.
uses: ./.github/workflows/core-protocol.yml
with:
split_rust_targets: true
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ for (const key of [
Object.assign(globalThis, { IS_REACT_ACT_ENVIRONMENT: true })
const clicks: string[] = []
const consent: boolean[] = []
let oauthPending = false
let telegramPending = false
mock.module('react-i18next', () => ({
useTranslation: () => ({
t: (key: string, options?: { name?: string }) =>
Expand All @@ -42,7 +44,7 @@ mock.module('../hooks/use-oauth-login', () => ({
useOAuthLogin: (_: unknown, __: unknown, acceptedLegal: boolean) => {
consent.push(acceptedLegal)
return {
isLoading: false,
isLoading: oauthPending,
githubButtonText: '',
githubButtonDisabled: false,
handleGoogleLogin: () => clicks.push('builtin:google'),
Expand All @@ -53,7 +55,7 @@ mock.module('../hooks/use-oauth-login', () => ({
handleLinuxDOLogin: () => {},
handleTelegramLogin: () => {},
isTelegramDialogOpen: false,
isTelegramPending: false,
isTelegramPending: telegramPending,
handleTelegramAuthorization: () => {},
handleTelegramDialogChange: () => {},
}
Expand Down Expand Up @@ -97,6 +99,7 @@ async function render(
props: {
registrationOnly?: boolean
disabled?: boolean
isWeChatLoading?: boolean
acceptedLegal?: boolean
registrationCapabilitiesReady?: boolean
} = {}
Expand Down Expand Up @@ -134,10 +137,63 @@ afterEach(async () => {
await unmount()
document.body.replaceChildren()
clicks.length = 0
oauthPending = false
telegramPending = false
consent.length = 0
})
after(() => dom.close())

test('browser OAuth pending is announced and clears when the attempt settles', async () => {
oauthPending = true
const host = await render(supported, { acceptedLegal: true })
const button = getButton(host)
assert.equal(button.disabled, true)
assert.equal(button.getAttribute('aria-busy'), 'true')
assert.equal(
host.querySelector('[role="status"]')?.textContent,
'Signing in...'
)
assert.equal(
host.querySelector('[role="status"]')?.getAttribute('aria-live'),
'polite'
)
await act(async () => button.click())
assert.deepEqual(clicks, [])
oauthPending = false
await act(async () =>
root?.render(
<OAuthProviders
status={supported}
registrationCapabilitiesReady
featureGoogle
acceptedLegal
/>
)
)
assert.equal(getButton(host).disabled, false)
assert.equal(getButton(host).getAttribute('aria-busy'), 'false')
assert.equal(host.querySelector('[role="status"]'), null)
await act(async () => getButton(host).click())
assert.deepEqual(clicks, ['builtin:google'])
})

for (const provider of ['Telegram', 'WeChat'] as const) {
test(`${provider} pending has visible accessible progress`, async () => {
telegramPending = provider === 'Telegram'
const host = await render(supported, {
isWeChatLoading: provider === 'WeChat',
})
assert.equal(
host.querySelector('[role="status"]')?.textContent,
'Signing in...'
)
assert.equal(
host.querySelector('[role="status"]')?.getAttribute('aria-live'),
'polite'
)
})
}

describe('Google provider buttons', () => {
test('native supported browser Google wins, custom duplicate is not invoked', async () => {
const host = await render(supported, { acceptedLegal: true })
Expand Down
11 changes: 11 additions & 0 deletions apps/web/src/features/auth/components/oauth-providers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ export function OAuthProviders({
(provider) => !provider.featured
)
const showProviderDivider = !featuredProvider || otherProviders.length > 0
const pending = isLoading || isWeChatLoading || isTelegramPending

const renderProviderButton = (provider: ProviderButton, compact: boolean) => (
<Button
Expand All @@ -222,6 +223,7 @@ export function OAuthProviders({
: undefined
}
disabled={disabled || isLoading || provider.disabled}
aria-busy={isLoading}
onClick={provider.onClick}
className={cn(
'h-auto w-full min-w-0 flex-col justify-center gap-1 rounded-xl py-2.5 shadow-none',
Expand Down Expand Up @@ -277,6 +279,15 @@ export function OAuthProviders({
)}
</div>
) : null}
{pending ? (
<p
role='status'
aria-live='polite'
className='text-muted-foreground text-center text-xs'
>
{t('Signing in...')}
</p>
) : null}
{hasLoginOnlyProvider ? (
<p id={policyDescriptionId} className='text-muted-foreground text-xs'>
{t(
Expand Down
Loading
Loading