Configure Gitea Actions Runners for KB Workflow Testing #1

Closed
opened 2025-11-11 12:02:11 -07:00 by datawarrior · 3 comments
Owner

Gitea Actions Runner Configuration Request

Status: COMPLETED

The Gitea Actions runners for the Tendril repository have been successfully configured and are now operational.

What Was Done

Runner Installation & Configuration

  • Installed second act_runner instance on Kratos host
  • Configured runner for Mycelium/tendril repository
  • Set up ubuntu-latest label with node:20-bookworm Docker image
  • Created independent systemd service (act_runner-tendril.service)
  • Registered runner with Gitea and verified online status
  • Comprehensive runbook documentation created and merged

Documentation

  • Created detailed runbook: mycelium/docs/operations/act_runner_tendril.md
  • Documentation covers installation, configuration, troubleshooting, and maintenance
  • Runbook available in tendril_runner branch (PR pending)

Runner Capabilities

The new runner is now ready to execute:

  1. KB Lint Workflow (.github/workflows/kb-lint.yml)

    • Validates KB file naming conventions
    • Checks frontmatter requirements
    • Validates KB file structure
  2. KB Index Update Workflow (.github/workflows/kb-index-update.yml)

    • Auto-generates KB index on push to main
    • Updates kb/_index.md with KB file metadata
    • Commits index changes back to repository

Next Steps: Testing the Workflows

For @datawarrior

Please test the workflows by following these steps:

  1. Create a test branch in your local environment:

    git checkout -b test/validate-kb-workflows
    
  2. Create a test KB file with valid structure:

    mkdir -p kb/01_projects/tendril
    cat > kb/01_projects/tendril/2025-01-14--workflow-validation--note.md << 'EOF'
    ---
    title: "Workflow Validation Test"
    date: 2025-01-14
    tags: ["test", "ci", "workflows"]
    ---
    
    # Workflow Validation
    
    This test file validates that both KB lint and index update workflows are functioning correctly.
    
    - Lint workflow checks this file's naming and frontmatter
    - Index update workflow regenerates the KB index
    EOF
    
  3. Commit and push to your test branch:

    git add kb/01_projects/tendril/2025-01-14--workflow-validation--note.md
    git commit -m "test: validate kb-lint workflow execution"
    git push origin test/validate-kb-workflows
    
  4. Monitor workflow execution:

    • Navigate to: https://git.parkingmeter.info/Mycelium/tendril/actions
    • Look for the KB Lint Workflow triggered by your push
    • Watch the workflow status change from "waiting" → "running" → "completed"
    • Verify the workflow execution shows passed (should complete in <1 minute)
  5. Test the index update workflow:

    • Push the same test file to the main branch (or merge via PR)
    • Navigate to the Actions tab again
    • Look for the KB Index Update Workflow
    • Verify it runs successfully and kb/_index.md is updated
  6. Clean up test files:

    # Delete test branch
    git push origin --delete test/validate-kb-workflows
    git branch -d test/validate-kb-workflows
    
    # Remove test KB file from main if merged
    git checkout main
    git rm kb/01_projects/tendril/2025-01-14--workflow-validation--note.md
    git commit -m "cleanup: remove workflow validation test file"
    git push origin main
    

Documentation Reference

For detailed information on the runner configuration, troubleshooting, and maintenance, refer to:

📄 Runbook: mycelium/docs/operations/act_runner_tendril.md

Key sections in the runbook:

  • Section 6.0: Testing the Runner with Sample Workflows
  • Section 7.0: Troubleshooting common issues
  • Section 8.0: Monitoring and Maintenance procedures

The runbook includes:

  • Architecture overview and configuration details
  • Step-by-step setup instructions (for reference)
  • Comprehensive troubleshooting guide
  • Daily, weekly, and monthly maintenance procedures
  • Integration information with the existing Eigen OS runner

Current Runner Status

Aspect Status
Service Name act_runner-tendril
Host Kratos
Repository Mycelium/tendril
Label ubuntu-latest
Docker Image node:20-bookworm
Gitea Status Online and ready
Capacity 2 concurrent jobs

Questions or Issues?

If you encounter any problems during testing:

  1. Check the Troubleshooting section in the runbook (Section 7.0)
  2. Review workflow execution logs in the Gitea Actions UI
  3. Refer to journalctl -u act_runner-tendril -f for runner logs

Implementation Date: 2025-01-14
Runner Installation: Complete
Documentation: Complete and Merged
Testing Status: Awaiting workflow validation

