Skip to content

Repo Upkeep#352

Merged
pm-McFly merged 6 commits intodevfrom
chore/general-upkeep
Mar 27, 2026
Merged

Repo Upkeep#352
pm-McFly merged 6 commits intodevfrom
chore/general-upkeep

Conversation

@pm-McFly
Copy link
Copy Markdown
Collaborator

@pm-McFly pm-McFly commented Mar 27, 2026

What

  • Updates the lockfile
  • Uses cross-env for env var in package.json scripts
  • Enhances coderabbit config with labels and knowledge base relying on dev documentations

Why

  • Overall update
  • Better stability when devs uses their own envs/OS
  • Automated reviews matching the expectations of the project

Fundamental Issue

The flaw: npm scripts set environment variables with POSIX shell syntax (LOG_TRANSPORTS=File LOG_FILE=/dev/null jest), which breaks on Windows and any non-POSIX shells — making developer workflows non-portable.

Systemic/data-flow / core logic changes

  • No algorithmic or runtime-data-flow changes in application code.
  • Test execution behavior unchanged; only how env vars are applied to test processes is made cross-platform by switching to cross-env for the test scripts in:
    • packages/federated-identity-service
    • packages/matrix-identity-server
    • packages/matrix-resolve
    • packages/tom-server
  • Minor formatting-only changes in:
    • packages/amqp-connector/src/index.ts (reformatted if-throw into multi-line block)
    • packages/db/src/sql/pg.ts and packages/db/src/sql/sqlite.ts (reformatted filter predicates to multi-line)
      These are purely stylistic; no logic or query behavior altered.

Dependency / lockfile changes

  • package-lock.json updated (lockfile refresh / dependency housekeeping). No explicit dependency API changes beyond adopting existing cross-env in scripts.

Tooling / automation changes

  • .coderabbit.yaml:
    • Enabled high_level_summary_in_walkthrough.
    • Switched to suggested_labels: true and auto_apply_labels: true with a comprehensive labeling_instructions mapping across types, statuses, priorities, severities, and package scopes.
    • Added knowledge_base.code_guidelines.enabled: true with filePatterns to ingest developer docs (AGENT*.md, CLAUDE*.md, CODING_STYLE.md, CONTRIBUTING.md, README.md).
      Effect: stronger automated review alignment with project conventions and automated label application.

Deprecated APIs / removed legacy code

  • None. No APIs deprecated or code removed.

Ignored technical debt

  • No technical debt addressed; acknowledged as routine maintenance. The PR does not tackle deeper cross-platform build/test inconsistencies beyond script invocation, nor does it refactor any fragile platform-specific code paths.

Risk & impact

  • Low risk. Mechanical, cross-platform fixes and tooling/config changes. Tests and app behavior unchanged. Review effort: low–medium depending on CI/automation interaction with the new CodeRabbit rules.

Signed-off-by: Pierre 'McFly' Marty <pmarty@linagora.com>
Signed-off-by: Pierre 'McFly' Marty <pmarty@linagora.com>
Signed-off-by: Pierre 'McFly' Marty <pmarty@linagora.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 27, 2026

Warning

Rate limit exceeded

@pm-McFly has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 0 minutes and 13 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 0 minutes and 13 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: ac742f10-3bb3-4b2f-a85d-7e56208c35c8

📥 Commits

Reviewing files that changed from the base of the PR and between eab1b41 and 61812dc.

📒 Files selected for processing (2)
  • .coderabbit.yaml
  • .github/workflows/_lint.yml
📝 Walkthrough

Walkthrough

Enabled high-level walkthrough summaries and automated labeling in CodeRabbit config; added labeling instructions and code-guideline ingestion patterns. Standardized test scripts to use cross-env. Minor formatting refactors in AMQP connector and DB SQL predicate code; no behavioral API changes.

Changes

