Skip to content

UTAPI-126: declare levelup, memdown and encoding-down - #1336

Merged
bert-e merged 2 commits into
development/8.1from
bugfix/UTAPI-126/declare-level-deps
Sep 22, 2026
Merged

bert-e merged 2 commits into
development/8.1from
bugfix/UTAPI-126/declare-level-deps

Conversation

@delthas

@delthas delthas commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

libV2/client/index.js requires levelup, memdown and encoding-down at runtime (lines 8-10) but package.json declares none of them. They resolve today only because Yarn 1's hoisting happens to place compatible versions within reach.

The declared ranges are the ones already in yarn.lock.

(Use case: without this it's hard for Yarn Berry consumers to use this library)

Issue: UTAPI-126

libV2/client/index.js requires all three at runtime but package.json
declared none of them. They resolved only because Yarn 1's hoisting
happened to place compatible versions within reach, so which version
utapi got was never guaranteed.

Under a stricter resolver that luck runs out: migrating Cloudserver to
Yarn 4 hoists levelup@0.19.1 instead of 4.4.0, UtapiClient then calls the
v4 API against it, and the S3 server dies at startup with
"InitializationError: Must provide a location for the database".

The declared ranges are the ones already present in yarn.lock as
transitive requirements, resolving to the same encoding-down@6.3.0,
levelup@4.4.0 and memdown@5.1.0 as before, so the lockfile is unchanged
and installs are unaffected.

Issue: UTAPI-126
@bert-e

bert-e commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

Hello delthas,

My role is to assist you with the merge of this
pull request. Please type @bert-e help to get information
on this process, or consult the user documentation.

Available options
name description privileged authored
/after_pull_request Wait for the given pull request id to be merged before continuing with the current one.
/bypass_author_approval Bypass the pull request author's approval
/bypass_build_status Bypass the build and test status
/bypass_commit_size Bypass the check on the size of the changeset TBA
/bypass_incompatible_branch Bypass the check on the source branch prefix
/bypass_jira_check Bypass the Jira issue check
/bypass_peer_approval Bypass the pull request peers' approval
/bypass_leader_approval Bypass the pull request leaders' approval
/bypass_source_branch_lineage Bypass the cross-branch contamination check
/approve Instruct Bert-E that the author has approved the pull request. ✍️
/create_pull_requests Allow the creation of integration pull requests.
/create_integration_branches Allow the creation of integration branches.
/no_octopus Prevent Wall-E from doing any octopus merge and use multiple consecutive merge instead
/unanimity Change review acceptance criteria from one reviewer at least to all reviewers
/wait Instruct Bert-E not to run until further notice.
Available commands
name description privileged
/help Print Bert-E's manual in the pull request.
/status Print Bert-E's current status in the pull request.
/clear Remove all comments from Bert-E from the history TBA
/retry Re-start a fresh build TBA
/build Re-start a fresh build TBA
/force_reset Delete integration branches & pull requests, and restart merge process from the beginning.
/reset Try to remove integration branches unless there are commits on them which do not appear on the source branch.

Status report is not available.

@scality scality deleted a comment from bert-e Sep 21, 2026
@bert-e

bert-e commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

Request integration branches

Waiting for integration branch creation to be requested by the user.

To request integration branches, please comment on this pull request with the following command:

/create_integration_branches

Alternatively, the /approve and /create_pull_requests commands will automatically
create the integration branches.

@delthas
delthas requested review from a team, SylvainSenechal and benzekrimaha September 21, 2026 15:14

@SylvainSenechal SylvainSenechal left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

nit: there is this comment that could be removed :

// These modules are added via the level-mem package rather than individually

delthas added a commit to scality/cloudserver that referenced this pull request Sep 21, 2026
lint: Berry passes `--` through to the script rather than stripping it,
so `yarn lint -- --max-warnings 0` made eslint treat --max-warnings as a
filename ("No files matching the pattern"). Yarn 1 stripped it.

utapi-v2-tests: utapi requires levelup, memdown and encoding-down but
declares none of them. Yarn 1's hoisting happened to put levelup@4 within
its reach; Berry hoists levelup@0.19, and utapi then calls the v4 API
against it, so the server never starts and the job times out waiting for
port 8000. packageExtensions declares them on utapi's behalf, with the
same ranges as scality/utapi#1336 so the lockfile is untouched.
@delthas

delthas commented Sep 22, 2026

Copy link
Copy Markdown
Contributor Author

/approve

@delthas

delthas commented Sep 22, 2026

Copy link
Copy Markdown
Contributor Author

!done 2h

@bert-e

bert-e commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

I have successfully merged the changeset of this pull request
into targetted development branches:

  • ✔️ development/8.1

  • ✔️ development/8.2

  • ✔️ development/8.3

The following branches have NOT changed:

  • development/6.4
  • development/7.10
  • development/7.4
  • development/7.70

This pull request did not target the following hotfix branch(es) so they
were left untouched:

  • hotfix/7.10.2
  • hotfix/7.10.0
  • hotfix/7.6.0
  • hotfix/7.10.14
  • hotfix/7.4.0
  • hotfix/7.4.2
  • hotfix/7.4.1
  • hotfix/7.10.7
  • hotfix/7.4.4
  • hotfix/7.4.8
  • hotfix/7.2.0
  • hotfix/7.4.6
  • hotfix/7.4.7
  • hotfix/7.8.0
  • hotfix/7.7.0
  • hotfix/6.4.7
  • hotfix/7.9.0
  • hotfix/7.4.3
  • hotfix/7.10.4
  • hotfix/7.4.5
  • hotfix/7.4.9
  • hotfix/7.10.1
  • hotfix/7.4.10
  • hotfix/7.10.3

Please check the status of the associated issue UTAPI-126.

Goodbye delthas.

The following options are set: approve

@bert-e
bert-e merged commit aff0add into development/8.1 Sep 22, 2026
14 checks passed
@bert-e
bert-e deleted the bugfix/UTAPI-126/declare-level-deps branch September 22, 2026 08:56
@delthas

delthas commented Sep 22, 2026

Copy link
Copy Markdown
Contributor Author

UTAPI-126: logged 2h; transitioned to Done (Fixed)

delthas added a commit to scality/cloudserver that referenced this pull request Sep 22, 2026
utapi 8.2.7 declares levelup, memdown and encoding-down itself
(scality/utapi#1336, UTAPI-126), so Cloudserver no longer has to declare
them on its behalf. Verified: levelup still resolves to 4.4.0 with the
block removed, and the server starts with ENABLE_UTAPI_V2=t, which is
what utapi-v2-tests was timing out on.

The bump spans 8.2.4..8.2.7, so it also brings UTAPI-112, UTAPI-122
(which rolls @senx/warp10 back to 1.0.14) and UTAPI-123 -- a git tag
cannot be cherry-picked.
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.

4 participants