# Gitea Actions Runner Configuration Request ## Status: ✅ COMPLETED The Gitea Actions runners for the Tendril repository have been successfully configured and are now operational. ## What Was Done ### Runner Installation & Configuration - ✅ Installed second `act_runner` instance on Kratos host - ✅ Configured runner for `Mycelium/tendril` repository - ✅ Set up `ubuntu-latest` label with `node:20-bookworm` Docker image - ✅ Created independent systemd service (`act_runner-tendril.service`) - ✅ Registered runner with Gitea and verified online status - ✅ Comprehensive runbook documentation created and merged ### Documentation - ✅ Created detailed runbook: `mycelium/docs/operations/act_runner_tendril.md` - ✅ Documentation covers installation, configuration, troubleshooting, and maintenance - ✅ Runbook available in `tendril_runner` branch (PR pending) ### Runner Capabilities The new runner is now ready to execute: 1. **KB Lint Workflow** (`.github/workflows/kb-lint.yml`) - Validates KB file naming conventions - Checks frontmatter requirements - Validates KB file structure 2. **KB Index Update Workflow** (`.github/workflows/kb-index-update.yml`) - Auto-generates KB index on push to main - Updates `kb/_index.md` with KB file metadata - Commits index changes back to repository ## Next Steps: Testing the Workflows ### For @datawarrior Please test the workflows by following these steps: 1. **Create a test branch in your local environment:** ```bash git checkout -b test/validate-kb-workflows ``` 2. **Create a test KB file with valid structure:** ```bash mkdir -p kb/01_projects/tendril cat > kb/01_projects/tendril/2025-01-14--workflow-validation--note.md << 'EOF' --- title: "Workflow Validation Test" date: 2025-01-14 tags: ["test", "ci", "workflows"] --- # Workflow Validation This test file validates that both KB lint and index update workflows are functioning correctly. - Lint workflow checks this file's naming and frontmatter - Index update workflow regenerates the KB index EOF ``` 3. **Commit and push to your test branch:** ```bash git add kb/01_projects/tendril/2025-01-14--workflow-validation--note.md git commit -m "test: validate kb-lint workflow execution" git push origin test/validate-kb-workflows ``` 4. **Monitor workflow execution:** - Navigate to: `https://git.parkingmeter.info/Mycelium/tendril/actions` - Look for the **KB Lint Workflow** triggered by your push - Watch the workflow status change from "waiting" → "running" → "completed" - Verify the workflow execution shows ✅ passed (should complete in <1 minute) 5. **Test the index update workflow:** - Push the same test file to the `main` branch (or merge via PR) - Navigate to the Actions tab again - Look for the **KB Index Update Workflow** - Verify it runs successfully and `kb/_index.md` is updated 6. **Clean up test files:** ```bash # Delete test branch git push origin --delete test/validate-kb-workflows git branch -d test/validate-kb-workflows # Remove test KB file from main if merged git checkout main git rm kb/01_projects/tendril/2025-01-14--workflow-validation--note.md git commit -m "cleanup: remove workflow validation test file" git push origin main ``` ## Documentation Reference For detailed information on the runner configuration, troubleshooting, and maintenance, refer to: 📄 **Runbook:** `mycelium/docs/operations/act_runner_tendril.md` Key sections in the runbook: - **Section 6.0:** Testing the Runner with Sample Workflows - **Section 7.0:** Troubleshooting common issues - **Section 8.0:** Monitoring and Maintenance procedures The runbook includes: - Architecture overview and configuration details - Step-by-step setup instructions (for reference) - Comprehensive troubleshooting guide - Daily, weekly, and monthly maintenance procedures - Integration information with the existing Eigen OS runner ## Current Runner Status | Aspect | Status | |--------|--------| | **Service Name** | `act_runner-tendril` | | **Host** | Kratos | | **Repository** | Mycelium/tendril | | **Label** | `ubuntu-latest` | | **Docker Image** | `node:20-bookworm` | | **Gitea Status** | ✅ Online and ready | | **Capacity** | 2 concurrent jobs | ## Questions or Issues? If you encounter any problems during testing: 1. Check the **Troubleshooting** section in the runbook (Section 7.0) 2. Review workflow execution logs in the Gitea Actions UI 3. Refer to `journalctl -u act_runner-tendril -f` for runner logs --- **Implementation Date:** 2025-01-14 **Runner Installation:** Complete **Documentation:** Complete and Merged **Testing Status:** Awaiting workflow validation
parkingmeter was assigned by datawarrior 2025-11-11 12:02:32 -07:00
datawarrior added the help wantedquestion labels 2025-11-11 12:02:41 -07:00
Owner

Sorry I blew away you issue description, thankfully I see it's in the KB of your branch Gitea Actions Runner Configuration Request

Sorry I blew away you issue description, thankfully I see it's in the KB of your branch [Gitea Actions Runner Configuration Request](https://git.parkingmeter.info/Mycelium/tendril/src/branch/docs/contributing-guide-and-workflow/docs/issues/2025-11-11--gitea-runner-setup-request.md)
Author
Owner

No worries, that is why I have excessive documentation!

No worries, that is why I have excessive documentation!
Author
Owner

Success! Next will be validating some of the automated workflows! There are nice for saving time on documentation so that LLM's can have better guards-rails!

image.png
Success! Next will be validating some of the automated workflows! There are nice for saving time on documentation so that LLM's can have better guards-rails! <img width="1441" alt="image.png" src="attachments/a63b289f-4ae8-4b7d-a1b9-66cbada5d4ba">
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mycelium/tendril#1