Skip to content

Investigate and fix JSR publishing issues with @fedify/cli & @fedify/testing packages #468

@dahlia

Description

@dahlia

The @fedify/testing package introduced in Fedify 1.8 frequently hangs during the JSR server-side processing stage when publishing. According to discussion in the JSR official Discord server, this issue might be related to circular type import references between modules, which doesn't fail locally on Deno (because type imports allow for circularity) but causes problems during JSR injection.

Symptoms

  • Publishing pipeline gets stuck at “waiting for publishing” status
  • Some publishing attempts seem to process indefinitely
  • The issue appears to be specific to the @fedify/testing package

Possible cause

Based on the Discord conversation with JSR maintainers, the likely cause is circular type import references between modules. While Deno handles circular type imports without issues locally, the JSR publishing pipeline may have trouble processing these during the injection phase.

Tasks

  • Audit @fedify/testing package for circular type imports
  • Identify any circular dependencies between modules
  • Refactor code to eliminate circular type references
  • Test publishing to JSR after refactoring
  • Document any architectural changes made to prevent future occurrences

References

Additional notes

Another JSR user experienced a similar issue and resolved it by refactoring away what they suspected were circular type import references. While the exact cause was unclear, removing potential circular dependencies between modules appeared to fix the JSR injection hanging issue.

According to the JSR maintainer, the requeue button can be clicked when publishing attempts hang, though the underlying issue with circular type imports should still be addressed.

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions