mike

Joined 3 months ago

Last active 1 week ago

Reviewer evidence for tsk-vivid-crayon-waits (SQLite job queue, FMD-Web Phase 3): vitest run of server/test/jobs/ — 115/115 passing. Stress drill ran twice standalone (16 worker_threads x 500 jobs x 10 reps, identical digests). tsc -b clean, eslint clean.

0 0 2
1 RUN v3.2.7 /workspace/fmd-web
2
3 ✓ server/test/jobs/packers/packers-memory.test.ts > 1000-page synthetic chapter packs under the D16 budget > ZIP pack: entries ordered, CRC-valid, heap far below the book size 6520ms
4 ✓ server/test/jobs/packers/packers-memory.test.ts > 1000-page synthetic chapter packs under the D16 budget > EPUB pack: spine equals chapter order across 1000 pages, under budget 3100ms
5 ✓ server/test/jobs/packers/packers-memory.test.ts > 1000-page synthetic chapter packs under the D16 budget > PDF pack: incremental writer streams 1000 pages, page count matches, under budget 3721ms
6 ✓ server/test/jobs/stress.test.ts > stress: 16 claimants × 500 jobs × 10 reps > zero double-claims, zero lost jobs — deterministic across all 10 repetitions 9129ms
7 ✓ server/test/jobs/queue.test.ts > SqliteJobQueue — typed payloads & lanes (§4/§9) > a download payload round-trips typed through the persisted row 36ms
8 ✓ server/test/jobs/queue.test.ts > SqliteJobQueue — typed payloads & lanes (§4/§9) > each of the four §4 lane families routes by its discriminant 28ms
9 ✓ server/test/jobs/queue.test.ts > SqliteJobQueue — typed payloads & lanes (§4/§9) > sync jobs targeting one catalog require catalogId 26ms
10 ✓ server/test/jobs/queue.test.ts > SqliteJobQueue — typed payloads & lanes (§4/§9) > a corrupted payload row fails LOUDLY at parse time (never stringly-typed) 26ms
Last active 1 month ago
0 0 1
1 flux-system cluster-storage-seaweedfs main@sha1:cbdf357b False False Job/storage/seaweedfs-rclone-migrate dry-run failed (Invalid): Job.batch "seaweedfs-rclone-migrate" is invalid: spec.template: Invalid value: {"labels":{"app.kubernetes.io/instance":"seaweedfs","app.kubernetes.io/name":"seaweedfs","batch.kubernetes.io/controller-uid":"cf96bf6a-ff74-470f-bf0f-21d53c551d85","batch.kubernetes.io/job-name":"seaweedfs-rclone-migrate","controller-uid":"cf96bf6a-ff74-470f-bf0f-21d53c551d85","job-name":"seaweedfs-rclone-migrate"},"Spec":{"Volumes":null,"InitContainers":null,"Containers":[{"Name":"rclone","Image":"rclone/rclone:1.75.2","Command":["/bin/sh","-c"],"Args":["set -e\nBUCKETS=\"paperless outline cnpg-5wxuej restic ragnarok nemo-herc-ws forgejo-k8s ai-or-not tftp private public iceberg\"\necho \"=== copying ===\"\nfor b in $BUCKETS; do\n echo \"\u003e\u003e\u003e $b\"\n rclone copy \"src:$b\" \"dst:$b\" \\\n --transfers 8 --checkers 8 \\\n --stats-one-line --stats 30s\ndone\necho \"=== verifying checksums ===\"\nrc=0\nfor b in $BUCKETS; do\n echo \"\u003e\u003e\u003e check $b\"\n rclone check \"src:$b\" \"dst:$b\" --one-way || rc=1\ndone\nexit $rc\n"],"WorkingDir":"","Ports":null,"EnvFrom":null,"Env":[{"Name":"RCLONE_CONFIG_SRC_TYPE","Value":"s3","ValueFrom":null},{"Name":"RCLONE_CONFIG_SRC_ENDPOINT","Value":"http://minio.storage.svc.cluster.local:9000","ValueFrom":null},{"Name":"RCLONE_CONFIG_SRC_REGION","Value":"us-east-1","ValueFrom":null},{"Name":"RCLONE_CONFIG_SRC_FORCE_PATH_STYLE","Value":"true","ValueFrom":null},{"Name":"RCLONE_CONFIG_SRC_ACCESS_KEY_ID","Value":"","ValueFrom":{"FieldRef":null,"ResourceFieldRef":null,"ConfigMapKeyRef":null,"SecretKeyRef":{"Name":"minio","Key":"MINIO_ROOT_USER","Optional":null},"FileKeyRef":null}},{"Name":"RCLONE_CONFIG_SRC_SECRET_ACCESS_KEY","Value":"","ValueFrom":{"FieldRef":null,"ResourceFieldRef":null,"ConfigMapKeyRef":null,"SecretKeyRef":{"Name":"minio","Key":"MINIO_ROOT_PASSWORD","Optional":null},"FileKeyRef":null}},{"Name":"RCLONE_CONFIG_DST_TYPE","Value":"s3","ValueFrom":null},{"Name":"RCLONE_CONFIG_DST_ENDPOINT","Value":"http://seaweedfs-s3.storage.svc.cluster.local:8333","ValueFrom":null},{"Name":"RCLONE_CONFIG_DST_REGION","Value":"us-east-1","ValueFrom":null},{"Name":"RCLONE_CONFIG_DST_FORCE_PATH_STYLE","Value":"true","ValueFrom":null},{"Name":"RCLONE_CONFIG_DST_ACCESS_KEY_ID","Value":"","ValueFrom":{"FieldRef":null,"ResourceFieldRef":null,"ConfigMapKeyRef":null,"SecretKeyRef":{"Name":"seaweedfs-s3-config","Key":"admin_access_key_id","Optional":null},"FileKeyRef":null}},{"Name":"RCLONE_CONFIG_DST_SECRET_ACCESS_KEY","Value":"","ValueFrom":{"FieldRef":null,"ResourceFieldRef":null,"ConfigMapKeyRef":null,"SecretKeyRef":{"Name":"seaweedfs-s3-config","Key":"admin_secret_access_key","Optional":null},"FileKeyRef":null}}],"Resources":{"Limits":null,"Requests":null,"Claims":null},"ResizePolicy":null,"RestartPolicy":null,"RestartPolicyRules":null,"VolumeMounts":null,"VolumeDevices":null,"LivenessProbe":null,"ReadinessProbe":null,"StartupProbe":null,"Lifecycle":null,"TerminationMessagePath":"/dev/termination-log","TerminationMessagePolicy":"File","ImagePullPolicy":"IfNotPresent","SecurityContext":null,"Stdin":false,"StdinOnce":false,"TTY":false}],"EphemeralContainers":null,"RestartPolicy":"Never","TerminationGracePeriodSeconds":30,"ActiveDeadlineSeconds":null,"DNSPolicy":"ClusterFirst","NodeSelector":{"node-role.kubernetes.io/worker":"true"},"ServiceAccountName":"","AutomountServiceAccountToken":null,"NodeName":"","SecurityContext":{"HostNetwork":false,"HostPID":false,"HostIPC":false,"ShareProcessNamespace":null,"HostUsers":null,"SELinuxOptions":null,"WindowsOptions":null,"RunAsUser":null,"RunAsGroup":null,"RunAsNonRoot":null,"SupplementalGroups":null,"SupplementalGroupsPolicy":null,"FSGroup":null,"FSGroupChangePolicy":null,"Sysctls":null,"SeccompProfile":null,"AppArmorProfile":null,"SELinuxChangePolicy":null},"ImagePullSecrets":null,"Hostname":"","Subdomain":"","SetHostnameAsFQDN":null,"Affinity":null,"SchedulerName":"default-scheduler","Tolerations":null,"HostAliases":null,"PriorityClassName":"","Priority":null,"PreemptionPolicy":null,"DNSConfig":null,"ReadinessGates":null,"RuntimeClassName":null,"Overhead":null,"EnableServiceLinks":null,"TopologySpreadConstraints":null,"OS":null,"SchedulingGates":null,"ResourceClaims":null,"Resources":null,"HostnameOverride":null,"WorkloadRef":null}}: field is immutable
Last active 2 months ago membership youtube yt-dlp

