Skip to content
Merged
16 changes: 16 additions & 0 deletions ci/package/native.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/sh
set -eu
family=$(printf '%s' "$TARGET_JSON" | jq -r .family)
build=/tmp/codex/build/codexui/wave
mkdir -m 700 -p "$build/r" "$OUTPUT_DIR"
export TMPDIR="$build" XDG_RUNTIME_DIR="$build/r" QT_QPA_PLATFORM=offscreen CODEXUI_TIMING_POLICY=report
cmake -S "$SOURCE_DIR" -B "$build" -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTING=ON -DCODEXUI_INSTALL_WEB=OFF
cmake --build "$build" --parallel "$(nproc)"
xvfb-run -a ctest --test-dir "$build" -LE mariadb -E '^codexui-conversation-performance-' --output-on-failure --verbose
case "$family" in
deb) set -- -G DEB -D "CPACK_PACKAGE_VERSION=$PACKAGE_VERSION-$PACKAGE_RELEASE" ;;
rpm) set -- -G RPM -D "CPACK_PACKAGE_VERSION=$PACKAGE_VERSION" \
-D "CPACK_RPM_PACKAGE_RELEASE=$PACKAGE_RELEASE" ;;
esac
cpack --config "$build/CPackConfig.cmake" -B "$build" -D "CPACK_OUTPUT_FILE_PREFIX=$OUTPUT_DIR" "$@"
77 changes: 77 additions & 0 deletions ci/packages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{
"schema": 1,
"package": "codexui",
"title": "CodexUI",
"depends_on": [
"aisuite"
],
"build": {
"deb": "ci/package/native.sh",
"rpm": "ci/package/native.sh"
},
"build_dependencies": {
"deb": [
"cmake",
"g++",
"make",
"pkg-config",
"libssl-dev",
"openssl",
"nlohmann-json3-dev",
"libmagic-dev",
"libbluetooth-dev",
"libmariadb-dev",
"libncurses-dev",
"qt6-base-dev",
"libkf6sonnet-dev",
"sonnet6-plugins",
"hunspell-en-us",
"hunspell-de-at",
"libgit2-dev",
"python3",
"xvfb",
"xauth"
],
"rpm": [
"cmake",
"gcc-c++",
"make",
"pkgconf-pkg-config",
"openssl-devel",
"openssl",
"json-devel",
"file-devel",
"bluez-libs-devel",
"mariadb-connector-c-devel",
"ncurses-devel",
"qt6-qtbase-devel",
"kf6-sonnet-devel",
"kf6-sonnet-hunspell",
"hunspell-en-US",
"hunspell-de",
"libgit2-devel",
"python3",
"xorg-x11-server-Xvfb",
"xorg-x11-xauth"
],
"openwrt": []
},
"targets": [
"debian-trixie-amd64",
"debian-trixie-arm64",
"debian-trixie-armhf",
"debian-forky-amd64",
"debian-forky-arm64",
"debian-forky-armhf",
"debian-sid-amd64",
"debian-sid-arm64",
"debian-sid-armhf",
"ubuntu-resolute-amd64",
"ubuntu-resolute-arm64",
"fedora-43-x86_64",
"fedora-43-aarch64",
"fedora-44-x86_64",
"fedora-44-aarch64",
"raspberrypios-trixie-arm64"
]
}
25 changes: 14 additions & 11 deletions tests/codex/NodeGraphThreadPaneUiTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2696,19 +2696,22 @@ namespace codexui::codex {
}

bool rowDotUsesColor(QTreeWidget* tree, QTreeWidgetItem* item, const QColor& expected) {
if (!tree || !item)
return false;
QRect rect = tree->visualItemRect(item);
if (item->childCount() > 0) {
const QRect child = tree->visualItemRect(item->child(0));
if (child.isValid() && rect.contains(child.center())) {
rect.setTop(rect.top() + UiStyle::projectCardEdgePadding);
rect.setBottom(child.top() - 1);
bool matched = false;
if (tree && item) {
QRect rect = tree->visualItemRect(item).intersected(tree->viewport()->rect());
if (item->childCount() > 0) {
const QRect child = tree->visualItemRect(item->child(0));
if (child.isValid() && rect.contains(child.center())) {
rect.setBottom(child.top() - 1);
}
}
// Group-card padding is part of the row, not the status dot.
const QImage image = tree->viewport()->grab().toImage();
for (int y = rect.top(); rect.isValid() && y <= rect.bottom() && !matched; ++y) {
matched = colorDistance(logicalPixel(image, QPoint(rect.left() + 14, y)), expected) <= 6;
}
}
return rect.isValid() &&
colorDistance(logicalPixel(tree->viewport()->grab().toImage(), QPoint(rect.left() + 14, rect.center().y())), expected) <=
6;
return matched;
}

bool uninspectedResultsFollowCompletionAndSelection() {
Expand Down