Skip to content

Update version to 0.3.1 and modify date handling in DeeplakeFs to ret…#16

Merged
efenocchi merged 2 commits into
mainfrom
feature/improve-knowledge
Apr 7, 2026
Merged

Update version to 0.3.1 and modify date handling in DeeplakeFs to ret…#16
efenocchi merged 2 commits into
mainfrom
feature/improve-knowledge

Conversation

@efenocchi
Copy link
Copy Markdown
Collaborator

…ain full date strings

Summary

Version Bump

To trigger a release, bump "version" in package.json before merging.

Change type Version bump Example
Bug fix patch (1.2.0 → 1.2.1) "version": "1.2.1"
New feature minor (1.2.0 → 1.3.0) "version": "1.3.0"
Breaking change major (1.2.0 → 2.0.0) "version": "2.0.0"

If you don't bump the version, no release will be created.

Test plan

  • Tests pass locally (npm test)
  • Relevant new tests added
  • Version bumped in package.json, or no release needed for this change

@efenocchi efenocchi merged commit 66e3246 into main Apr 7, 2026
2 checks passed
efenocchi added a commit that referenced this pull request May 18, 2026
CodeRabbit #16/#17: two test files mutate process env (and one creates
a tmp dir) inside `runHook(env)` calls without restoring them. Since
`runHook()` only updates the env keys passed in, a test that sets e.g.
`EMBEDDINGS_DISABLED_FOR_TEST=1` would leak the disabled state into
every later test in the same vitest worker, making the suite order-
dependent. The hermes test additionally leaves a tmp config dir on disk.

Fix in both files:
- Track the original value of each touched env key the first time
  `runHook()` mutates it (so re-mutation in the same test doesn't
  overwrite the snapshot with an intermediate value).
- In `afterEach`, restore every captured key (delete if it was unset
  before, otherwise reassign) and clear the snapshot map for the
  next test.
- For tests/hermes/hermes-capture-hook.test.ts: also track mkdtemp'd
  config dirs in `_tmpDirsToClean` and `rmSync` them in afterEach.

No behavior change in the tests themselves; this is pure isolation
hardening to remove the order-dependence CodeRabbit flagged.
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.

1 participant