Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for npm engine #913

Merged
merged 22 commits into from
Nov 7, 2024
Merged

Add support for npm engine #913

merged 22 commits into from
Nov 7, 2024

Conversation

ezekg
Copy link
Member

@ezekg ezekg commented Nov 1, 2024

Closes #489. In the end, it should be as simple as npm pack and keygen upload example-1.0.0.tgz — the rest should be automatically done by the engine. Like with PyPI and Rubygems, npm push will not be supported right away.

Prereqs

Subreqs

  • Set up npm.pkg.keygen.sh subdomain.
  • Update dashboard.
  • Update changelog.
  • Update blog.
  • Update docs.
  • Update Zapier.
  • Outreach.

require 'minitar'
require 'zlib'

class ProcessDockerImageWorker < BaseWorker
Copy link
Member Author

@ezekg ezekg Nov 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spoilers! 😉 Rip this out into a separate PR.

@ezekg ezekg force-pushed the feature/npm-engine branch from b63678f to 7b4c4b0 Compare November 1, 2024 21:02
spec/fixtures/files/expired.lic Outdated Show resolved Hide resolved
@ezekg ezekg force-pushed the feature/npm-engine branch 2 times, most recently from c926e83 to 5568721 Compare November 1, 2024 21:04
@ezekg ezekg force-pushed the feature/npm-engine branch 2 times, most recently from 127b774 to f038570 Compare November 1, 2024 22:59
spec/factories/release_manifest.rb Outdated Show resolved Hide resolved
spec/workers/process_npm_package_worker_spec.rb Outdated Show resolved Hide resolved
@ezekg ezekg force-pushed the feature/npm-engine branch 3 times, most recently from cc14193 to eee1e73 Compare November 4, 2024 16:30
.github/workflows/test.yml Outdated Show resolved Hide resolved
app/models/release_artifact.rb Outdated Show resolved Hide resolved
config/routes.rb Outdated Show resolved Hide resolved
spec/matchers/allocate_less_than_spec.rb Outdated Show resolved Hide resolved
spec/support/matchers/memory_matchers.rb Outdated Show resolved Hide resolved
spec/workers/wait_for_artifact_upload_worker_spec.rb Outdated Show resolved Hide resolved
spec/workers/wait_for_artifact_upload_worker_spec.rb Outdated Show resolved Hide resolved
spec/workers/wait_for_artifact_upload_worker_spec.rb Outdated Show resolved Hide resolved
artifact.update!(status: 'UPLOADED')

BroadcastEventService.call(
event: 'artifact.upload.succeeded',
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: update Zapier with new event.

@ezekg ezekg force-pushed the feature/npm-engine branch from b0895e0 to 4c5b39f Compare November 5, 2024 21:46
# FIXME(ezekg) https://github.com/brianhempel/active_record_union/issues/35
last_modified = artifacts.maximum(:"#{artifacts.table_name}.updated_at")
return unless
stale?(artifacts, last_modified:, cache_control: { max_age: 1.day, private: true })
Copy link
Member Author

@ezekg ezekg Nov 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rip out the PyPI etag stuff into a separate PR.

@ezekg ezekg force-pushed the feature/npm-engine branch 7 times, most recently from fc7035f to 44098d5 Compare November 6, 2024 22:55
@ezekg ezekg marked this pull request as ready for review November 7, 2024 05:29
@ezekg ezekg force-pushed the feature/npm-engine branch 2 times, most recently from 9566850 to 44fbd9e Compare November 7, 2024 14:45
@ezekg ezekg force-pushed the feature/npm-engine branch from 44fbd9e to 2c19e9f Compare November 7, 2024 16:15
@ezekg ezekg merged commit 461e287 into master Nov 7, 2024
5 checks passed
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.

Add a release engine for npm
1 participant