Skip to content

Conversation

@SwaroopH
Copy link
Member

Changes Made

Version Management System

  • Added snapshotter/version.py: New module to centralize version management
    • Reads version from pyproject.toml using toml parser
    • Provides __version__ variable for consistent version access throughout the codebase
    • Includes CLI functionality to print version when run as module

Version Updates

  • Updated project version: Bumped from 0.1.0 to 2.11.0 in pyproject.toml
  • Added toml dependency: Required for parsing pyproject.toml to extract version

Integration Points

  • Docker initialization: Modified init_docker.sh to display version on container startup

    • Adds visibility into which version is running in production
    • Helps with debugging and support issues
  • Snapshot submissions: Updated generic_worker.py to use dynamic version

    • Changed from static settings.node_version to dynamic __version__
    • Ensures snapshot submissions include accurate version information
    • Improves version tracking across the network

Technical Details

  • Poetry lock file regenerated with Poetry 2.1.3 (updated metadata format)
  • All dependencies properly tracked with group classifications
  • Version is now single-source-of-truth in pyproject.toml

Benefits

  1. Centralized version management: Single source of truth for version information
  2. Runtime version visibility: Easy to determine running version in containers
  3. Accurate network reporting: Snapshot submissions now include correct version
  4. Improved debugging: Version displayed at startup aids troubleshooting

Testing Checklist

  • Verify python -m snapshotter.version displays correct version
  • Confirm Docker containers show version during initialization
  • Validate snapshot submissions include correct version in nodeVersion field
  • Test that version updates in pyproject.toml propagate correctly

- Add snapshotter/version.py module for centralized version management
- Update project version from 0.1.0 to 2.11.0
- Display version during Docker container initialization
- Use dynamic version in snapshot submissions instead of static config
- Add toml dependency for pyproject.toml parsing
- Ensure single source of truth for version information

This improves observability, debugging capabilities, and ensures accurate
version reporting across the Snapshotter network.
@SwaroopH SwaroopH self-assigned this Aug 27, 2025
@SwaroopH SwaroopH added the enhancement New feature or request label Aug 27, 2025
Copy link
Contributor

@xadahiya xadahiya left a comment

Choose a reason for hiding this comment

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

LGTM!

- Update version string format to include a 'v' prefix for consistency.
- Adjust print statement to reflect the new version format without the extra 'v' in the output.
- Changed the runner from 'warp-ubuntu-latest-x64-4x' to 'ubuntu-latest' for better support.
- Added setup for Docker buildx as a workaround for a known issue.
- Updated the Docker build and push action to use 'docker/build-push-action@v6' for enhanced functionality.
- Introduced a pull request trigger for the Docker publish workflow on the main branch to enhance CI/CD processes.
Copy link
Member

@anomit anomit left a comment

Choose a reason for hiding this comment

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

My node version showed up on the dashboard on dockerify build!

@SwaroopH SwaroopH merged commit c067f50 into main Aug 28, 2025
1 check passed
@SwaroopH SwaroopH deleted the feat/version branch September 12, 2025 03:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants