Skip to content

Conversation

dannywillems
Copy link
Member

No description provided.

@dannywillems dannywillems force-pushed the dw/node-management-doc-in-ci branch 4 times, most recently from 936cfcf to fabab65 Compare October 6, 2025 17:31
@dannywillems dannywillems moved this to Done in Rust node Oct 6, 2025
@dannywillems dannywillems requested a review from yamimaio October 6, 2025 17:40
@dannywillems dannywillems force-pushed the dw/node-management-doc-in-ci branch from d3f2f70 to e627c47 Compare October 7, 2025 15:25
@dannywillems dannywillems self-assigned this Oct 7, 2025
@dannywillems dannywillems force-pushed the dw/node-management-doc-in-ci branch 2 times, most recently from 6b41778 to ec095cc Compare October 7, 2025 16:18
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04, ubuntu-24.04]
Copy link
Collaborator

Choose a reason for hiding this comment

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

only ubuntu?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, I'm struggling adding macOS for the scripts using docker.

Extracted all build-info command examples from the node-management
documentation into separate shell scripts that can be tested in CI,
following the same pattern used in the developer documentation.

Changes:
- Created website/docs/node-operators/scripts/ directory
- Added build-info-docker.sh for basic Docker usage
- Added build-info-docker-version.sh for specific version
- Added build-info-native.sh for native binary
- Added build-info-native-path.sh for full path usage
- Added verify-build-info-docker.sh for Docker verification
- Added verify-build-info-native.sh for native verification
- Converted node-management.md to .mdx
- Updated documentation to use CodeBlock imports with raw-loader
Created a new CI workflow to test the node-operators documentation
scripts, ensuring the build-info command examples work correctly
across different platforms.

The workflow tests:
- build-info-docker.sh - Basic Docker build-info command
- build-info-docker-version.sh - Version-specific build-info
- verify-build-info-docker.sh - Build-info verification with grep

Tested on: ubuntu-22.04, ubuntu-24.04, macos-latest

Changes:
- Added .github/workflows/test-docs-scripts-node-operators.yaml
Move build-info example output and management script examples into
separate files that are imported by the documentation. Add CI
verification to ensure scripts work correctly and output matches
documented examples.

Changes:
- Move build-info example output to build-info-example.txt
- Create check-build-info-format.sh to verify output format
- Combine backup scripts into backup-configuration.sh
- Create manage-file-permissions.sh (combined from 3 separate scripts)
- Create check-system-resources.sh
- Create .env file creation scripts (empty, custom, archive variants)
- Add test-management-scripts job to CI workflow
- Add gh act run command comment to workflow
- Update documentation to use CodeBlock imports for all scripts

All scripts are tested in CI on ubuntu-22.04, ubuntu-24.04, and
macos-latest to ensure they execute correctly.
The VZ (Virtualization.framework) driver was failing to start on
GitHub Actions macOS runners with disk mounting errors. Switch to
the QEMU driver which is more reliable in CI environments, with
explicit resource limits to ensure consistent behavior.
@dannywillems dannywillems force-pushed the dw/node-management-doc-in-ci branch from ec095cc to 450fd7d Compare October 8, 2025 12:05
@dannywillems dannywillems moved this from Done to In Progress in Rust node Oct 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

2 participants