Skip to content

Commit 9d15529

Browse files
committed
trying this again
1 parent 3cbc59b commit 9d15529

File tree

1 file changed

+36
-11
lines changed

1 file changed

+36
-11
lines changed

β€Ž.github/workflows/integration-tests.ymlβ€Ž

Lines changed: 36 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@ permissions:
1414
packages: write
1515

1616
jobs:
17-
build-images:
18-
name: "Build AgentEx Images"
19-
uses: ./.github/workflows/build-agentex.yml
20-
with:
21-
commit-sha: ${{ inputs.commit-sha || 'main' }}
22-
2317
pull-agent-images:
2418
name: "Pull AgentEx Images"
2519
runs-on: ubuntu-latest
@@ -31,17 +25,48 @@ jobs:
3125
username: ${{ github.repository_owner }}
3226
password: ${{ secrets.GITHUB_TOKEN }}
3327

34-
- name: Discover and pull agentex-python packages
28+
- name: Debug API Permissions
29+
env:
30+
GH_TOKEN: ${{ github.token }}
31+
run: |
32+
echo "πŸ” Testing API permissions..."
33+
34+
# Test basic user access
35+
echo "πŸ‘€ Current user:"
36+
gh api user --jq '.login' || echo "❌ User API failed"
37+
38+
# Test organization access
39+
echo "🏒 Organization access:"
40+
gh api orgs/scaleapi --jq '.login' || echo "❌ Org API failed"
41+
42+
# Test different package API endpoints
43+
echo "πŸ“¦ Testing package API endpoints:"
44+
45+
echo "1. Basic packages endpoint:"
46+
gh api "orgs/scaleapi/packages" --jq 'length' || echo "❌ Basic packages API failed"
47+
48+
echo "2. Container packages endpoint:"
49+
gh api "orgs/scaleapi/packages?package_type=container" --jq 'length' || echo "❌ Container packages API failed"
50+
51+
echo "3. Public packages endpoint:"
52+
gh api "orgs/scaleapi/packages?package_type=container&visibility=public" --jq 'length' || echo "❌ Public packages API failed"
53+
54+
- name: Discover and pull scale-agentex-python packages
3555
env:
3656
GH_TOKEN: ${{ github.token }}
3757
run: |
38-
echo "πŸ” Discovering packages from agentex-python repo..."
58+
echo "πŸ” Discovering packages from scale-agentex-python repo..."
59+
60+
# First get all packages and save to temp file to avoid shell issues
61+
gh api "orgs/scaleapi/packages?package_type=container" > /tmp/packages.json
3962
40-
# Get package names using the API query
41-
PACKAGES=$(gh api "orgs/scaleapi/packages?package_type=container" --jq '.[] | select(.repository.name == "agentex-python") | .name')
63+
# Extract packages from scale-agentex-python repo
64+
PACKAGES=$(cat /tmp/packages.json | jq -r '.[] | select(.repository.name == "scale-agentex-python") | .name')
4265
4366
if [ -z "$PACKAGES" ]; then
44-
echo "❌ No packages found in agentex-python repo"
67+
echo "❌ No packages found in scale-agentex-python repo"
68+
echo "πŸ” Available packages and their repos:"
69+
cat /tmp/packages.json | jq -r '.[] | "\(.name) -> \(.repository.name // "null")"'
4570
exit 0
4671
fi
4772

0 commit comments

Comments
Β (0)