ssbc / ssb-replication-scheduler

Plugin to trigger replication of feeds identified as friendly in the social graph
8 stars 1 forks source link

Adapt to tribes2 with exclusion #20

Closed Powersource closed 1 year ago

Powersource commented 1 year ago
socket-security[bot] commented 1 year ago

New dependency changes detected. Learn more about Socket for GitHub ↗︎


👍 No new dependency issues detected in pull request

Bot Commands

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of package-name@version specifiers. e.g. @SocketSecurity ignore foo@1.0.0 bar@* or ignore all packages with @SocketSecurity ignore-all

Pull request alert summary
Issue Status
Install scripts ✅ 0 issues
Native code ✅ 0 issues
Bin script shell injection ✅ 0 issues
Unresolved require ✅ 0 issues
Invalid package.json ✅ 0 issues
HTTP dependency ✅ 0 issues
Git dependency ✅ 0 issues
Deprecated license ✅ 0 issues
Missing license ✅ 0 issues
Potential typo squat ✅ 0 issues
Known Malware ✅ 0 issues
Telemetry ✅ 0 issues
Protestware/Troll package ✅ 0 issues

📊 Modified Dependency Overview:

⬆️ Updated Package Version Diff Added Capability Access +/- Transitive Count Publisher
ssb-meta-feeds@0.39.0 0.38.2...0.39.0 None +0/-0 powersource
ssb-box2@7.1.0 5.0.0...7.1.0 None +3/-1 powersource

🚮 Removed packages: ssb-tribes2@0.4.0

Powersource commented 1 year ago

currently failing with

% node test/integration/groups.js
TAP version 13
# group members who are not friends replicate each other
ok 1 created root metafeeds for alice, bob, carol
ok 2 alice is mutually following bob and carol
ok 3 bob and carol connected to alice
ok 4 alice has replicated bob main
ok 5 alice has replicated carol main
ok 6 bob has replicated alice main
ok 7 carol has replicated alice main
ok 8 bob has NOT replicated carol main
ok 9 carol has NOT replicated bob main
ok 10 bob and carol disconnected from alice
ok 11 alice created a group
ok 12 alice added bob and carol to the group
ok 13 bob and carol connected to alice
ok 14 bob and carol are members of the group
ok 15 bob and carol disconnected from alice
ok 16 carol published a message to the group
ok 17 bob connected to carol
not ok 18 Error: Msg %bL5j3ehEEFxYGv6d6p+wmK+l5J9eXIxiDBR9o7ocg1U=.sha256 not found in leveldb index
  ---
    operator: error
    at: async Test.<anonymous> (/home/me/prj/ssb/ssb-replication-scheduler/test/integration/groups.js:236:15)
    stack: |-
      Error: Msg %bL5j3ehEEFxYGv6d6p+wmK+l5J9eXIxiDBR9o7ocg1U=.sha256 not found in leveldb index
          at /home/me/prj/ssb/ssb-replication-scheduler/node_modules/.pnpm/ssb-db2@6.3.3/node_modules/ssb-db2/core.js:244:21
          at /home/me/prj/ssb/ssb-replication-scheduler/node_modules/.pnpm/ssb-db2@6.3.3/node_modules/ssb-db2/indexes/keys.js:35:16
          at /home/me/prj/ssb/ssb-replication-scheduler/node_modules/.pnpm/levelup@4.4.0/node_modules/levelup/lib/levelup.js:192:14
        NotFoundError: Key not found in database [%bL5j3ehEEFxYGv6d6p+wmK+l5J9eXIxiDBR9o7ocg1U=.sha256]
          at /home/me/prj/ssb/ssb-replication-scheduler/node_modules/.pnpm/levelup@4.4.0/node_modules/levelup/lib/levelup.js:188:15
          at /home/me/prj/ssb/ssb-replication-scheduler/node_modules/.pnpm/encoding-down@6.3.0/node_modules/encoding-down/index.js:75:21
  ...
not ok 19 TypeError: Cannot read properties of undefined (reading 'content')
  ---
    operator: error
    stack: |-
      TypeError: Cannot read properties of undefined (reading 'content')
          at Test.<anonymous> (/home/me/prj/ssb/ssb-replication-scheduler/test/integration/groups.js:237:16)
  ...
# group members who block each other replicate each other

/home/me/prj/ssb/ssb-replication-scheduler/node_modules/.pnpm/levelup@4.4.0/node_modules/levelup/lib/levelup.js:119
      return callback(new OpenError(err))
                      ^
Error [OpenError]: IO error: lock /tmp/ssb-replication-tests-alice/db2/indexes/base/LOCK: already held by process
    at /home/me/prj/ssb/ssb-replication-scheduler/node_modules/.pnpm/levelup@4.4.0/node_modules/levelup/lib/levelup.js:119:23
    at /home/me/prj/ssb/ssb-replication-scheduler/node_modules/.pnpm/abstract-leveldown@6.2.3/node_modules/abstract-leveldown/abstract-leveldown.js:38:14
    at /home/me/prj/ssb/ssb-replication-scheduler/node_modules/.pnpm/deferred-leveldown@5.3.0/node_modules/deferred-leveldown/deferred-leveldown.js:31:21
    at /home/me/prj/ssb/ssb-replication-scheduler/node_modules/.pnpm/abstract-leveldown@6.3.0/node_modules/abstract-leveldown/abstract-leveldown.js:38:14
    at /home/me/prj/ssb/ssb-replication-scheduler/node_modules/.pnpm/abstract-leveldown@6.2.3/node_modules/abstract-leveldown/abstract-leveldown.js:38:14
Emitted 'error' event on LevelUP instance at:
    at /home/me/prj/ssb/ssb-replication-scheduler/node_modules/.pnpm/levelup@4.4.0/node_modules/levelup/lib/levelup.js:60:19
    at /home/me/prj/ssb/ssb-replication-scheduler/node_modules/.pnpm/levelup@4.4.0/node_modules/levelup/lib/levelup.js:119:14
    at /home/me/prj/ssb/ssb-replication-scheduler/node_modules/.pnpm/abstract-leveldown@6.2.3/node_modules/abstract-leveldown/abstract-leveldown.js:38:14
    [... lines matching original stack trace ...]
    at /home/me/prj/ssb/ssb-replication-scheduler/node_modules/.pnpm/abstract-leveldown@6.2.3/node_modules/abstract-leveldown/abstract-leveldown.js:38:14 {
  [cause]: undefined
}
Powersource commented 1 year ago

@SocketSecurity ignore-all

mixmix commented 1 year ago

Wow this is looking nice and tidy @Powersource I think I'm keen to make tools for connectAndWaitToSync to tidy up this test (remove setTimeouts), but that's another PR.

Ka pai (well done)!

Powersource commented 1 year ago

3.1.0