Replace script/update-policy with script/write-upstream-policy-files and script/commit-upstream-policy-files (closes #165)
check / check (push) Successful in 38s
check / check (push) Successful in 38s
script/write-upstream-policy-files fetches the shared policy files from prompts over HTTP and writes them into a repo clone, or into its own repo. It commits nothing. A repo gets only the documents its own work uses; its copies of the others are deleted. It keeps a repo's own entries in .gitignore, .dockerignore, .editorconfig and .golangci.yml, and stops, writing nothing, rather than lose a line it cannot keep. script/commit-upstream-policy-files replaces script/update-policy. It fetches the current script/write-upstream-policy-files, runs it on its own repo and commits the result without pushing. make commit-upstream-policy-files replaces make update-policy. test/commit-upstream-policy-files.sh replaces test/update-policy.sh. The Dockerfile's test stage runs it with no timeout, with coreutils so that cp is GNU cp. Model: opus-5-5
This commit is contained in:
1 parent
964d973e3c
commit
427e507504
11 files changed
+1473
-825
No files matched your search
+7
-3
@@ -22,11 +22,15 @@ COPY . .
|
||||
|
||||
RUN yarn run prettier --check '**/*.md' --tab-width 4 --prose-wrap always
|
||||
|
||||
# Test phase, same shape and for the same reason.
|
||||
# Test phase, same shape and for the same reason. coreutils makes cp GNU
|
||||
# cp, which writes into an existing file, as cp does on most hosts.
|
||||
# busybox cp makes a new file, so test/commit-upstream-policy-files.sh
|
||||
# would pass even if script/write-upstream-policy-files copied straight
|
||||
# over the running script/commit-upstream-policy-files.
|
||||
#
|
||||
# alpine 3.24.3, 2026-11-04
|
||||
FROM alpine@sha256:be2656061b536c1883c4034790e21d0a09c5aaaf51968b89368a3c0371ea2c9a AS test
|
||||
RUN apk add --no-cache git make nodejs-current yarn
|
||||
RUN apk add --no-cache coreutils git make nodejs-current yarn
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
@@ -37,7 +41,7 @@ RUN script/bootstrap
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN timeout 90 test/update-policy.sh
|
||||
RUN test/commit-upstream-policy-files.sh
|
||||
|
||||
# Development environment, and the last stage: a plain `docker build .`
|
||||
# names no target and so builds this one. Nothing is wanted from the two
|
||||
|
||||
Reference in new issue
Block a user