Skip to content

Link GitLab export logs docs in export failure error message - #1615

Open
pmartindev wants to merge 4 commits into
github:mainfrom
pmartindev:gitlab-export-error-doc-link
Open

pmartindev wants to merge 4 commits into
github:mainfrom
pmartindev:gitlab-export-error-doc-link

Conversation

@pmartindev

@pmartindev pmartindev commented Sep 21, 2026 •

Copy link
Copy Markdown

Summary

Per discussion on #1607, the team decided not to build a diagnostics/log-fetching command into GEI for GitLab export failures. Instead, this makes the existing generic error message actionable by pointing users at GitLab's own log documentation, so they can self-diagnose GitLab-side export failures or escalate to GitLab support.

Change

gl2gh migrate-repo's export failure now reads:

GitLab archive export failed! Check your GitLab export logs for more details: https://docs.gitlab.com/administration/logs/

Previously it only said:

GitLab archive export failed!

This follows the same lightweight pattern as #1614: a focused error-message improvement plus a release note, without adding a new diagnostics surface area to GEI.

  • Did you write/update appropriate tests -- N/A, string-only change
  • Release notes updated
  • Appropriate logging output
  • Issue linked -- supersedes Add GitLab export diagnostics command #1607
  • Docs updated (or issue created) -- N/A
  • New package licenses are added to ThirdPartyNotices.txt (if applicable) -- N/A

Validation

  • dotnet build src/OctoshiftCLI.sln /p:TreatWarningsAsErrors=true
  • dotnet test src/OctoshiftCLI.Tests/OctoshiftCLI.Tests.csproj --filter 'FullyQualifiedName~MigrateRepoCommandHandlerTests' (110 passed)
  • dotnet format src/OctoshiftCLI.sln (no changes needed)

Per team feedback (github#1607), rather than building a
diagnostics/log-fetching command into GEI, point users to GitLab's own
export/log documentation when an export fails so they can self-diagnose.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown

Unit Test Results

    1 files      1 suites   24s ⏱️
1 175 tests 1 175 ✅ 0 💤 0 ❌
1 176 runs  1 176 ✅ 0 💤 0 ❌

Results for commit eaf322b.

@github-actions

Copy link
Copy Markdown

Code Coverage

Package Line Rate Branch Rate Complexity Health
ado2gh 71% 70% 749 ➖
Octoshift 80% 70% 2044 ✔
gei 81% 74% 688 ✔
gl2gh 77% 70% 417 ✔
bbs2gh 83% 78% 668 ✔
Summary 79% (9023 / 11414) 72% (2316 / 3217) 4566 ✔

@pmartindev
pmartindev marked this pull request as ready for review September 24, 2026 17:10
Copilot AI balanced review requested due to automatic review settings September 24, 2026 17:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

The URL fragment is invalid, and the changed failure message lacks test coverage.

Get a fresh assessment by requesting another Copilot review.

Review effort: Balanced
Findings: 1 Medium severity · 1 Low severity

Open (2)
What changed in this PR

Makes GitLab export failures more actionable without adding diagnostics tooling.

Changes:

  • Adds GitLab log documentation guidance to the export failure message.
  • Adds a release note.
File Description
src/​gl2gh/​Commands/​MigrateRepo/​MigrateRepoCommandHandler.cs Adds documentation link to export failure.
RELEASENOTES.md Documents the improved error guidance.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

if (ExportState.IsError(exportState))
{
throw new OctoshiftCliException($"GitLab archive export failed!");
throw new OctoshiftCliException($"GitLab archive export failed! Check your GitLab export logs for more details: https://docs.gitlab.com/administration/logs/#exporterlog");
if (ExportState.IsError(exportState))
{
throw new OctoshiftCliException($"GitLab archive export failed!");
throw new OctoshiftCliException($"GitLab archive export failed! Check your GitLab export logs for more details: https://docs.gitlab.com/administration/logs/#exporterlog");

This branch has not been deployed

No deployments
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