Skip to content

Fix #25: Self-Hosted/Local support - #44

Merged
letieu merged 2 commits into
mainfrom
ohmypi/issue-25
Aug 31, 2026
Merged

letieu merged 2 commits into
mainfrom
ohmypi/issue-25

Conversation

@ohmypi-bot

@ohmypi-bot ohmypi-bot Bot commented Aug 31, 2026

Copy link
Copy Markdown

Automated PR created by Oh My Pi in response to @letieu.

Closes #25

@ohmypi-bot
ohmypi-bot Bot requested a review from letieu as a code owner August 31, 2026 17:37
@letieu

letieu commented Aug 31, 2026

Copy link
Copy Markdown
Owner

@ohmypi this PR have some check failed , please check again make sure all test pass before merge

@ohmypi-bot

ohmypi-bot Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Author

❌ Oh My Pi Bot Error:

Command failed: git worktree add -B "ohmypi/issue-25" "/app/data/worktrees/letieu__jira.nvim__pull_request_44/jira.nvim" "origin/ohmypi/issue-25"
fatal: 'ohmypi/issue-25' is already checked out at '/app/data/worktrees/letieu__jira.nvim__issue_25/jira.nvim'

@letieu

letieu commented Aug 31, 2026

Copy link
Copy Markdown
Owner

@ohmypi this PR have some check failed , please check again make sure all test pass before merge

@ohmypi-bot

ohmypi-bot Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Author

The test failures and checks have been resolved.

Root Cause

  1. Missing Data Directory in Clean Environments: In clean CI environments (and fresh Neovim setups), vim.fn.stdpath("data") (~/.local/share/nvim) does not exist until created. When auth.save() attempted io.open(AUTH_FILE, "w"), it failed because the parent directory was missing, causing auth.load() to return nil and failing test_auth.lua.
  2. StyLua Formatting: Applied formatting to match the project's stylua.toml configuration.

Changes Made

  • Updated lua/jira/common/auth.lua to ensure parent directory vim.fn.fnamemodify(AUTH_FILE, ":h") is created before saving credentials.
  • Added comprehensive unit test cases in tests/test_auth.lua for basic auth credential storage, retrieval, and empty/unauthenticated info display.
  • Ran stylua to ensure all formatting checks pass.

Verification

  • Ran local test suite (make lint and make test) across clean environment configurations.
  • CI Workflow Run (#33421919944) completed successfully across all checks:
    • lint ✅
    • tests (v0.10.1) ✅
    • tests (v0.11.5) ✅
    • tests-nightly ✅

🔄 Updated Pull Request: letieu/jira.nvim PR

🛠️ Activity Log (70 tool executions)
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool
  • ✅ Executing tool

🔗 🌐 Live Session • omp --resume "2026-08-31T17-49-43-203Z_01a058f0-fba3-74d0-812b-a8d34fcbf3f4" • ⚡ 177.9 tok/s • 📊 71,148 tokens

@letieu
letieu merged commit a72783d into main Aug 31, 2026
4 checks passed
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.

Self-Hosted/Local support

2 participants