Cohort / File(s) Summary
CodeRabbit configuration
.coderabbit.yaml
Enabled high_level_summary_in_walkthrough, enabled suggested_labels and auto_apply_labels, added labeling_instructions mapping labels to rules, and enabled knowledge_base.code_guidelines with specific markdown file patterns.
Test script standardization
packages/federated-identity-service/package.json, packages/matrix-identity-server/package.json, packages/matrix-resolve/package.json, packages/tom-server/package.json
Replaced shell-native env var assignments in test scripts with cross-env LOG_TRANSPORTS=File LOG_FILE=/dev/null jest for cross-platform execution.
AMQP connector refactor
packages/amqp-connector/src/index.ts
Reformatted runtime validation for onMessageHandler from single-line if throw to a multi-line if block; no logic change.
DB SQL predicate formatting
packages/db/src/sql/pg.ts, packages/db/src/sql/sqlite.ts
Rewrote Object.keys(...).filter(...) predicates as multi-line arrow functions in _get/_getMinMax` condition builders; behavior unchanged.

Possibly related PRs

Suggested labels

chore, javascript

🚥 Pre-merge checks | ✅ 1 | ❌ 2

❌ Failed checks (2 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title 'Repo Upkeep' is vague and generic, using non-descriptive terms that don't convey meaningful information about the specific changes in the changeset. Use a more specific title that captures the primary change—e.g., 'chore: add cross-env to test scripts and enhance coderabbit config' or similar.
Description check ❓ Inconclusive The PR description covers the 'What' and 'Why' sections adequately, but is missing critical sections from the template: no 'How', incomplete checklist coverage, and no issue reference in the 'Closes' field. Complete the description by adding a 'How' section explaining non-obvious decisions, filling out the full checklist, and referencing any related issue with 'Closes #'.
✅ Passed checks (1 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@nx-cloud
Copy link
Copy Markdown

nx-cloud bot commented Mar 27, 2026

🤖 Nx Cloud AI Fix Eligible

An automatically generated fix could have helped fix failing tasks for this run, but Self-healing CI is disabled for this workspace. Visit workspace settings to enable it and get automatic fixes in future runs.

To disable these notifications, a workspace admin can disable them in workspace settings.


View your CI Pipeline Execution ↗ for commit 61812dc

Command Status Duration Result
nx affected -t check -- --max-diagnostics none ❌ Failed 18s View ↗
nx affected -t test ✅ Succeeded 2s View ↗
nx affected -t build ✅ Succeeded 1s View ↗

☁️ Nx Cloud last updated this comment at 2026-03-27 16:20:08 UTC

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2


ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: f308ae7b-3dc8-43c8-8138-cd4864853055

📥 Commits

Reviewing files that changed from the base of the PR and between 2d1965e and 7df8f92.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (5)
  • .coderabbit.yaml
  • packages/federated-identity-service/package.json
  • packages/matrix-identity-server/package.json
  • packages/matrix-resolve/package.json
  • packages/tom-server/package.json
📜 Review details
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: Test / Test Affected Packages
  • GitHub Check: Docs / Update Documentation
🧰 Additional context used
📓 Path-based instructions (3)
packages/*/package.json

📄 CodeRabbit inference engine (packages/AGENTS.md)

packages/*/package.json: Each package must have its own package.json, tsconfig.json, rollup.config.js, and src/ directory
Each package uses the @twake/* workspace protocol for inter-package dependencies

Internal packages must reference each other using npm workspace protocol with format @twake/<name>: "*"

Files:

  • packages/tom-server/package.json
  • packages/federated-identity-service/package.json
  • packages/matrix-identity-server/package.json
  • packages/matrix-resolve/package.json
**/*.{ts,tsx,js,jsx,json,md}

📄 CodeRabbit inference engine (CLAUDE.md)

Use npm run format:check and npm run format:fix for code formatting checks

Files:

  • packages/tom-server/package.json
  • packages/federated-identity-service/package.json
  • packages/matrix-identity-server/package.json
  • packages/matrix-resolve/package.json
**/package.json

📄 CodeRabbit inference engine (CLAUDE.md)

Use ESM modules with "type": "module" in package.json for npm workspaces + Lerna monorepo

**/package.json: Always run npm install after modifying any package.json
Use ES modules ("type": "module" configuration) in all packages

Files:

  • packages/tom-server/package.json
  • packages/federated-identity-service/package.json
  • packages/matrix-identity-server/package.json
  • packages/matrix-resolve/package.json
🧠 Learnings (29)
📓 Common learnings
Learnt from: CR
Repo: linagora/ToM-server PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-03-23T09:08:46.887Z
Learning: Root-level configuration files should be edited with care as changes affect all packages in the monorepo
📚 Learning: 2026-03-18T21:43:54.137Z
Learnt from: pm-McFly
Repo: linagora/ToM-server PR: 341
File: packages/logger/package.json:38-39
Timestamp: 2026-03-18T21:43:54.137Z
Learning: In `packages/logger/package.json`, the `test` script intentionally runs plain `jest` without `LOG_TRANSPORTS=File LOG_FILE=/dev/null`. Adding those env vars causes the logger package's tests to fail, because those tests exercise the logger's own transport behavior and rely on actual log output. Do not suggest adding log-suppression env vars to this package's test script.

Applied to files:

  • packages/tom-server/package.json
  • packages/federated-identity-service/package.json
  • packages/matrix-identity-server/package.json
  • packages/matrix-resolve/package.json
📚 Learning: 2026-03-23T09:08:39.061Z
Learnt from: CR
Repo: linagora/ToM-server PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-03-23T09:08:39.061Z
Learning: Applies to **/tests/**/*.{ts,js} : Tests run with `LOG_TRANSPORTS=File LOG_FILE=/dev/null jest` to suppress log output

Applied to files:

  • packages/tom-server/package.json
  • packages/federated-identity-service/package.json
  • packages/matrix-identity-server/package.json
  • packages/matrix-resolve/package.json
📚 Learning: 2026-03-17T11:23:13.313Z
Learnt from: CR
Repo: linagora/ToM-server PR: 0
File: packages/tom-server/AGENTS.md:0-0
Timestamp: 2026-03-17T11:23:13.313Z
Learning: Applies to packages/tom-server/**/*.{test,spec}.{ts,tsx} : Tests must use SQLite in-memory database and mock external services (SMTP, Matrix homeserver) rather than using real services

Applied to files:

  • packages/tom-server/package.json
📚 Learning: 2026-03-23T09:08:39.061Z
Learnt from: CR
Repo: linagora/ToM-server PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-03-23T09:08:39.061Z
Learning: Applies to **/jest.config.{ts,js} : Tests use Jest + ts-jest and `testcontainers` for spinning up real PostgreSQL/LDAP in CI

Applied to files:

  • packages/tom-server/package.json
  • packages/federated-identity-service/package.json
  • packages/matrix-identity-server/package.json
  • packages/matrix-resolve/package.json
📚 Learning: 2026-03-17T11:20:10.724Z
Learnt from: CR
Repo: linagora/ToM-server PR: 0
File: packages/common-settings-bridge/src/AGENTS.md:0-0
Timestamp: 2026-03-17T11:20:10.724Z
Learning: Applies to packages/common-settings-bridge/src/src/common-settings-bridge/**/*.test.ts : Use Jest for testing TypeScript code in the bridge module

Applied to files:

  • packages/tom-server/package.json
  • packages/federated-identity-service/package.json
  • packages/matrix-identity-server/package.json
  • packages/matrix-resolve/package.json
📚 Learning: 2026-03-17T11:24:48.682Z
Learnt from: CR
Repo: linagora/ToM-server PR: 0
File: packages/tom-server/src/wellKnown/AGENTS.md:0-0
Timestamp: 2026-03-17T11:24:48.682Z
Learning: Applies to packages/tom-server/src/wellKnown/wellKnown/**/*.ts : When adding new config fields to well-known responses, update `src/config.json` (in tom-server) first, then include the value in the response object in the wellKnown directory

Applied to files:

  • packages/tom-server/package.json
📚 Learning: 2026-03-23T09:08:39.061Z
Learnt from: CR
Repo: linagora/ToM-server PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-03-23T09:08:39.061Z
Learning: Applies to **/tests/**/*.{ts,js} : Jest config maps `twake/*` imports to local `packages/*/src` directories, so tests run against source directly without building

Applied to files:

  • packages/tom-server/package.json
  • packages/federated-identity-service/package.json
  • packages/matrix-identity-server/package.json
  • packages/matrix-resolve/package.json
📚 Learning: 2026-03-17T11:20:10.724Z
Learnt from: CR
Repo: linagora/ToM-server PR: 0
File: packages/common-settings-bridge/src/AGENTS.md:0-0
Timestamp: 2026-03-17T11:20:10.724Z
Learning: Applies to packages/common-settings-bridge/src/src/common-settings-bridge/**/*.test.ts : Mock the `matrix-appservice-bridge` library in Jest tests using the mock in `__mocks__/matrix-appservice-bridge.ts`

Applied to files:

  • packages/tom-server/package.json
  • packages/federated-identity-service/package.json
  • packages/matrix-identity-server/package.json
  • packages/matrix-resolve/package.json
📚 Learning: 2026-03-23T09:08:39.061Z
Learnt from: CR
Repo: linagora/ToM-server PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-03-23T09:08:39.061Z
Learning: Applies to packages/tom-server/src/**/tests/**/*.{ts,js} : Feature API tests live in `tests/` directories within feature modules

Applied to files:

  • packages/tom-server/package.json
📚 Learning: 2026-03-23T09:08:39.061Z
Learnt from: CR
Repo: linagora/ToM-server PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-03-23T09:08:39.061Z
Learning: Applies to packages/*/jest.config.ts : Each package has its own `jest.config.ts` extending `jest-base.config.js` at the root

Applied to files:

  • packages/tom-server/package.json
  • packages/federated-identity-service/package.json
📚 Learning: 2026-03-23T09:08:46.887Z
Learnt from: CR
Repo: linagora/ToM-server PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-03-23T09:08:46.887Z
Learning: Tests require built packages: run `npm build` first if running tests on fresh checkout

Applied to files:

  • packages/tom-server/package.json
  • packages/federated-identity-service/package.json
  • packages/matrix-identity-server/package.json
  • packages/matrix-resolve/package.json
📚 Learning: 2026-03-23T09:08:39.061Z
Learnt from: CR
Repo: linagora/ToM-server PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-03-23T09:08:39.061Z
Learning: Applies to **/tests/**/*.{ts,js} : Run all tests using `npm run test`, or for single packages use `cd packages/<package> && npm run test`

Applied to files:

  • packages/tom-server/package.json
  • packages/federated-identity-service/package.json
  • packages/matrix-identity-server/package.json
  • packages/matrix-resolve/package.json
📚 Learning: 2026-03-23T09:08:39.061Z
Learnt from: CR
Repo: linagora/ToM-server PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-03-23T09:08:39.061Z
Learning: Applies to **/rollup.config.{js,ts} : Build packages with Rollup

Applied to files:

  • packages/tom-server/package.json
  • packages/matrix-resolve/package.json
📚 Learning: 2026-03-23T09:08:39.061Z
Learnt from: CR
Repo: linagora/ToM-server PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-03-23T09:08:39.061Z
Learning: Build all packages using `npm run build`

Applied to files:

  • packages/tom-server/package.json
  • packages/federated-identity-service/package.json
  • packages/matrix-resolve/package.json
📚 Learning: 2026-03-17T11:21:03.013Z
Learnt from: CR
Repo: linagora/ToM-server PR: 0
File: packages/federated-identity-service/AGENTS.md:0-0
Timestamp: 2026-03-17T11:21:03.013Z
Learning: Run tests using npx nx run twake/federated-identity-service:test

Applied to files:

  • packages/federated-identity-service/package.json
  • packages/matrix-identity-server/package.json
📚 Learning: 2026-03-17T11:21:09.401Z
Learnt from: CR
Repo: linagora/ToM-server PR: 0
File: packages/federated-identity-service/src/AGENTS.md:0-0
Timestamp: 2026-03-17T11:21:09.401Z
Learning: Applies to packages/federated-identity-service/src/src/__testData__/ssl/** : Do not modify SSL certificates in `__testData__/ssl/` — they are pre-generated for local development

Applied to files:

  • packages/federated-identity-service/package.json
📚 Learning: 2026-03-23T09:08:39.061Z
Learnt from: CR
Repo: linagora/ToM-server PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-03-23T09:08:39.061Z
Learning: Applies to **/tests/**/*.{ts,js} : Run tests matching a pattern from within a package directory using `npx jest --testPathPattern="<pattern>"`

Applied to files:

  • packages/federated-identity-service/package.json
  • packages/matrix-identity-server/package.json
  • packages/matrix-resolve/package.json
📚 Learning: 2026-03-23T09:08:39.061Z
Learnt from: CR
Repo: linagora/ToM-server PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-03-23T09:08:39.061Z
Learning: Applies to packages/matrix-identity-server/src/db/**/*.{ts,js} : `MatrixIdentityServer` initializes two databases: `IdentityServerDb` (identity-server tables) and `UserDB` (user directory)

Applied to files:

  • packages/matrix-identity-server/package.json
📚 Learning: 2026-03-17T11:21:27.917Z
Learnt from: CR
Repo: linagora/ToM-server PR: 0
File: packages/matrix-identity-server/AGENTS.md:0-0
Timestamp: 2026-03-17T11:21:27.917Z
Learning: Applies to packages/matrix-identity-server/src/{account,3pid,lookup,terms,validate,keyManagement}/**/*.ts : All spec endpoints should be mounted at /_matrix/identity/v2/

Applied to files:

  • packages/matrix-identity-server/package.json
📚 Learning: 2026-03-17T11:22:24.131Z
Learnt from: CR
Repo: linagora/ToM-server PR: 0
File: packages/matrix-identity-server/src/matrixDb/AGENTS.md:0-0
Timestamp: 2026-03-17T11:22:24.131Z
Learning: Applies to packages/matrix-identity-server/src/matrixDb/matrixDb/sql/**/*.ts : Keep Synapse DB schema queries minimal and schema-version-aware to accommodate changes between Synapse versions

Applied to files:

  • packages/matrix-identity-server/package.json
📚 Learning: 2026-03-17T11:22:45.233Z
Learnt from: CR
Repo: linagora/ToM-server PR: 0
File: packages/matrix-identity-server/src/utils/AGENTS.md:0-0
Timestamp: 2026-03-17T11:22:45.233Z
Learning: Applies to packages/matrix-identity-server/src/utils/**/utils/mailer.ts : SMTP configuration in `mailer.ts` should use keys: `smtp_server`, `smtp_port`, `smtp_user`, `smtp_password`, `smtp_tls`

Applied to files:

  • packages/matrix-identity-server/package.json
📚 Learning: 2026-03-17T11:21:27.917Z
Learnt from: CR
Repo: linagora/ToM-server PR: 0
File: packages/matrix-identity-server/AGENTS.md:0-0
Timestamp: 2026-03-17T11:21:27.917Z
Learning: Applies to packages/matrix-identity-server/src/validate/**/*.ts : Email sending requires SMTP config keys: smtp_server, smtp_port, smtp_user, smtp_password

Applied to files:

  • packages/matrix-identity-server/package.json
📚 Learning: 2026-03-17T11:22:12.102Z
Learnt from: CR
Repo: linagora/ToM-server PR: 0
File: packages/matrix-identity-server/src/keyManagement/AGENTS.md:0-0
Timestamp: 2026-03-17T11:22:12.102Z
Learning: Applies to packages/matrix-identity-server/src/keyManagement/keyManagement/**/*.ts : Use Ed25519 for public key management in the Matrix Identity Server

Applied to files:

  • packages/matrix-identity-server/package.json
📚 Learning: 2026-03-17T11:23:51.582Z
Learnt from: CR
Repo: linagora/ToM-server PR: 0
File: packages/tom-server/src/identity-server/AGENTS.md:0-0
Timestamp: 2026-03-17T11:23:51.582Z
Learning: Run identity-server tests using the command: npx nx run twake/tom-server:test -- --testPathPattern=identity-server

Applied to files:

  • packages/matrix-identity-server/package.json
📚 Learning: 2026-03-17T11:22:57.617Z
Learnt from: CR
Repo: linagora/ToM-server PR: 0
File: packages/matrix-resolve/AGENTS.md:0-0
Timestamp: 2026-03-17T11:22:57.617Z
Learning: Applies to packages/matrix-resolve/src/**/*.ts : Implement `matrixResolve()` as a simple stateless API without caching for resolving Matrix homeserver addresses

Applied to files:

  • packages/matrix-resolve/package.json
📚 Learning: 2026-03-17T11:22:57.617Z
Learnt from: CR
Repo: linagora/ToM-server PR: 0
File: packages/matrix-resolve/AGENTS.md:0-0
Timestamp: 2026-03-17T11:22:57.617Z
Learning: Applies to packages/matrix-resolve/**/*.test.ts : Mock `node-fetch` and DNS in tests — no network calls required for test execution

Applied to files:

  • packages/matrix-resolve/package.json
📚 Learning: 2026-03-17T11:22:57.617Z
Learnt from: CR
Repo: linagora/ToM-server PR: 0
File: packages/matrix-resolve/AGENTS.md:0-0
Timestamp: 2026-03-17T11:22:57.617Z
Learning: Applies to packages/matrix-resolve/src/index.ts : Export `matrixResolve()`, `MatrixResolve` class, `WellKnownMatrixServer` type, `MatrixResolveArgs`, and `CacheType` from `src/index.ts`

Applied to files:

  • packages/matrix-resolve/package.json
📚 Learning: 2026-03-17T11:22:57.617Z
Learnt from: CR
Repo: linagora/ToM-server PR: 0
File: packages/matrix-resolve/AGENTS.md:0-0
Timestamp: 2026-03-17T11:22:57.617Z
Learning: Applies to packages/matrix-resolve/src/**/*.ts : Implement `MatrixResolve` class to support optional `toad-cache` LRU caching with configurable TTL and size parameters

Applied to files:

  • packages/matrix-resolve/package.json
🔇 Additional comments (5)
packages/tom-server/package.json (1)

39-39: Solid change: portability improved without changing test intent.

Line 39 keeps the exact logging-suppression behavior and makes the script Windows-safe. Clean upgrade.

Based on learnings: Applies to /tests//*.{ts,js} : Tests run with LOG_TRANSPORTS=File LOG_FILE=/dev/null jest to suppress log output.

packages/matrix-identity-server/package.json (1)

40-40: Exactly the right script hardening.

Line 40 replaces shell-specific env assignment with cross-env and keeps Jest semantics intact. No nonsense, just safer execution across dev machines.

Based on learnings: Applies to /tests//*.{ts,js} : Tests run with LOG_TRANSPORTS=File LOG_FILE=/dev/null jest to suppress log output.

packages/matrix-resolve/package.json (1)

37-37: Good, consistent portability fix.

Line 37 keeps the same Jest+log suppression setup and removes shell-specific behavior. This is the kind of boring change that prevents stupid CI fires.

Based on learnings: Applies to /tests//*.{ts,js} : Tests run with LOG_TRANSPORTS=File LOG_FILE=/dev/null jest to suppress log output.

packages/federated-identity-service/package.json (1)

38-38: No issues here—cross-env is already declared at the workspace root and the pattern matches 8+ other packages.

The change at Line 38 uses cross-env to handle platform-agnostic environment variable injection. This is not a new risk: cross-env is already declared as a devDependency in the root package.json ("^10.1.0"), and the identical pattern is used consistently across packages/utils, packages/tom-server, packages/matrix-resolve, packages/matrix-identity-server, and others. The LOG_TRANSPORTS suppression aligns with test infrastructure expectations. Ship it.

.coderabbit.yaml (1)

12-12: Good switch: walkthrough summaries enabled.

high_level_summary_in_walkthrough: true at Line 12 is clean, schema-valid, and useful for review visibility.

resolve(true)
"/_matrix/identity/v2": badMethod,
"/_matrix/identity/versions": badMethod,
"/_matrix/identity/v2/account": badMethod,

Check notice

Code scanning / devskim

A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note

Suspicious comment
)
buildRedactedUserSummary(userInfo),
)}`,
);

Check notice

Code scanning / devskim

A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note

Suspicious comment
/^(.).*(@.+)$/,
"$1***$2",
)}"`,
);

Check notice

Code scanning / devskim

A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note

Suspicious comment
Signed-off-by: Pierre 'McFly' Marty <pmarty@linagora.com>
@pm-McFly pm-McFly force-pushed the chore/general-upkeep branch from 7005c46 to 61812dc Compare March 27, 2026 16:18
@pm-McFly pm-McFly merged commit 5325a14 into dev Mar 27, 2026
10 of 11 checks passed
@pm-McFly pm-McFly deleted the chore/general-upkeep branch March 27, 2026 16:20
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