Skip to content

fix: docs deployment#2528

Merged
tac0turtle merged 3 commits intomainfrom
marko/fix_docs_deployment
Aug 6, 2025
Merged

fix: docs deployment#2528
tac0turtle merged 3 commits intomainfrom
marko/fix_docs_deployment

Conversation

@tac0turtle
Copy link
Contributor

Overview

@gemini-code-assist
Copy link
Contributor

Note

Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 6, 2025

The latest Buf updates on your PR. Results from workflow CI and Release / buf-check (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed⏩ skipped✅ passed✅ passedAug 6, 2025, 9:38 AM

@claude
Copy link
Contributor

claude bot commented Aug 6, 2025

Claude finished @tac0turtle's task —— View job


PR Review: Fix Docs Deployment

Reviewing the documentation deployment fixes. The changes focus on improving the workflow configuration and path handling for the documentation build and deployment system.

Todo List:

  • Read and analyze all changed files
  • Review workflow file modifications
  • Check documentation file changes
  • Provide comprehensive feedback on code quality, bugs, performance, security, and test coverage

Analysis Summary

This PR addresses issues with the documentation deployment workflows by:

  1. Renaming workflow files for better clarity and consistency
  2. Fixing path patterns from "./docs" to "docs/**" for proper GitHub Actions pattern matching
  3. Adding missing working-directory specifications to ensure commands run in the correct context
  4. Correcting publish directory paths to account for the repository structure
  5. Adding cache configuration for improved build performance

Detailed Review

Code Quality & Best Practices

Strengths:

  • Consistent naming: Workflow files now follow a clear docs_*.yml pattern
  • Proper working directory usage: All yarn commands now specify working-directory: docs
  • Improved caching: Added cache-dependency-path: docs/yarn.lock for better cache hits
  • Correct path patterns: Changed from "./docs" to "docs/**" which is the proper GitHub Actions glob pattern

Suggestions:

  • Consider adding workflow validation steps to catch similar path issues in the future

Bug Fixes

Critical fixes identified:

  • Path pattern fix (.github/workflows/docs_*.yml:11,13): "./docs""docs/**"
    • The old pattern "./docs" would not properly match file changes in subdirectories
    • The new pattern "docs/**" correctly matches all files under the docs directory
  • Publish directory fix (.github/workflows/docs_deploy.yml:53): "./.vitepress/dist""./docs/.vitepress/dist"
    • This was a critical bug that would cause deployment failures
  • Source directory fix (.github/workflows/docs_preview.yml:44): ".vitepress/dist""docs/.vitepress/dist"
    • Similar issue for preview deployments

Performance Considerations

Improvements made:

  • Enhanced caching: Added cache-dependency-path: docs/yarn.lock improves cache hit rates
  • Working directory optimization: Commands now run directly in the docs directory, avoiding unnecessary path traversal

Security Assessment

Security posture:

  • Permissions: Using write-all permissions - this is standard for GitHub Pages deployment but should be monitored
  • Token usage: Properly using secrets.GITHUB_TOKEN and secrets.PREVIEW_DEPLOY
  • Dependabot exclusion: Correctly excludes dependabot PRs from preview deployments
  • No security concerns introduced by these changes

Documentation Changes

Minor improvements:

  • Fixed badge URL in docs/README.md:1 to point to correct repository
  • Changed code block language from empty to txt in docs/CLAUDE.md:26 for better syntax highlighting

Test Coverage

Current status:

Recommendations:

  • Consider adding workflow tests to validate path patterns and directory structures
  • The preview deployment success confirms the fixes are working correctly

Overall Assessment

This is a well-executed bug fix that addresses real deployment issues. The changes are minimal, focused, and directly address the root causes of documentation deployment failures. The PR successfully:

  1. Fixes critical path and directory issues that were preventing proper builds
  2. Improves caching performance
  3. Maintains security best practices
  4. Provides working preview functionality

Recommendation: ✅ APPROVE - These are essential fixes for the documentation deployment system.

@codecov
Copy link

codecov bot commented Aug 6, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.66%. Comparing base (70c6813) to head (909dc54).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2528      +/-   ##
==========================================
- Coverage   73.72%   73.66%   -0.06%     
==========================================
  Files          72       72              
  Lines        6713     6713              
==========================================
- Hits         4949     4945       -4     
- Misses       1364     1367       +3     
- Partials      400      401       +1     
Flag Coverage Δ
combined 73.66% <ø> (-0.06%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 6, 2025

PR Preview Action v1.6.2
Preview removed because the pull request was closed.
2025-08-06 10:12 UTC

@tac0turtle tac0turtle marked this pull request as ready for review August 6, 2025 09:51
@tac0turtle tac0turtle enabled auto-merge August 6, 2025 09:51
@tac0turtle tac0turtle added this pull request to the merge queue Aug 6, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 6, 2025
@tac0turtle tac0turtle added this pull request to the merge queue Aug 6, 2025
Merged via the queue into main with commit c5242a1 Aug 6, 2025
31 of 34 checks passed
@tac0turtle tac0turtle deleted the marko/fix_docs_deployment branch August 6, 2025 10:11
@github-project-automation github-project-automation bot moved this to Done in Evolve Aug 6, 2025
alpe added a commit that referenced this pull request Aug 7, 2025
* main:
  fix: docs deployment (#2528)
  chore: merge docs repo into this repo (#2526)
  optimize: implement head index for BatchQueue.Next() to avoid O(n) slice re-slicing (#2519)
  build(deps): Bump github.com/rs/zerolog from 1.33.0 to 1.34.0 (#2525)
  chore: migrate from ipfs/go-log to zerolog across codebase (#2516)
  fix: proto inclusion (#2515)
  build(deps): Bump github.com/docker/docker from 28.2.2+incompatible to 28.3.3+incompatible in /test/docker-e2e in the go_modules group across 1 directory (#2503)
  refactor: replace Split in loops with more efficient SplitSeq (#2502)
  feat: expose ev-node P2P and RPC ports in docker compose (#2513)
  feat: create grpc execution environemnt (#2490)
@tac0turtle tac0turtle removed this from Evolve Aug 25, 2025
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.

2 participants