This guide documents the complete process for downloading YouTube membership-restricted videos using AWS EC2, Docker containers, yt-dlp, and various anti-bot bypass techniques. This method is necessary because YouTube membership videos have strict protections including geo-restrictions, bot detection, SABR streaming protocol enforcement, and JavaScript challenges.

0 0 1

YouTube Membership Video Download Guide

Overview

This guide documents the complete process for downloading YouTube membership-restricted videos using AWS EC2, Docker containers, yt-dlp, and various anti-bot bypass techniques. This method is necessary because YouTube membership videos have strict protections including geo-restrictions, bot detection, SABR streaming protocol enforcement, and JavaScript challenges.

Success Requirements:

  • EC2 instance in a region where the video is available (Hong Kong worked for Chinese content)
  • Fresh browser cookies from authenticated YouTube session
  • PO (Proof of Origin) token generation via bgutil
Last active 3 months ago
0 0 1

Claude Desktop 3P Mode with LiteLLM

Claude Desktop has a third-party inference (3P) mode that allows the Desktop application to route inference requests through a custom gateway such as LiteLLM. This is configured separately from the normal Anthropic account login. Recent Claude Desktop configurations use a Claude-3p configuration directory and an inferenceProvider: "gateway" configuration. ([Gist][1])

Important: When configuring the LiteLLM gateway URL in Claude Desktop 3P mode, do not include /v1 in the Base URL. Claude Desktop adds the /v1/... API paths itself. For example, use http://localhost:4000, not http://localhost:4000/v1. A working 3P gateway will ultimately receive requests such as /v1/models and /v1/messages. ([GitHub][2])

1. Enable Developer Mode

Open Claude Desktop and go to:

Last active 3 months ago

Diagnosis and remediation for workspace pods stuck in Creating due to stale CSI mounts / kubelet volume queue deadlocks

0 0 1

Stale CSI Mount — Workspace Stuck Pending

Summary

Workspace pods (b70553ae, ebafc5da, d048256b) were stuck in Creating phase for 7–17 days. Root cause: a deleted Longhorn PV (pvc-81b676e6) left a stale device mount on worker-04, which blocked the kubelet's serialized NestedPendingOperations queue. Every pod needing a CSI volume mount on that node was deadlocked.

Symptoms

  • Workspace CRD stuck in Creating phase
  • Pod is Pending with PodScheduled=True but zero containers