Skip to content

Build the autoindex image from the release checkout; prepare v0.6.8 - #236

Merged
chrapkowski-sg merged 2 commits into
scipfrom
autoindex-local-package
Oct 22, 2026
Merged

chrapkowski-sg merged 2 commits into
scipfrom
autoindex-local-package

Conversation

@chrapkowski-sg

Copy link
Copy Markdown
Collaborator

The v0.6.7 release published to npm and pushed sourcegraph/scip-python:v0.6.7 (sha256:fab683cc…), but the image contains scip-python 0.6.6. Since July, npm scans newly published versions for malware before they can be installed, usually for about five minutes (changelog). Dockerfile.autoindex ran npm install -g @sourcegraph/scip-python about a minute after npm publish and got the previous version.

Change

  • Dockerfile.autoindex installs the tarball from npm pack in packages/pyright-scip instead of the registry version. @sourcegraph/src still comes from npm.
  • scip-release.yml and scip-docker.yml run npm pack (its prepack cleans and builds) instead of npm run build, and pass context: . to build-push-action. Without context, the action builds from a fresh Git checkout, which doesn't contain the untracked tarball. That also means the build step the workflows already had never affected the image.
  • Version 0.6.8 and a CHANGELOG entry.

Test plan

I reproduced the release job locally: Node 24 from the new base, npm install, npm pack, then docker build -f Dockerfile.autoindex ..

  • scip-python --version and npm ls -g report 0.6.8. The tarball is removed from the image.
  • TLS check against the eMudhra test hosts (INC-541): no client accepted the compromised chains (42 rejections), and 21 of 21 control connections succeeded.
  • Indexing psf/requests v2.32.3: identical to the published v0.6.7 image (4,466 symbols) apart from tool_info.version, which is now 0.6.8.

The docker-scip check on this PR builds the image the new way.

After merging, tag v0.6.8 and repin its digest in sourcegraph/sourcegraph.

npm now holds newly published versions for malware scanning (about
five minutes), so the v0.6.7 release built its image with 0.6.6 from
the registry. Pack the package in the workflow and install that
tarball in Dockerfile.autoindex instead.

build-push-action defaults to a Git context, which does not contain
the untracked tarball, so build from the workspace with context: .

Amp-Thread-ID: https://ampcode.com/threads/T-01a16041-ef1e-774a-957e-9f7122a62a0e
Co-authored-by: Amp <amp@ampcode.com>
@chrapkowski-sg
chrapkowski-sg merged commit 3b50a06 into scip Oct 22, 2026
5 checks passed
@chrapkowski-sg
chrapkowski-sg deleted the autoindex-local-package branch October 22, 2026 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants