Skip to content

✨/🐛 Add xircuits Run CLI Command + Fix Recursive Compile - #378

Merged
MFA-X-AI merged 6 commits into
masterfrom
fahreza/xircuits-run
Feb 21, 2025
Merged

MFA-X-AI merged 6 commits into
masterfrom
fahreza/xircuits-run

Conversation

@MFA-X-AI

Copy link
Copy Markdown
Member

Description

This PR introduces several improvements to Xircuits workflow execution and compilation:

  1. Added a new xircuits run CLI command for direct workflow execution. You can pass xircuits run workflow.xircuits or workflow.py. If the former, it will compile it first.
  2. Enhanced FileBrowser integration with new "Run Xircuits" context menu option
  3. Made "Copy to Root" option only visible for non-root workflows
  4. Fix recursive compilation to better handle working directories (previously it it was run from a non-base working dir, it wouldn't work as expected)
  5. Modified working directory detection to use xai_components as the main reference
  6. Updated terminal execution to use the new xircuits run command

These changes make workflow execution more streamlined and intuitive while fixing some path-related issues in compilation.

References

N/A

Pull Request Type

  • Xircuits Core (Jupyterlab Related changes)
  • Xircuits Canvas (Custom RD Related changes)
  • Xircuits Component Library
  • Xircuits Project Template
  • Testing Automation
  • Documentation
  • Others

Type of Change

  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change
  • This change requires a documentation update

Tests

1. Test CLI Command

  1. Run xircuits run workflow.xircuits
  2. Verify compilation and execution succeed
  3. Check output matches expected results

2. Test FileBrowser Integration

  1. Right-click a .xircuits file in FileBrowser
  2. Verify "Run Xircuits" option appears
  3. Click and confirm workflow executes

3. Test Copy to Root Functionality

  1. Navigate to subdirectory with .xircuits file
  2. Verify "Copy to Root" option appears
  3. Navigate to root directory
  4. Verify "Copy to Root" option is hidden

Tested on?

  • Windows
  • Linux Ubuntu
  • Centos
  • Mac
  • Others

Notes

@github-actions

Copy link
Copy Markdown

Binder 👈 Launch a binder notebook on branch XpressAI/xircuits/fahreza/xircuits-run

@MFA-X-AI
MFA-X-AI merged commit 2277f2e into master Feb 21, 2025
@MFA-X-AI
MFA-X-AI deleted the fahreza/xircuits-run branch February 21, 2025 02:21
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