Files
tendril/docs/issues/archive/resolved/2025-11-11--gitea-runner-setup-request--NEXT-STEPS.md
Gitea Actions 1423ee1f04 fix(workflows): resolve git revision error in KB lint workflow
- Fix HEAD~1...HEAD error for shallow clones by using github.event.before/after
- Add proper error suppression with 2>/dev/null
- Add fallback logic for edge cases (initial commits, force pushes)
- Archive resolved runner setup issue to docs/issues/archive/resolved/
- Add archive documentation and next steps guide

Fixes workflow execution on test/runner-validation branch.
Resolves issue with 'fatal: bad revision' error in logs.
2025-11-11 14:46:26 -07:00

3.0 KiB

Next Steps: Gitea Runner Setup Resolution

Date: 2025-11-11
Related Issue: 2025-11-11--gitea-runner-setup-request.md


Completed

  1. Fixed Git Revision Error

    • Updated .github/workflows/kb-lint.yml to use github.event.before and github.event.after instead of HEAD~1...HEAD
    • Added proper error suppression and fallback logic
    • Workflow now works with shallow clones
  2. Created Archive Structure

    • Created docs/issues/archive/resolved/ folder
    • Created docs/issues/archive/README.md documentation
    • Moved resolved issue to archive
  3. Documented Resolution

    • Added comprehensive resolution section to issue file
    • Documented all issues found and fixes applied

📋 Next Steps

1. Test File Cleanup (Optional)

Location: test/runner-validation branch
File: kb/01_projects/test/2025-11-11--runner-test--note.md

Status: The workflow correctly identified validation errors in this test file:

  • Missing required fields (author, source, project, topics, type, status, routing_hint, proposed_path, routing_confidence, related, summary)
  • Date mismatch (filename: 2025-11-11, frontmatter: 2025-01-14)

Action:

  • If the test file is no longer needed, it can be removed from the test/runner-validation branch
  • If it's needed for testing, it should be fixed to pass validation

Note: This is expected behavior - the workflow is correctly catching validation errors.


2. Verify Workflow Execution

Action: Test the workflow with a valid KB file change

Steps:

  1. Make a small change to an existing KB file (or create a new valid KB file)
  2. Commit and push the change
  3. Verify the workflow:
    • Triggers correctly (on kb/**/*.md path changes)
    • Executes without git revision errors
    • Validates files correctly
    • Provides clear error messages for invalid files
    • Passes for valid files

Expected Result: Workflow should run successfully without the fatal: bad revision error.


3. Workflow Status Badges (Future Enhancement)

Consideration: Add workflow status badges to README.md

Options:

  • Gitea Actions status badges (if supported)
  • Manual status indicators
  • Link to workflow runs page

Note: This can be done after verifying workflows work correctly.


🔍 Verification Checklist

Before considering this fully resolved:

  • Workflow runs without git revision errors
  • Workflow correctly validates KB files
  • Workflow provides clear error messages
  • Test file on test/runner-validation branch is handled (fixed or removed)
  • Next KB file change triggers workflow successfully

📝 Notes

  • The git revision fix is complete and ready for testing
  • The workflow correctly identifies validation errors (as seen in test file)
  • All workflow configuration is correct
  • Runners are now available and executing workflows

Status: Ready for Testing
Next Action: Test workflow with a valid KB file change