Skip to content

[Fix] Bump daqp pin to 0.8.5 to fix Pink IK solver no-op on main CI - #5902

Merged
hujc7 merged 1 commit into
isaac-sim:mainfrom
hujc7:jichuanh/fix-daqp-pin-main
Jun 2, 2026
Merged

hujc7 merged 1 commit into
isaac-sim:mainfrom
hujc7:jichuanh/fix-daqp-pin-main

Conversation

@hujc7

@hujc7 hujc7 commented Jun 1, 2026

Copy link
Copy Markdown
Collaborator

1. Summary

  • Fixes the test/controllers/test_pink_ik.py failures on main CI (24 failing parametrizations, ~3 weeks running, identical fixed ~26 mm end-effector offset).
  • Root cause: qpsolvers 4.12.0 (2026-05-05) enabled DAQP warm starts and now passes a primal_start argument into daqp.solve(). The pinned daqp==0.7.2 does not accept it and raises TypeError: solve() got an unexpected keyword argument 'primal_start' on every solve. PinkIKController catches the exception and returns the joints unchanged, so Pink IK becomes a no-op and the end effectors stay at the reset pose — a fixed offset, not a kinematic error.
  • Fix: bump the pin to daqp==0.8.5 (the release that exposes primal_start), aligning main with develop.

2. Why it surfaced now

  • qpsolvers is unpinned on main (transitive via pin-pink==3.1.0, which requires qpsolvers>=4.3.1), so it floats to the latest release.
  • The last passing CI resolved qpsolvers==4.11.0; the first failing CI resolved the just-released qpsolvers==4.12.0. No main source changed between them — only the resolved dependency.
  • daqp was pinned 0.7.2 in both the passing and failing runs, so the trigger is the qpsolvers bump interacting with the too-old daqp.

3. Verification

Reproduced and fixed locally in the CI-equivalent container, isolating the single variable:

qpsolvers daqp primal_start test_pink_ik (GR1T2)
4.11.0 0.7.2 n/a PASS (error ~1e-6 m)
4.12.0 0.7.2 absent FAIL — Left hand IK position error (0.026841)
4.12.0 0.8.5 present PASS — all variants, error collapses to <1e-3 m
  • The failing CI log contains solve() got an unexpected keyword argument 'primal_start' (the swallowed TypeError); the passing CI log does not.
  • The install smoke check already asserts 'primal_start' in inspect.signature(daqp.solve).parameters, consistent with this being the required daqp API.

4. Scope

  • One-line dependency pin change in source/isaaclab/setup.py plus the extension version bump and changelog entry (main convention).
  • The broad except in PinkIKController that silently swallowed the solver error is the reason this was masked; surfacing it loudly is a larger controller change already present on develop and is intentionally out of scope for this minimal CI hotfix.

5. Test plan

  • Local repro: qpsolvers==4.12.0 + daqp==0.7.2 fails with the exact 26 mm offset.
  • Local fix: qpsolvers==4.12.0 + daqp==0.8.5 passes all GR1T2 test_pink_ik.py variants.
  • ./isaaclab.sh -f clean.

qpsolvers 4.12.0 enabled DAQP warm starts, passing a primal_start
argument into daqp.solve(). The pinned daqp==0.7.2 does not accept
primal_start and raises TypeError on every solve. PinkIKController
swallows the exception and returns the joints unchanged, so the IK
becomes a no-op and the end effectors stay at the reset pose -- a
fixed ~26 mm error that broke test/controllers/test_pink_ik.py in CI.

Bump the pin to daqp==0.8.5, the release that exposes primal_start,
matching develop. Reproduced locally: qpsolvers 4.12.0 + daqp 0.7.2
fails with the exact CI offset; qpsolvers 4.12.0 + daqp 0.8.5 passes.
@github-actions github-actions Bot added bug Something isn't working isaac-lab Related to Isaac Lab team labels Jun 1, 2026

@isaaclab-review-bot isaaclab-review-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔍 Isaac Lab Review Bot Analysis

Summary

This PR correctly fixes a silent failure in the Pink IK controller caused by an API incompatibility between qpsolvers>=4.12.0 and daqp==0.7.2. The fix is minimal, well-targeted, and aligns main with develop.


✅ What Works Well

