Skip to content

Comments

Fix/ci#16

Merged
manny-uncharted merged 6 commits intomainfrom
fix/ci
Oct 26, 2025
Merged

Fix/ci#16
manny-uncharted merged 6 commits intomainfrom
fix/ci

Conversation

@manny-uncharted
Copy link
Contributor

This pull request introduces several improvements and refactors across CI/CD configuration, example scripts, and development dependencies. The main highlights are the addition of Node.js support and test coverage reporting in CI, modernization and cleanup of the S3 migration example, and enhanced development tooling for Python testing and coverage.

CI/CD Workflow Enhancements:

  • Added Node.js setup and caching to the CI workflow, enabling tests for both Python and Node.js environments. Also added test coverage reporting and Codecov integration for the latest Python and Node.js versions. (.github/workflows/ci.yml) [1] [2]

Example Script Refactors:

  • Refactored examples/migrate.py to use configuration from a JSON file, list S3 files before migration, and provide more detailed migration status and error reporting. The script now prompts for confirmation before migrating and handles dry-run mode more clearly. (examples/migrate.py)
  • Improved code style and consistency in examples/diagnose_s3.py by switching to double quotes, formatting, and clearer error handling and configuration setup. (examples/diagnose_s3.py) [1] [2] [3] [4] [5] [6]

Development Tooling:

  • Added new development dependencies to pyproject.toml, including pytest-cov, pytest-asyncio, python-dotenv, and boto3 for improved testing and environment management. (pyproject.toml)
  • Introduced configuration for pytest and coverage in pyproject.toml to standardize test discovery, markers, and coverage reporting. (pyproject.toml)

manny-uncharted and others added 6 commits October 26, 2025 17:12
- Add Node.js version matrix alongside Python versions
- Integrate JavaScript dependency installation step
- Add installation verification using custom function
- Implement test coverage reporting with Codecov
- Update workflow to run on main and develop branches
- Improve caching for both Python and Node.js dependencies
- Add more detailed emoji-based step descriptions
- Configure conditional coverage upload for specific matrix combination
Improves CI/CD robustness and provides more comprehensive testing across different runtime environments.
- Improve code formatting and readability
- Add more detailed error handling and diagnostic information
- Enhance logging and output for connection tests
- Restructure test configurations for better flexibility
- Add more comprehensive error messages and troubleshooting hints
- Optimize connection testing logic with clearer separation of concerns
Provides a more robust and informative diagnostic tool for S3 connection testing, with improved error reporting and user guidance.
- Replace default npm caching with explicit actions/cache@v4
- Configure cache key using runner OS, Node version, and package-lock.json hash
- Add restore keys to improve cache hit rates
- Remove redundant cache configuration from setup-node step
- Enhance CI workflow dependency management performance
Improves build efficiency and reduces unnecessary dependency downloads in CI pipeline
…endencies

- Added package-lock.json for the S3 to Storacha JavaScript project
- Locked dependency versions for @aws-sdk/client-s3 and @storacha/client
- Ensures consistent dependency installation across development environments
- Specifies Node.js engine requirement of >=18.0.0
…3 library

- Add type ignore comments to resolve mypy type checking warnings
- Update error handling in RetryHandler to support more robust error scenarios
- Modify migrate script to display multiple errors instead of single error
- Enhance S3 diagnostic script to safely handle empty access key
- Improve subprocess error handling with more robust error code management
- Ensure consistent error reporting across different library components
refactor(examples): Enhance S3 connection diagnostics script
@manny-uncharted manny-uncharted merged commit 22606e5 into main Oct 26, 2025
6 checks passed
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