Skip to content

fix: resolve GitHub Actions CI failures across platforms - #332

Merged
AlexMikhalev merged 1 commit into
mainfrom
fix/ci-actions-failures
Nov 20, 2025
Merged

AlexMikhalev merged 1 commit into
mainfrom
fix/ci-actions-failures

Conversation

@AlexMikhalev

Copy link
Copy Markdown
Contributor

Summary

Fixes multiple GitHub Actions CI failures across all platforms:

🐛 Issues Fixed

  1. Ruff Import Sorting Errors

    • Fixed unsorted imports in 5 Python files
    • Removed extra blank lines after imports
  2. Windows Virtual Environment Setup

    • Added Windows-specific activation path (.venv/Scripts/activate)
    • Added cross-platform shell compatibility
  3. macOS Cross-compilation Errors

    • Added --target native to maturin builds
    • Prevents unintended cross-compilation to Linux targets
  4. Conda Environment Conflicts

    • Unset CONDA_PREFIX before creating virtual environments
    • Avoids uv/maturin conflicts with conda

🔧 Technical Changes

  • python-bindings.yml: Updated all virtual environment steps with platform detection
  • Python files: Fixed import sorting with ruff check --fix
  • Build commands: Added --target native to prevent cross-compilation
  • Shell compatibility: Added shell: bash for consistent behavior

🎯 Impact

These changes should resolve all current CI failures:

  • ✅ Lint Python Code (Ruff/Black formatting)
  • ✅ Build Python package on all platforms
  • ✅ Run tests successfully
  • ✅ Benchmark execution

🧪 Testing

The fixes address root causes identified in recent CI runs:

  • Windows: Virtual environment activation failures
  • macOS: Cross-compilation to wrong target
  • Linux: Import formatting violations
  • All: Conda environment conflicts

Fixes issues in: #328, #289

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

else
source .venv/bin/activate
fi
maturin develop --target native

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Remove invalid maturin target override

maturin develop --target native passes an invalid Rust target triple; cargo does not recognize a target named native, so this step will fail on every runner before building the bindings (the default host target is already used when --target is omitted). The same flag is used again in the release build later in the workflow, so both steps will break CI until the target override is removed or replaced with a real triple.

Useful? React with 👍 / 👎.

@AlexMikhalev
AlexMikhalev merged commit b62e160 into main Nov 20, 2025
6 of 27 checks passed
@AlexMikhalev
AlexMikhalev deleted the fix/ci-actions-failures branch November 20, 2025 15:27
AlexMikhalev added a commit that referenced this pull request Apr 5, 2026
…332

- Add set_quickwit_sink() and quickwit_config() public methods to AgentOrchestrator
- Log agent spawn (INFO) in spawn_agent() via sink.send()
- Log agent exit (INFO/WARN by exit code) in poll_agent_exits() with wall_time_secs
- Log stdout/stderr lines in drain_output_events() via sink.try_send() (sync ctx)
- Init QuickwitSink from orchestrator config in bin/adf.rs startup

Co-Authored-By: Terraphim AI <noreply@terraphim.ai>
AlexMikhalev added a commit that referenced this pull request Apr 5, 2026
AlexMikhalev added a commit that referenced this pull request Apr 5, 2026
…332

- Add set_quickwit_sink() and quickwit_config() public methods to AgentOrchestrator
- Log agent spawn (INFO) in spawn_agent() via sink.send()
- Log agent exit (INFO/WARN by exit code) in poll_agent_exits() with wall_time_secs
- Log stdout/stderr lines in drain_output_events() via sink.try_send() (sync ctx)
- Init QuickwitSink from orchestrator config in bin/adf.rs startup

Co-Authored-By: Terraphim AI <noreply@terraphim.ai>
AlexMikhalev added a commit that referenced this pull request Apr 5, 2026
AlexMikhalev added a commit that referenced this pull request Apr 25, 2026
…332

- Add set_quickwit_sink() and quickwit_config() public methods to AgentOrchestrator
- Log agent spawn (INFO) in spawn_agent() via sink.send()
- Log agent exit (INFO/WARN by exit code) in poll_agent_exits() with wall_time_secs
- Log stdout/stderr lines in drain_output_events() via sink.try_send() (sync ctx)
- Init QuickwitSink from orchestrator config in bin/adf.rs startup

Co-Authored-By: Terraphim AI <noreply@terraphim.ai>
AlexMikhalev added a commit that referenced this pull request Apr 25, 2026
AlexMikhalev added a commit that referenced this pull request May 1, 2026
…332

- Add set_quickwit_sink() and quickwit_config() public methods to AgentOrchestrator
- Log agent spawn (INFO) in spawn_agent() via sink.send()
- Log agent exit (INFO/WARN by exit code) in poll_agent_exits() with wall_time_secs
- Log stdout/stderr lines in drain_output_events() via sink.try_send() (sync ctx)
- Init QuickwitSink from orchestrator config in bin/adf.rs startup

Co-Authored-By: Terraphim AI <noreply@terraphim.ai>
AlexMikhalev added a commit that referenced this pull request May 1, 2026
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.

1 participant