Root Cause Analysis

  • The PR accurately identifies that qpsolvers==4.12.0 introduces DAQP warm starts via the primal_start argument
  • daqp==0.7.2 lacks this argument, causing TypeError: solve() got an unexpected keyword argument 'primal_start'
  • The broad except (AssertionError, Exception) clause in PinkIKController.compute() (lines ~230-240) swallows this error and returns joints unchanged, making IK silently become a no-op

Fix Quality

  • Bumping to daqp==0.8.5 is the correct minimal fix — it exposes the required primal_start parameter
  • The version aligns with the develop branch, avoiding divergence
  • Changelog entry properly documents the issue with technical detail
  • Comments in setup.py explain why the pin exists, which is excellent for future maintainability

Testing Evidence

  • The PR description includes systematic verification with controlled variable isolation
  • Error magnitude (~26mm) is consistent across failures, confirming the no-op behavior

💡 Observations

Silent Failure Pattern
The PR correctly notes that the broad exception handler in PinkIKController masks solver failures. While fixing that is out of scope for this CI hotfix, it's worth tracking — silent IK failures can cause subtle robot behavior bugs that are hard to debug. The current pattern returns stale joint positions on any solver exception, not just expected convergence failures.

Platform Constraint
I noticed the SUPPORTED_ARCHS_ARM variable name is used but the actual constraint targets x86_64/AMD64 (line 55 in setup.py). This is cosmetic but could confuse future readers:

f"daqp==0.8.5 ; platform_system == 'Linux' and ({SUPPORTED_ARCHS_ARM})"

This is pre-existing and unrelated to this PR.


📋 Test Coverage

The existing test/controllers/test_pink_ik.py provides adequate coverage for this change:

  • Tests verify end-effector positioning accuracy
  • The 26mm fixed offset in failures directly exercises the code path this PR fixes
  • No new tests are needed for a dependency pin bump

✅ Verdict

LGTM for merge — This is a clean, minimal fix for a real CI regression. The dependency pin is correctly specified with version and rationale documented.

Automated review by Isaac Lab Review Bot

@greptile-apps

greptile-apps Bot commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This is a targeted dependency hotfix that bumps the daqp pin from 0.7.2 to 0.8.5 to resolve 24 failing test_pink_ik.py parametrizations on main CI caused by qpsolvers 4.12.0 passing a primal_start keyword argument that the older daqp did not accept.

  • setup.py: Single-line pin change (daqp==0.7.2 → daqp==0.8.5) with a clear inline comment explaining why >=0.8.0 is required; consistent with the project's existing exact-pin pattern and platform markers.
  • extension.toml / CHANGELOG.rst: Corresponding patch version bump to 0.54.4 and a well-written changelog entry that accurately describes root cause and fix.
  • The underlying qpsolvers dependency remains unpinned (transitive via pin-pink==3.1.0), which is acknowledged as intentionally out of scope; the broad except in PinkIKController that masked the error is also left for a follow-up on develop.

Confidence Score: 4/5

Safe to merge — the one-line pin change is narrowly scoped, well-reasoned, and matches the identical pin already on the develop branch.

The fix is correct and the root cause analysis is thorough. The only forward-looking concern is that qpsolvers remains unpinned, meaning a future qpsolvers release could trigger the same class of silent solver failure again — but this is an acknowledged limitation and consistent with the existing dependency strategy.

No files require special attention; source/isaaclab/setup.py is the only substantive change and it is straightforward.

Important Files Changed

Filename Overview
source/isaaclab/setup.py Bumps daqp pin from 0.7.2 to 0.8.5 and adds an inline comment explaining the root cause; notes the primal_start API requirement introduced in 0.8.0.
source/isaaclab/config/extension.toml Patch version bump from 0.54.3 to 0.54.4, consistent with a dependency-only fix.
source/isaaclab/docs/CHANGELOG.rst Adds a changelog entry for 0.54.4 describing the root cause and fix; clear and accurate.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A["qpsolvers 4.12.0\nenables DAQP warm starts"] --> B["passes primal_start\nto daqp.solve()"]
    B --> C{daqp version?}
    C -->|"0.7.2 (old pin)"| D["TypeError: unexpected\nkwarg 'primal_start'"]
    C -->|"0.8.5 (new pin)"| E["solve() accepts\nprimal_start ✓"]
    D --> F["PinkIKController\nswallows exception"]
    F --> G["IK becomes no-op\n~26 mm offset in CI"]
    E --> H["IK solves correctly\nerror < 1e-3 m ✓"]
Loading

Reviews (1): Last reviewed commit: "Bump daqp pin to 0.8.5 to fix Pink IK so..." | Re-trigger Greptile

Comment thread source/isaaclab/setup.py
Comment on lines 58 to +59
f"pin-pink==3.1.0 ; platform_system == 'Linux' and ({SUPPORTED_ARCHS_ARM})",
f"daqp==0.7.2 ; platform_system == 'Linux' and ({SUPPORTED_ARCHS_ARM})",
f"daqp==0.8.5 ; platform_system == 'Linux' and ({SUPPORTED_ARCHS_ARM})",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 qpsolvers remains unpinned, keeping the fix fragile

pin-pink==3.1.0 only constrains qpsolvers>=4.3.1, so it continues to float. A future qpsolvers release that further extends its use of the daqp API (or introduces another new keyword argument) would silently break the solver again in the same way — PinkIKController would swallow the TypeError and become a no-op. Pinning qpsolvers alongside daqp here (or at least adding an upper bound like qpsolvers<5) would make the dependency contract explicit and prevent this class of regression.

@hujc7
hujc7 merged commit f73c331 into isaac-sim:main Jun 2, 2026
10 checks passed
Du-322 pushed a commit to StanleyChueh/IsaacLab that referenced this pull request Aug 11, 2026
…saac-sim#5902)

## 1. Summary

- Fixes the ``test/controllers/test_pink_ik.py`` failures on ``main`` CI
(24 failing parametrizations, ~3 weeks running, identical fixed ~26 mm
end-effector offset).
- Root cause: ``qpsolvers`` 4.12.0 (2026-05-05) enabled DAQP warm starts
and now passes a ``primal_start`` argument into ``daqp.solve()``. The
pinned ``daqp==0.7.2`` does not accept it and raises ``TypeError:
solve() got an unexpected keyword argument 'primal_start'`` on every
solve. ``PinkIKController`` catches the exception and returns the joints
unchanged, so Pink IK becomes a no-op and the end effectors stay at the
reset pose — a fixed offset, not a kinematic error.
- Fix: bump the pin to ``daqp==0.8.5`` (the release that exposes
``primal_start``), aligning ``main`` with ``develop``.

## 2. Why it surfaced now

- ``qpsolvers`` is unpinned on ``main`` (transitive via
``pin-pink==3.1.0``, which requires ``qpsolvers>=4.3.1``), so it floats
to the latest release.
- The last passing CI resolved ``qpsolvers==4.11.0``; the first failing
CI resolved the just-released ``qpsolvers==4.12.0``. No ``main`` source
changed between them — only the resolved dependency.
- ``daqp`` was pinned ``0.7.2`` in both the passing and failing runs, so
the trigger is the ``qpsolvers`` bump interacting with the too-old
``daqp``.

## 3. Verification

Reproduced and fixed locally in the CI-equivalent container, isolating
the single variable:

| qpsolvers | daqp | ``primal_start`` | test_pink_ik (GR1T2) |
|---|---|---|---|
| 4.11.0 | 0.7.2 | n/a | PASS (error ~1e-6 m) |
| 4.12.0 | 0.7.2 | absent | FAIL — ``Left hand IK position error
(0.026841)`` |
| 4.12.0 | 0.8.5 | present | PASS — all variants, error collapses to
<1e-3 m |

- The failing CI log contains ``solve() got an unexpected keyword
argument 'primal_start'`` (the swallowed ``TypeError``); the passing CI
log does not.
- The install smoke check already asserts ``'primal_start' in
inspect.signature(daqp.solve).parameters``, consistent with this being
the required ``daqp`` API.

## 4. Scope

- One-line dependency pin change in ``source/isaaclab/setup.py`` plus
the extension version bump and changelog entry (``main`` convention).
- The broad ``except`` in ``PinkIKController`` that silently swallowed
the solver error is the reason this was masked; surfacing it loudly is a
larger controller change already present on ``develop`` and is
intentionally out of scope for this minimal CI hotfix.

## 5. Test plan

- [x] Local repro: ``qpsolvers==4.12.0`` + ``daqp==0.7.2`` fails with
the exact 26 mm offset.
- [x] Local fix: ``qpsolvers==4.12.0`` + ``daqp==0.8.5`` passes all
GR1T2 ``test_pink_ik.py`` variants.
- [x] ``./isaaclab.sh -f`` clean.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants