Skip to content

Review fixes for LangGraph agent lab README #197

Review fixes for LangGraph agent lab README

Review fixes for LangGraph agent lab README #197

Workflow file for this run

name: Run doc tests

Check failure on line 1 in .github/workflows/test-docs.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test-docs.yml

Invalid workflow file

(Line: 55, Col: 9): 'if' is already defined, (Line: 56, Col: 9): 'run' is already defined
on:
pull_request:
paths-ignore:
- '**/docs/**'
jobs:
setup:
runs-on: ubuntu-latest
outputs:
data-transforms: ${{ steps.filter.outputs.data-transforms }}
envoy-shadowing: ${{ steps.filter.outputs.envoy-shadowing }}
redpanda-migrator: ${{ steps.filter.outputs.redpanda-migrator }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Determine changed paths
id: filter
uses: dorny/paths-filter@v3
with:
filters: |
data-transforms:
- 'data-transforms/**'
envoy-shadowing:
- 'docker-compose/envoy-shadowing/**'
redpanda-migrator:
- 'docker-compose/redpanda-migrator-demo/**'
run-tests:
needs: setup
strategy:
fail-fast: false # Ensure all matrix jobs run to completion even if one fails
matrix:
os: [ubuntu-latest] # Only using Linux for now since macOS takes a long time
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install dependencies
run: npm install
- name: Increase AIO limit for Redpanda
if: needs.setup.outputs.envoy-shadowing == 'true'
run: |
# Redpanda uses Linux AIO. With 6 brokers each needing ~10000 events,
# we exceed the default limit of 65536. Increase it.
if: needs.setup.outputs.redpanda-migrator == 'true'
run: |
# Redpanda uses Linux AIO. Increase limit to support multiple brokers.
sudo sysctl -w fs.aio-max-nr=1048576
- name: Test data transforms
if: needs.setup.outputs.data-transforms == 'true'
run: |
# Run the tests for the data transforms
npm run test-transforms
- name: Test envoy shadowing
if: needs.setup.outputs.envoy-shadowing == 'true'
run: npm run test-envoy-shadowing
- name: Test redpanda migrator
if: needs.setup.outputs.redpanda-migrator == 'true'
run: npm run test-migrator
- name: Upload debug artifacts
if: failure()
uses: actions/upload-artifact@v4
with:
name: doc-detective-output
path: /home/runner/work/_temp/doc-detective-output.json