Skip to content

validate network definitions with upgrades.json  #4941

Closed as not planned
Closed as not planned

Description

@LesnyRumcajs

Summary

There's a shared source of truth we could use in Forest to assert the correctness of its network definitions. See the JSON at filecoin-project/core-devs#184

While having it as part of our build seems too much (especially since only a subset of the network is present), we can certainly include some validations in tests, i.e., check that the epochs are correct in the CI.

Completion Criteria

  • Implement tests validating some of the properties of the network definitions we have - this includes network epochs and CIDs in the manifests.
  • Ensure the tests are run in CI

Additional Links & Resources

Activity

  1. added
    Type: Task
    on Oct 28, 2024
  2. moved this from New to Ready in Forest Backlog 🌲on Oct 28, 2024
  3. 0xDevNinja commented on Apr 24, 2026

    @0xDevNinja
    Contributor

    Planning to cross-check Forest's HEIGHT_INFOS against the authoritative upgrades.json by vendoring it under build/ and adding a test that validates each Height variant. Will include a small allowlist for Forest-specific heights like WatermelonFix and Breeze. If a maintainer can assign this to me that would be great — otherwise I'll reference it via Closes #4941 in the PR.

    — @0xDevNinja

  4. LesnyRumcajs commented on Apr 29, 2026

    @LesnyRumcajs
    MemberAuthor

    After some consideration, this is probably not a valuable feature. Network upgrades need to be coordinated anyway and if anything, the aforementioned JSON file gets updated last. Thanks for your interest, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: Taskgood first issue

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions