instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
Uniswap__v3-core__60
Uniswap/v3-core
60
defect
d1a922fd317da349890894466544137a7a457be5
b2df62c8029c24e76cd5d9e7dbd3db415dd04225
fix virtual supplies
This fixes some issues with updates to `reserve0Virtual`, `reserve1Virtual`, and `virtualSupplies` in `setPosition`. First, the new code computes the change to virtual supply correctly (as the proportional change to the total `virtualSupply` as the change in each of the reserves), which is needed for `g` not to cha...
diff --git a/contracts/UniswapV3Pair.sol b/contracts/UniswapV3Pair.sol index be0ab61dd..e41ac6f8e 100644 --- a/contracts/UniswapV3Pair.sol +++ b/contracts/UniswapV3Pair.sol @@ -275,6 +275,26 @@ contract UniswapV3Pair is IUniswapV3Pair { } } + function updateReservesAndVirtualSupply(int112 liquidityDe...
5
5
5
[{"id": "G0", "claim": "The pull request should include a test case which reproduces the bug and shows that the fixed code is not vulnerable to it.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The caller still has to be credited for the value of the e...
null
Uniswap__v3-core__79
Uniswap/v3-core
79
defect
6362132b9b305b5429a74a8de589cb9ec5487af9
17c3a97d2eb8b71567913f804aa8e90587135fed
recover erc20
fixes https://github.com/Uniswap/uniswap-v3-core/issues/44
diff --git a/contracts/UniswapV3Pair.sol b/contracts/UniswapV3Pair.sol index 1874519ee..0abedf4a2 100644 --- a/contracts/UniswapV3Pair.sol +++ b/contracts/UniswapV3Pair.sol @@ -8,6 +8,7 @@ import '@uniswap/lib/contracts/libraries/TransferHelper.sol'; import '@openzeppelin/contracts/math/SafeMath.sol'; import '@open...
1
1
1
[{"id": "G0", "claim": "The recover function should restrict callers to feeToSetter instead of feeTo.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Uniswap__v3-core__82
Uniswap/v3-core
82
defect
5a94d57e3b2f5123d7fa4cc59954fb439dc6769e
3051eb1ec69f0e76475946026a81b6426a5f5ab7
full precision swap math
closes #69 fixes https://github.com/Uniswap/uniswap-v3-core/issues/88
diff --git a/contracts/UniswapV3Pair.sol b/contracts/UniswapV3Pair.sol index 7e73f01d5..67aff9b28 100644 --- a/contracts/UniswapV3Pair.sol +++ b/contracts/UniswapV3Pair.sol @@ -3,6 +3,7 @@ pragma solidity =0.6.12; pragma experimental ABIEncoderV2; import '@uniswap/lib/contracts/libraries/FixedPoint.sol'; +import '@...
6
4
0
[{"id": "G0", "claim": "The reciprocal price passed to PriceMath.getInputToRatio may not be precise, so the computed amountInRequiredForShift could be inaccurate.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The new comment above the maximum-out...
null
UnitTestBot__UTBotCpp__106
UnitTestBot/UTBotCpp
106
defect
dd755522b5ca6f831362f7631a72ad5d3d08c09e
24034886447991497b272ec3eaa01d3929e29de9
Support projects where targets depend on installed libraries
I have put an example of such a project in the test suite `server/test/suites/installed`. If we generate a project model for that, we get one of the possible `link_commands.json` from [there](https://github.com/UnitTestBot/UTBotCpp/issues/90). And since it is hard to distinguish those cases as well as to fix the behavi...
diff --git a/server/src/Paths.cpp b/server/src/Paths.cpp index 45a47947a..5907ca33c 100644 --- a/server/src/Paths.cpp +++ b/server/src/Paths.cpp @@ -45,22 +45,18 @@ namespace Paths { return pathSet; } bool isSubPathOf(const fs::path &base, const fs::path &sub) { - auto b = normalizedTrimmed(ba...
1
1
0
[{"id": "G0", "claim": "A method should be made that adds a file only if it is not an installed file, instead of repeating the isInstalledFile guard before every addFile call.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
UnitTestBot__UTBotCpp__114
UnitTestBot/UTBotCpp
114
defect
2a499525422ca953f9a35e27b793bb00e2cc1d5f
d36d60dd515eecbd96ea69a34d24b58520110a8c
Add interactive mode
Now interactive mode doesn't work on generation tests for project or folder, but for file all are fine. For file `linked-list.cpp` generation time equals 52s for 1 parallel process, 36s - for 5 and 20s - for 10. For other files it's impossible to see difference because number of functions in files are small
diff --git a/integration-tests/c-example/lib/linked-list/big-linked-list.c b/integration-tests/c-example/lib/linked-list/big-linked-list.c new file mode 100644 index 000000000..bb2d513ea --- /dev/null +++ b/integration-tests/c-example/lib/linked-list/big-linked-list.c @@ -0,0 +1,1847 @@ +/* + * Copyright (c) Huawei Tec...
5
4
0
[{"id": "G0", "claim": "Please show the difference in generation time with and without interactive mode for a file, as a markdown table with columns for number of functions and execution time without and with interactive mode.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced...
null
UnitTestBot__UTBotCpp__182
UnitTestBot/UTBotCpp
182
defect
0952f5c92736b400bb7f5f357fe3a000ed417585
e05ad98b168e1a68de02f172f6fb1476f92f73f5
Compile tests 2 way by shared lib or object. issue-143
This pr fix [issue-143](https://github.com/UnitTestBot/UTBotCpp/issues/143) create 3 makefile for 1 file: 1) same as before [commit](https://github.com/UnitTestBot/UTBotCpp/commit/e1a96d9cae936a8735998871f3a38f6ad4178e3f#diff-155fa58ace015058333d0b5407eac8d3c65d77a1d9c2132417be735f259064a1R406) with name `__filename...
diff --git a/server/src/Paths.cpp b/server/src/Paths.cpp index f34205f84..2f0948580 100644 --- a/server/src/Paths.cpp +++ b/server/src/Paths.cpp @@ -309,21 +309,26 @@ namespace Paths { return replaceExtension(sourcePathToStubName(source), ".h"); } - fs::path sourcePathToStubPath(const utbot::Projec...
5
5
1
[{"id": "G0", "claim": "The objcopy `--redefine-sym main=old_main` handling added for shared-lib builds looks redundant because the main function is already redefined in wrappers via `#define main main__`.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim...
null
UnitTestBot__UTBotCpp__261
UnitTestBot/UTBotCpp
261
defect
6a86fefe1c5100c95285a6d43df2be0110515d13
bb7af9000bccffd1ef3598cfc941c6f7690b08fd
Add coverage and results statistics report
After tests execution from CLI user can find coverge and results statistics report in .csv file. The table looks like the following: |Filename|Google Test Execution Time (s)|Total Tests Number|Passed Tests Number|Failed Tests Number|Death Tests Number|Interrupted Tests Number|Total Lines Number|Covered Lines Number|...
diff --git a/server/proto/testgen.proto b/server/proto/testgen.proto index d66357c84..29eb9393b 100644 --- a/server/proto/testgen.proto +++ b/server/proto/testgen.proto @@ -188,6 +188,7 @@ message TestResultObject { string testname = 2; TestStatus status = 3; string output = 4; + uint32 executionTimeM...
7
7
1
[{"id": "G0", "claim": "The new TestResultObject proto field should use google.protobuf.Duration instead of a raw uint32 milliseconds count.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Test execution time should be parsed from the gtest results json r...
null
UnitTestBot__UTBotCpp__279
UnitTestBot/UTBotCpp
279
defect
4ec914592838c7e3ddad57af09dffedaf73d0c80
61798c66aa2b4a19d367c163b46a33b928c9effa
Use klee_assume(s[N - 1] == '\0') call for the last element of string
closes #215
diff --git a/server/src/printers/KleeConstraintsPrinter.cpp b/server/src/printers/KleeConstraintsPrinter.cpp index 990574b64..1161e1fd8 100644 --- a/server/src/printers/KleeConstraintsPrinter.cpp +++ b/server/src/printers/KleeConstraintsPrinter.cpp @@ -120,7 +120,7 @@ void KleeConstraintsPrinter::genConstraintsForMulti...
2
2
1
[{"id": "G0", "claim": "The pull request's change (the klee_assume constraint for the last string element) ships without tests, and the reviewer asks that tests on the changes be written.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "server/test/suites...
null
UnitTestBot__UTBotCpp__540
UnitTestBot/UTBotCpp
540
defect
b5376627ba0ab6abc0b8af122ebb86aa2dd551f1
1fc9712858004dde02c99cb3dea246dfaf551629
Dont fail error suites
Before all generated error tests should be fail than run. ```cpp TEST(error, buggy_function2_test_2) { write_to_file("../../../tests/lib/A", "\0""\0""\0""\0""\0""\0""\0""\0""\0""\0""\0""\0""\0""\0""\0""\0""\0""\0""\0""\0""\0""\0""\0""\0""\0""\0""\0""\0""\0""\0""\0""\0""\0""\0""\0""\0""\0""\0""\0""\0""\0""\0""...
diff --git a/server/proto/testgen.proto b/server/proto/testgen.proto index 39416891e..707b4b0e1 100644 --- a/server/proto/testgen.proto +++ b/server/proto/testgen.proto @@ -90,6 +90,12 @@ message ProjectContext { string buildDirRelativePath = 4; } +enum ErrorMode { + FAILING = 0; + PASSING_IN_TARGET_ONLY ...
3
2
0
[{"id": "G0", "claim": "Documentation should be added for the new error-mode feature: comments or wiki docs about the new ErrorMode/ErrorType entities and an explanation (wiki or PR description) of how running error tests will change after this PR.", "category": "documentation", "verdict": "uncertain", "priority": "P2"...
null
UnitTestBot__UTBotCpp__561
UnitTestBot/UTBotCpp
561
defect
54ca9657a1c27b4fa93c3de19f366e7bd13fcee1
05846114caa52da9928e44f6d85a7428b85f1f70
Fix target selection for files and lines (closes #557)
When test are generating for file, function, line, assertion, class or predicate and automatic target is chosen, UTBot selects target that contains the source file
diff --git a/.github/workflows/build-utbot.yml b/.github/workflows/build-utbot.yml index 71ce6eeba..a6bf15997 100644 --- a/.github/workflows/build-utbot.yml +++ b/.github/workflows/build-utbot.yml @@ -153,7 +153,7 @@ jobs: build-portable-container: needs: build-utbot-and-generate-test - runs-on: ubuntu-lat...
1
1
1
[{"id": "G0", "claim": "After removing the `isAutoTarget = target == GrpcUtils::UTBOT_AUTO_TARGET_PATH` assignment, the flag has no other assignment and is left permanently false.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
UnitTestBot__UTBotCpp__583
UnitTestBot/UTBotCpp
583
defect
17bf7e7cc2ee2ec6b6d57af8dc61733df556d5ce
b6a59b8ee4ffbcd541c78a4e259c1ef5619d6e09
Adding a short description of the error to a test comment
adding a short description of the error to a test comment
diff --git a/server/src/Tests.h b/server/src/Tests.h index f7558e23d..9b22018e8 100644 --- a/server/src/Tests.h +++ b/server/src/Tests.h @@ -471,6 +471,11 @@ namespace tests { FileInfo getFileByName(char fileName) const { return filesValues.value()[fileName - 'A']; } + ...
2
2
1
[{"id": "G0", "claim": "Write the error comment through the existing strComment method instead of emitting it directly into ss.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "getError() should return a default value instead of crashing the progr...
null
Unitech__pm2__2420
Unitech/pm2
2,420
defect
4b78c6ef44a799285b0b4a81423d251c2bf7c67f
97203943e7d933c2a22e6ec4dc91e603e76c2119
Do not override app config with opts default values (fix #2366)
Fix pm2-dev issue - #2366 Do not override the application config with the opts default values. | Q | A | | --- | --- | | Bug fix? | yes | | New feature? | no | | BC breaks? | no | | Deprecations? | no | | Tests pass? | yes | | Fixed tickets | #2366 | | License | MIT |
diff --git a/lib/API.js b/lib/API.js index 32b50554f2..5f93c50db8 100644 --- a/lib/API.js +++ b/lib/API.js @@ -851,9 +851,9 @@ API.prototype._startJson = function(file, opts, action, pipe, cb) { appConf.forEach(function(app) { if (opts.only && opts.only != app.name) return false; - if (opts.watch && o...
2
2
0
[{"id": "G0", "claim": "Reorder the new conditions so `!app.watch` is tested before the `opts` checks for speed, and likewise test `!app.ignore_watch` first in the second condition.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A test should be add...
null
Unitech__pm2__3511
Unitech/pm2
3,511
defect
9f2c4ca4c9eadf6c7730e3889c72e908cd2d8f5d
39f242985b7d0886a1f99f3dbe7a9145d60e66fe
feature: add inspect feature, on runtime
add inspector feature on process container. Use pmx, not need to reload/restart app. | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #1234, #5678 | License | MIT | Doc PR | ht...
diff --git a/bin/pm2 b/bin/pm2 index 809177b03f..eebc8da681 100755 --- a/bin/pm2 +++ b/bin/pm2 @@ -396,6 +396,13 @@ commander.command('id <name>') pm2.getProcessIdByName(name); }); +// Inspect a process +commander.command('inspect <name>') + .description('inspect a process') + .action(function(cmd) { + p...
2
2
2
[{"id": "G0", "claim": "The new `internal:inspect` custom action should also be added in `ProcessContainer`, which is used in cluster mode, not only in `ProcessContainerFork`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The code should also check...
null
Unitech__pm2__3553
Unitech/pm2
3,553
defect
e4e29233f99db36462a6e8f48eb8ebd3d2fd9fa5
3aeeba02f628bf4f19e8d5b93657fd94a6ef0ec7
fix: remove unused variable when trying to use tracing
Fix issue with tracing. | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #3551 | License | MIT | Doc PR | https://github.com/pm2-hive/pm2-hive.github.io/pulls
diff --git a/lib/ProcessUtils.js b/lib/ProcessUtils.js index 3e90117e34..4162fe3fc6 100644 --- a/lib/ProcessUtils.js +++ b/lib/ProcessUtils.js @@ -1,9 +1,12 @@ module.exports = { injectModules: function() { + console.log(process.env.pmx) if (process.env.pmx !== 'false') { const pmx = require('pmx'); ...
1
1
1
[{"id": "G0", "claim": "All the `console.log` statements should be removed, in particular the debug lines this PR added to lib/ProcessUtils.js.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Unitech__pm2__3723
Unitech/pm2
3,723
defect
992a045227aed559e708ac4e6bb3f54beabe48e0
b0ddeaad2e376f702a5ac3e9a24f66162932e093
Add directory support for --ignore-watch, fixed --ignore-watch, implemented test and implemented flag --watch-delay
<!-- Please always submit pull requests on the development branch. --> | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | no | Fixed tickets | #1234, #5678 | License | MIT | Doc PR | https://github.com...
diff --git a/bin/pm2 b/bin/pm2 index 002657e7ee..cc062071b2 100755 --- a/bin/pm2 +++ b/bin/pm2 @@ -75,6 +75,7 @@ commander.version(pkg.version) .option('--merge-logs', 'merge logs from different instances but keep error and out separated') .option('--watch [paths]', 'watch application folder for changes', functio...
2
1
0
[{"id": "G0", "claim": "The test file test/programmatic/flagWatch.mocha.js is missing a new line at end of file (the comment anchors to its final line, which this pull request added) and this should be corrected.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "...
null
Unitech__pm2__3728
Unitech/pm2
3,728
defect
df081ed0ce524797c1fc4ad0ebcefb9c9e40a301
829fcb335ff973669bdc27d91d4dcebca3176f14
Release 3.0.0
Prepare 3.0.0 release | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT
diff --git a/.changelogrc b/.changelogrc index 14a1a68969..83c18d09b3 100644 --- a/.changelogrc +++ b/.changelogrc @@ -2,10 +2,10 @@ "app_name": "", "logo": "", "intro": "", - "branch" : "master", + "branch" : "development", "repo_url": "https://github.com/Unitech/pm2", - "version_name" : "...
2
1
1
[{"id": "G0", "claim": "The 3.0.0 changelog's Breaking changes section must list the four breaking changes (drop node 0.12, drop gracefulReload, remove Interactor, replace pmx by @pm2/io).", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The agent l...
null
Unitech__pm2__3944
Unitech/pm2
3,944
defect
dc2c366847dee473685f999d16ad93fa012fe8ba
74652b5c253b64de9f04581ead05226c826a897b
Allow to use cron with autorestart=false scripts
| Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #2487 | License | MIT | Doc PR | na To test: ``` ./bin/pm2 start -c '* * * * *' --no-autorestart --no-daemon test/fixtures/c...
diff --git a/lib/ProcessContainer.js b/lib/ProcessContainer.js index 318959a25b..55ed889969 100644 --- a/lib/ProcessContainer.js +++ b/lib/ProcessContainer.js @@ -37,7 +37,6 @@ delete process.env.pm2_env; var errFile = pm2_env.pm_err_log_path; var pidFile = pm2_env.pm_pid_path; var script = pm2_en...
2
1
0
[{"id": "G0", "claim": "A Map would be better than a plain object for storing God.CronJobs.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request is missing programmatic tests for the new cron-without-autorestart behaviour.", "category": "testi...
null
UniversalMediaServer__UniversalMediaServer__6009
UniversalMediaServer/UniversalMediaServer
6,009
defect
7c69a2820211809bea726f865be371da1944eb71
b125e6ae5f8af1dd031ff627de05275aa9c959f0
Implemented subtree search
This PR implements subtree search support for containers other than the root container (`0`). It may resolve the issue reported in #5994. Additionally, this PR includes performance improvements for case-insensitive searches.
diff --git a/src/main/java/net/pms/database/DatabaseHelper.java b/src/main/java/net/pms/database/DatabaseHelper.java index a60357006c3..667326ee6a0 100644 --- a/src/main/java/net/pms/database/DatabaseHelper.java +++ b/src/main/java/net/pms/database/DatabaseHelper.java @@ -199,6 +199,10 @@ public abstract class Database...
1
1
1
[{"id": "G0", "claim": "The TYPE_ALBUM count query should count distinct ALBUM rather than AUDIOTRACK_ID.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
UniversalMediaServer__UniversalMediaServer__6072
UniversalMediaServer/UniversalMediaServer
6,072
defect
7af2df1425054ecb37d115c1d6356d6c68b8dc71
a88d282b234612798a01d63d3bdba9f48d5ce8ca
Fix #6047: DNS timeouts, shared DnsResolver, avoid hangs when resolving DNS, log exception traces
Addresses https://github.com/UniversalMediaServer/UniversalMediaServer/issues/6047 (timeouts and hanging when no network access is available and the DNS resolver is slow). ## Changes - **DnsResolver** (new): Single shared executor for all DNS/reverse-DNS with configurable timeouts. No caching. All timeouts and er...
diff --git a/react-client/src/components/ServerSettings/GeneralSettings.tsx b/react-client/src/components/ServerSettings/GeneralSettings.tsx index 0544319bedc..e4674afadbb 100644 --- a/react-client/src/components/ServerSettings/GeneralSettings.tsx +++ b/react-client/src/components/ServerSettings/GeneralSettings.tsx @@ ...
6
5
3
[{"id": "G0", "claim": "getRendererName in MediaServerServlet now returns the IP address instead of performing reverse DNS through getRemoteHost; if that behavior change is an issue, DnsResolver.resolveReverse could be used to preserve the old behavior.", "category": "correctness", "verdict": "opposed", "priority": "P2...
null
UniversalRobots__Universal_Robots_Client_Library__146
UniversalRobots/Universal_Robots_Client_Library
146
defect
2e69bc165da0ad22fe9a1a3417e7eaa4b082ebac
3b903ab5054f9f759998cf2845351a173cddeb89
Add a cmake option to activate address sanitizers
In an effort to track down memory issues, I started activating address sanitizers on the urcl. I think, we should activate them by default inside CI in order to spot issues early on.
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b70a4b73b..c216b2c0f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,7 +32,7 @@ jobs: - name: install boost run: sudo apt-get install -y libboost-dev - name: configure - run: mkdir build && c...
1
1
1
[{"id": "G0", "claim": "The new WITH_ASAN option should set the sanitizer flags on the urcl target via target_compile_options/target_link_options (PUBLIC per the follow-up request) instead of globally via add_compile_options/add_link_options.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "i...
null
UniversalRobots__Universal_Robots_Client_Library__168
UniversalRobots/Universal_Robots_Client_Library
168
defect
5b06798f1f741c095d5b11b22acc324aa771f07f
34a76f2267cea817b2cd6c13722ca25b0f4b7fe7
Timestamp is now added to the output recipe correctly
Added test to verify the addition of timestamp Only disconnect if client is initialized This will fix the issue in #144
diff --git a/include/ur_client_library/rtde/rtde_client.h b/include/ur_client_library/rtde/rtde_client.h index de2b12dc6..1d1e48606 100644 --- a/include/ur_client_library/rtde/rtde_client.h +++ b/include/ur_client_library/rtde/rtde_client.h @@ -208,7 +208,7 @@ class RTDEClient constexpr static const double CB3_MAX_F...
2
2
0
[{"id": "G0", "claim": "Use an enum instead of the boolean output_recipe parameter of readRecipe for readability, and add comments.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Reword the timestamp comment to say the timestamp is added to the output re...
null
UniversalRobots__Universal_Robots_Client_Library__169
UniversalRobots/Universal_Robots_Client_Library
169
defect
e85b3ae0927533619e406be173c4c5d53af82c60
937e34f54fc8e0ff6aded2f8a26b724e1842e244
Added handling of spline interpolation with end point velocities
Added test for spline interpolation and trajectory data as test artifacts When spline interpolation has end points with velocities, the time is scaled such that the trajectory is followed, but we end with zero velocity.
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7f28dcb51..956aa7f55 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,6 +39,8 @@ jobs: LDFLAGS: -fprofile-arcs -ftest-coverage - name: build run: cmake --build build --config Debug + - nam...
10
9
1
[{"id": "G0", "claim": "Several variables in the new spline code (idx, x, scaling_factor, and x in jointSplineRun) are assigned without the local keyword, so add it where the suggestions point.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Fix the ...
null
UniversalRobots__Universal_Robots_Client_Library__176
UniversalRobots/Universal_Robots_Client_Library
176
defect
cd0d4268ca0d9f5d75dcc18124936bbc44ec2d77
8442d50345efd956aa4c7ae4ffae88cb8843fa97
Make tcp_server retry binding the socket
It sometimes happens that binding the socket fails since it is already in use (e.g. when restarting the driver too fast). This commit should retry binding instead of simply throwing an exception
diff --git a/include/ur_client_library/comm/tcp_server.h b/include/ur_client_library/comm/tcp_server.h index feb91065c..58543beac 100644 --- a/include/ur_client_library/comm/tcp_server.h +++ b/include/ur_client_library/comm/tcp_server.h @@ -35,6 +35,7 @@ #include <unistd.h> #include <atomic> +#include <chrono> #in...
2
2
0
[{"id": "G0", "claim": "The newly added <ratio> include in src/comm/tcp_server.cpp appears to be unused and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Documentation should be added for the new constructor parameters (port,...
null
UniversalRobots__Universal_Robots_Client_Library__178
UniversalRobots/Universal_Robots_Client_Library
178
defect
479a197865b68a7eff95a32090ebb3819e627232
0ae0d55ab14693f648447358659140b32c19a454
Added watchdog configuration for the reverse socket
This enables the possibility to configure the read timeout for the reverse socket running in the external control script Separated control modes into realtime and non realtime to have different possible configurations for the watchdog Added test to verify the changes Updated test and examples to coincide with ...
diff --git a/CMakeLists.txt b/CMakeLists.txt index 7f9648bb8..c3fecf702 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -43,6 +43,7 @@ add_library(urcl SHARED src/ur/calibration_checker.cpp src/ur/dashboard_client.cpp src/ur/tool_communication.cpp + src/ur/watchdog.cpp src/ur/version_informat...
8
8
1
[{"id": "G0", "claim": "The 'Switch to Forward mode' log line in the spline example no longer matches what the code there does and should not be printed.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The realtime/non-realtime control-mode group c...
null
UniversalRobots__Universal_Robots_Client_Library__195
UniversalRobots/Universal_Robots_Client_Library
195
defect
04725c15742de543ffdb89bd2f0dacb7556be15f
41a9525c56299705c88e5ed5aecab49eaabea74b
Changed spline interpolation to use the last commanded joint velocity…
… when calculating the next spline in the trajectory Also limited the acceleration to the maximum joint acceleration of the target accelerations calculated from the spline. But still added a constant acceleration when slowing down is active, as the acceleration in the trajectory no longer can be used. This will f...
diff --git a/resources/external_control.urscript b/resources/external_control.urscript index 34a851e39..2427ad2e9 100644 --- a/resources/external_control.urscript +++ b/resources/external_control.urscript @@ -69,6 +69,7 @@ global extrapolate_max_count = 0 global control_mode = MODE_UNINITIALIZED global trajectory_poi...
6
5
1
[{"id": "G0", "claim": "Iterate the list_max_norm search loop from index 1 instead of 0, for efficiency, since element 0 is already the initial max.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Receiving an empty list should perhaps not be handled...
null
UniversalRobots__Universal_Robots_Client_Library__211
UniversalRobots/Universal_Robots_Client_Library
211
defect
0f0321a9cdf84737dcac49b5e7f678ddf002e890
1d8c366a13113c9bb705d3e49a18ce85e5b3b262
Analog domain
This adds the possibility to specify the output domain when setting an analog output. Tests are still missing, hence the draft status. Edit: Tests are now there.
diff --git a/include/ur_client_library/rtde/rtde_writer.h b/include/ur_client_library/rtde/rtde_writer.h index 611f8154b..f229a96bf 100644 --- a/include/ur_client_library/rtde/rtde_writer.h +++ b/include/ur_client_library/rtde/rtde_writer.h @@ -34,6 +34,7 @@ #include "ur_client_library/rtde/data_package.h" #include "...
2
2
1
[{"id": "G0", "claim": "urrsk is unsure the approach is right and would prefer the client library not set the analog output domain itself by default, leaving users to configure it on the teach pendant (for which M003 proposes a default that does not change the domain).", "category": "design", "verdict": "supported", "p...
null
UniversalRobots__Universal_Robots_Client_Library__213
UniversalRobots/Universal_Robots_Client_Library
213
defect
173f1936ec82ebe6e5f96650cecb810db5f59b71
bb45713c367760046decd842313685688cd0d8a4
Added missing RTDE data packages and fixed incorrect names
Updated the list of RTDE data packages for consistency with https://www.universal-robots.com/articles/ur/interface-communication/real-time-data-exchange-rtde-guide/. Tested with URSim running Polyscope 5.17.2 with the following RTDE output recipe: ``` timestamp target_q target_qd target_qdd target_current ta...
diff --git a/src/rtde/data_package.cpp b/src/rtde/data_package.cpp index bb3ba6799..efa5b6699 100644 --- a/src/rtde/data_package.cpp +++ b/src/rtde/data_package.cpp @@ -42,9 +42,8 @@ std::unordered_map<std::string, DataPackage::_rtde_type_variant> DataPackage::g_ { "target_moment", vector6d_t() }, { "actual_q", v...
2
1
1
[{"id": "G0", "claim": "tool_digital_output_mask is not mentioned in the official RTDE guide although it seems required, so the documentation may need to be updated.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "A test should be added that clai...
null
UniversalRobots__Universal_Robots_Client_Library__221
UniversalRobots/Universal_Robots_Client_Library
221
defect
d3baa8b36d7aa184dc152a96b91912e00dcf995c
7d36c2006e0893cf2fe3a8b7b5cb0ebfa9b601d3
Adapt RTDE output recipe based on robot response
Not all RTDE outputs are available in all SW versions. When working with a fleet of robots with heterogeneous SW versions it's not practical to have multiple RTDE output recipes to account for this. This PR aims at solving this problem by adapting the RTDE output recipe on-the-fly based on the robot response to the RT...
diff --git a/include/ur_client_library/comm/pipeline.h b/include/ur_client_library/comm/pipeline.h index 7756aca47..afd9100bf 100644 --- a/include/ur_client_library/comm/pipeline.h +++ b/include/ur_client_library/comm/pipeline.h @@ -43,6 +43,8 @@ template <typename T> class IConsumer { public: + virtual ~IConsumer(...
6
5
3
[{"id": "G0", "claim": "Automatically removing unavailable variables from the output recipe should not be the default behaviour, since it could mask incorrect variable names; it should be an opt-in feature instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "c...
null
UniversalRobots__Universal_Robots_Client_Library__222
UniversalRobots/Universal_Robots_Client_Library
222
defect
85fbc559bbf8f62958eeae8c366d25358b280de1
524e564cc6ade5b4068645a98304b14fa20f8c61
Tcp socket improvements
Couple of improvements related to TCP communication: 1. the error handling in `tcp_server::readData` seems wrong since the error case should be when the number of bytes received is strictly negative and not equal to 0 1. added early disconnection in `tcp_socket::read` in case of permanent failure in order to ease f...
diff --git a/include/ur_client_library/ur/ur_driver.h b/include/ur_client_library/ur/ur_driver.h index c4970e3c7..1dd2bf559 100644 --- a/include/ur_client_library/ur/ur_driver.h +++ b/include/ur_client_library/ur/ur_driver.h @@ -489,6 +489,14 @@ class UrDriver private: static std::string readScriptFile(const std:...
2
2
0
[{"id": "G0", "claim": "The condition `errno != EAGAIN && errno != EWOULDBLOCK` in TCPSocket::read should be rewritten as `!(errno == EAGAIN || errno == EWOULDBLOCK)` for readability.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The retry logi...
null
UniversalRobots__Universal_Robots_Client_Library__225
UniversalRobots/Universal_Robots_Client_Library
225
defect
df9f95cebb6094cd30c4f5be8f989922fbf26f70
8eeb6989f13df311d31032f875cf463fb95d5604
Expose diagnostic error codes
PR to parse UR10 error codes from diagnostic logs that are streamed on the Primary Interface port 30001
diff --git a/CMakeLists.txt b/CMakeLists.txt index 878ffede2..b48e5b846 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,6 +28,7 @@ add_library(urcl SHARED src/primary/robot_message.cpp src/primary/robot_state.cpp src/primary/robot_message/version_message.cpp + src/primary/robot_message/error_c...
7
4
1
[{"id": "G0", "claim": "The author asks whether it is expected that the newly added ErrorCodeMessage parser leaves data_type_ and data_ at 0 and text_ empty, i.e. whether parsing of the error-code payload may be going wrong.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"...
null
UniversalRobots__Universal_Robots_Client_Library__242
UniversalRobots/Universal_Robots_Client_Library
242
defect
423801a53818ca19899a8317d3bff907ee82fd31
8b1af7510a792d5fd8a09d4090d2cbcf56fc0205
Add instruction executor for high-level robot control
With the trajectory point interface there is a method of executing motions with only the urcl present as shown in https://github.com/UniversalRobots/Universal_Robots_Client_Library/blob/master/examples/trajectory_point_interface.cpp However, usage is a bit cumbersome, we might want to support a one-liner for executi...
diff --git a/CMakeLists.txt b/CMakeLists.txt index 878ffede2..09e7aec66 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -42,6 +42,7 @@ add_library(urcl SHARED src/ur/ur_driver.cpp src/ur/calibration_checker.cpp src/ur/dashboard_client.cpp + src/ur/instruction_executor.cpp src/ur/tool_communic...
5
5
2
[{"id": "G0", "claim": "The commented-out CXX17 compiler flag setup (DEFINE_CXX_17_COMPILER_FLAG) in examples/CMakeLists.txt should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The global driver instance and its callback should be ...
null
UniversalRobots__Universal_Robots_Client_Library__249
UniversalRobots/Universal_Robots_Client_Library
249
defect
93ded01a198d9c3e58b21860ff3a544aea0b714c
7f611cccdcb51776bc4305d9fb3b7f6dead8210a
Do not throw exception in DashboardClient::sendRequest
I don't know why we changed it to throwing an exception. It doesn't make sense for this function.
diff --git a/src/ur/dashboard_client.cpp b/src/ur/dashboard_client.cpp index 8469a766c..41a43c94a 100644 --- a/src/ur/dashboard_client.cpp +++ b/src/ur/dashboard_client.cpp @@ -160,7 +160,7 @@ bool DashboardClient::sendRequest(const std::string& command, const std::string& bool ret = std::regex_match(response, std::...
2
2
0
[{"id": "G0", "claim": "The new test should use the shared g_ROBOT_IP constant instead of the hard-coded IP address 192.168.56.101.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new tests should reuse the DashboardClient created in the test...
null
UniversalRobots__Universal_Robots_Client_Library__265
UniversalRobots/Universal_Robots_Client_Library
265
defect
b9b9fcf879ce1f2e18c61b873d730d80ec00dee8
97213da217a8395563721d9a292498b4a2aeefcc
Use ExampleRobotWrapper for initialization in all examples
This way the examples are a lot shorter and initialization is the same everywhere, making things easier to maintain.
diff --git a/doc/examples/force_mode.rst b/doc/examples/force_mode.rst index 56ab63240..6ee364d3e 100644 --- a/doc/examples/force_mode.rst +++ b/doc/examples/force_mode.rst @@ -6,15 +6,16 @@ Force Mode example The ``ur_client_library`` supports leveraging the robot's force mode directly. An example on how to use it c...
2
1
1
[{"id": "G0", "claim": "ExampleRobotWrapper::initializeRobotWithDashboard should make the program actually exit (e.g. throw) when initialization encounters an error, rather than only logging it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The pul...
null
UniversalRobots__Universal_Robots_Client_Library__281
UniversalRobots/Universal_Robots_Client_Library
281
defect
dafaedf1f67e5e8c110aeba98eff44696cd18a69
33fe70cd3bf30f4e8847ff3869933bec8cbb4870
instruction_executor: Allow canceling an instruction
This allows cancelling a running motion with the InstructionExecutor. As executions are blocking, they have to be run in another thread to be able to be canceled. See the test for details. While implementing #280 I thought I would want to cancel the motion after the PSTOP was hit and started implementing this. It wa...
diff --git a/include/ur_client_library/ur/instruction_executor.h b/include/ur_client_library/ur/instruction_executor.h index b4050980a..2f13ac0ec 100644 --- a/include/ur_client_library/ur/instruction_executor.h +++ b/include/ur_client_library/ur/instruction_executor.h @@ -92,14 +92,35 @@ class InstructionExecutor bo...
1
1
0
[{"id": "G0", "claim": "cancelMotion should let the calling method know that it could not cancel the trajectory because the mutex was locked, and that case should also be covered in a unit test.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
UniversalRobots__Universal_Robots_Client_Library__285
UniversalRobots/Universal_Robots_Client_Library
285
defect
8ad298f17ca357e8cb2f6fc1b9bea2724d056891
82fe3c4012a2525b34c28c1460800052e0bf2dcc
Try catch RTDE setup
In #266, we improved the behavior of the urcl regarding reconnection attempts and timeouts for sockets. However, there are still a few problems (more to come later). I propose to fix one of them here to keep the scope of the PRs small. `RTDEClient::setupCommunication` is called in a while loop, and inside `RTDEClien...
diff --git a/src/rtde/rtde_client.cpp b/src/rtde/rtde_client.cpp index 8667d4661..d4f94f870 100644 --- a/src/rtde/rtde_client.cpp +++ b/src/rtde/rtde_client.cpp @@ -92,10 +92,12 @@ bool RTDEClient::init(const size_t max_connection_attempts, const std::chrono::m unsigned int attempts = 0; while (attempts < max_ini...
1
1
1
[{"id": "G0", "claim": "The error from setupCommunication should be propagated instead of silently swallowed — either by printing it in the catch block or by saving it and adding it to the exception thrown a couple of lines later.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduc...
null
UniversalRobots__Universal_Robots_Client_Library__289
UniversalRobots/Universal_Robots_Client_Library
289
defect
67e4b82e2df06c972d69304360b7b86efdca7e22
0e03340d139140ba0a1e02e021d90d52b6422a2c
Primary client power on
This allows power-cycling the robot remotely without using the dashboard server.
diff --git a/CMakeLists.txt b/CMakeLists.txt index dd720dc58..236817477 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,6 +28,7 @@ add_library(urcl src/primary/robot_message/version_message.cpp src/primary/robot_message/error_code_message.cpp src/primary/robot_state/kinematics_info.cpp + src/p...
4
4
1
[{"id": "G0", "claim": "The test binary should not set the log level to DEBUG in main; the line should be removed.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The default timeout of 5 seconds for commandPowerOn, commandPowerOff and commandBrakeReleas...
null
UniversalRobots__Universal_Robots_Client_Library__292
UniversalRobots/Universal_Robots_Client_Library
292
defect
ce6aec261922864524985f29b46b6113927af2ef
d36121ab03ae4010d63988d783cf08e9cd4e6d17
PrimaryClient: Add methods to unlock protective stop and stop the program
Add functionalities to stop the running program and to unlock a protective stop through the primary client.
diff --git a/include/ur_client_library/exceptions.h b/include/ur_client_library/exceptions.h index 91a6a38c4..8ae6efe4b 100644 --- a/include/ur_client_library/exceptions.h +++ b/include/ur_client_library/exceptions.h @@ -32,6 +32,7 @@ #include <chrono> #include <stdexcept> #include <sstream> +#include <string> #inc...
3
2
1
[{"id": "G0", "claim": "The `validate` parameter (e.g. of commandUnlockProtectiveStop/commandStop) is not self-explanatory and should be renamed to something like \"blocking\" (and similarly clarified across the methods, possibly with a mode enum).", "category": "design", "verdict": "uncertain", "priority": "P3", "scop...
null
UniversalRobots__Universal_Robots_Client_Library__296
UniversalRobots/Universal_Robots_Client_Library
296
defect
b42da6d59ad2e6259809a547aea9c3de4218179b
99ce90b868d8ff380932cdc90b31294e3b90d77a
Reduce usage of dashboard client in tests and examples
As we now have more capabilities in the primary interface, we don't need to rely on the dashboard client to initialize the robot in the example robot wrapper.
diff --git a/include/ur_client_library/example_robot_wrapper.h b/include/ur_client_library/example_robot_wrapper.h index 1a24fe466..2053130d7 100644 --- a/include/ur_client_library/example_robot_wrapper.h +++ b/include/ur_client_library/example_robot_wrapper.h @@ -85,6 +85,8 @@ class ExampleRobotWrapper */ bool ...
1
1
0
[{"id": "G0", "claim": "The new error log message should be \"Robot could not unlock the protective stop\" instead of claiming a timeout, since the user doesn't specify a timeout.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
UniversalRobots__Universal_Robots_Client_Library__303
UniversalRobots/Universal_Robots_Client_Library
303
defect
daed2434827febccc9830d914faf36027518bb65
fadf553faf8cd5cf02deb780a57af5dfa8f0e764
Add functionality to send MoveP and MoveC instructions to the robot
This PR aims at supporting to send MoveP and MoveC commands to the robot directly through the TrajectoryPointInterface and the InstructionExecutor.
diff --git a/doc/architecture/instruction_executor.rst b/doc/architecture/instruction_executor.rst index 658187377..9796fcca1 100644 --- a/doc/architecture/instruction_executor.rst +++ b/doc/architecture/instruction_executor.rst @@ -6,9 +6,11 @@ Instruction Executor The Instruction Executor is a convenience wrapper to...
6
4
2
[{"id": "G0", "claim": "After a MOVEC motion the script should reset the spline acceleration and velocity (spline_qdd/spline_qd) the way the MoveJ, MoveL and MoveP branches do.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "SPLINE sits in the Motion...
null
UniversalRobots__Universal_Robots_Client_Library__307
UniversalRobots/Universal_Robots_Client_Library
307
defect
daed2434827febccc9830d914faf36027518bb65
7e3c4f0dd2467a4d736088ad22cd088a31c33e32
Fix naming issues
This fixes #297. Merging this PR will be breaking public API and will therefore require a major bump. It has still to be decided how big of a change we want to do with that. We have been a bit inconsistent in the past when it comes to naming public members. While the changes in 71bab65250477a09a79bf112d860e14...
diff --git a/.clang-tidy b/.clang-tidy index d935e37ea..12b8494a4 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -3,6 +3,7 @@ CheckOptions: - { key: readability-identifier-naming.NamespaceCase, value: lower_case } - { key: readability-identifier-naming.ClassCase, value: CamelCase } - { key: r...
2
2
2
[{"id": "G0", "claim": "The ExampleRobotWrapper member variables should be made private and accessed through getter functions instead of being public.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "RobotReceiveTimeout's timeout member should be made priv...
null
UniversalRobots__Universal_Robots_Client_Library__318
UniversalRobots/Universal_Robots_Client_Library
318
defect
a55257d7d9ec19bb3721287210cc5fa8b2da3b02
2bb37c2af88be94a0ddfaebbfd8f26b2a3fd5b1b
Allow an empty input recipe to the RTDE client
This PR aims at providing the option to use an RTDE client READ-ONLY by providing an empty input recipe. At this stage it is only an attempt to play around with that possibility, implementation details may change significantly.
diff --git a/doc/architecture/rtde_client.rst b/doc/architecture/rtde_client.rst index c5ebce502..497906471 100644 --- a/doc/architecture/rtde_client.rst +++ b/doc/architecture/rtde_client.rst @@ -11,7 +11,7 @@ client. To use the RTDE-Client, you'll have to initialize and start it separatel .. code-block:: c++ - ...
2
1
0
[{"id": "G0", "claim": "recipe_id_ should be initialized in the RTDEWriter constructor instead of using a default member initializer.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "A test should also be added that uses an empty input recipe file, since t...
null
UniversalRobots__Universal_Robots_Client_Library__336
UniversalRobots/Universal_Robots_Client_Library
336
defect
ba430ab4bccd017f8bf9c9cb9b6e3b0a90446a2c
72a5ed5fdb933901376684804fbf5c1a1e1c0d01
Added two new control modes PD controller in joint space and PD contr…
…oller in task space The pd controller in joint space will accept joint targets and compute joint torques based on PD control scheme. The pd controller in task space will accept task space targets and use inverse kinematics to compute joint targets which are then used to compute joint torques based on PD control ...
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index e27ea26d8..f13be169a 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -55,3 +55,7 @@ target_link_libraries(trajectory_point_interface_example ur_client_library::urcl add_executable(instruction_executor instruction_executor.cpp) ...
2
2
0
[{"id": "G0", "claim": "The default-case warning messages should report the robot type via robotTypeString(robot_type) instead of static_cast<int>(robot_type).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The clamp_array function could be simp...
null
UniversalRobots__Universal_Robots_Client_Library__343
UniversalRobots/Universal_Robots_Client_Library
343
defect
4118cfdbeb8f807c945c9886fdd7f498073b70d9
60e3c2b3fa2cb88b61207ddb979f46f717bb7b55
Add ScriptReader for script template parsing
This PR adds a script parser that extends the templating capabilities when loading script code. In particular that allows - Variable substitution (exists already, but this was refactored) - Conditionals - Includes With this we can add script code that only compiles on later software versions only if the requir...
diff --git a/CMakeLists.txt b/CMakeLists.txt index a2366ac98..515295fc4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,6 +18,7 @@ add_library(urcl src/comm/tcp_socket.cpp src/comm/tcp_server.cpp src/control/reverse_interface.cpp + src/control/script_reader.cpp src/control/script_sender.c...
16
11
2
[{"id": "G0", "claim": "Remove the redundant second std::ifstream constructed on the same file inside readFileContent.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a named constant for the 0.0001 epsilon used in the bool/double equality co...
null
UniversalRobots__Universal_Robots_Client_Library__354
UniversalRobots/Universal_Robots_Client_Library
354
defect
b4c6c8f27daf287a8689ce88cfced1d21f1a79a9
eb0ae0582aaa03055b1cfee1467dc403c6f72695
Support optimove motions in InstructionExecutor
Add support for `optimovej` and `optimovel` in the `InstructionExecutor`.
diff --git a/CMakeLists.txt b/CMakeLists.txt index a6aeebdfb..d26182de8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,6 +17,7 @@ endif() add_library(urcl src/comm/tcp_socket.cpp src/comm/tcp_server.cpp + src/control/motion_primitives.cpp src/control/reverse_interface.cpp src/control/sc...
3
3
0
[{"id": "G0", "claim": "The example documentation should say 'time-based execution' instead of 'time-based execution speed'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "For consistency, the validate() declaration in OptimoveJPrimitive should be...
null
UniversalRobots__Universal_Robots_Client_Library__381
UniversalRobots/Universal_Robots_Client_Library
381
defect
3b6361085edfe240c2c34eab022a92255b963e24
f8107710b1f831104fd038c03100b0ca66c0a19a
Direct torque control
This branch adds direct torque control to the client library. This is a sub-feature of the torque_control branch, basically not including the impedance-like PD controller. This PR adds the functionality to command the robot by sending joint torques directly.
diff --git a/README.md b/README.md index 5690f090b..e729954e6 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,8 @@ The library has no external dependencies besides the standard C++ libraries such to make it easy to integrate and maintain. It also serves as the foundation for the ROS and ROS 2 drivers. +--- + <!-...
5
5
2
[{"id": "G0", "claim": "The added note in the reverse interface documentation misspells \"torques\" as \"tprques\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The version check in setFrictionCompensation still uses \"5.22.0\" with a ToDo to in...
null
UniversalRobots__Universal_Robots_Client_Library__384
UniversalRobots/Universal_Robots_Client_Library
384
defect
269b377e9707b2948d5101a405b50a82182fb60a
174955d388dd60c4f47df7d072b44a684ffa95f9
Fixed auto reconnection to the RTDE server.
When reconnecting to RTDE it requires you to set the input and output recipes again, this is now done properly.
diff --git a/include/ur_client_library/comm/pipeline.h b/include/ur_client_library/comm/pipeline.h index f18f17410..5e77ff2ac 100644 --- a/include/ur_client_library/comm/pipeline.h +++ b/include/ur_client_library/comm/pipeline.h @@ -299,6 +299,7 @@ class Pipeline , queue_{ 32 } , running_{ false } , prod...
8
8
2
[{"id": "G0", "claim": "The new threads_stopped_ guard in Pipeline::stop() seems almost redundant with running_, and stop() should instead always make the necessary calls (stopping the producer and joining the threads), with only the notifier/log done once.", "category": "design", "verdict": "supported", "priority": "P...
null
UniversalRobots__Universal_Robots_Client_Library__388
UniversalRobots/Universal_Robots_Client_Library
388
defect
269b377e9707b2948d5101a405b50a82182fb60a
ba7be1a4f851bfb5ff76a3e4b5b45379629517e0
Rtde external ft
Add support for sending external force-torque measurements through RTDE. This can be especially useful if you want to inject fake measurements into a URSim simulated robot. There's also an example with a simple TUI doing exactly that.
diff --git a/doc/examples.rst b/doc/examples.rst index ad4f6ac60..dd90634c9 100644 --- a/doc/examples.rst +++ b/doc/examples.rst @@ -23,6 +23,7 @@ may be running forever until manually stopped. examples/primary_pipeline examples/primary_pipeline_calibration examples/rtde_client + examples/external_fts_thr...
5
4
0
[{"id": "G0", "claim": "The example documentation should tell the reader to align the TCP frame with the robot's base frame so that reported values match the ones sent.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The instructions string should ...
null
UniversalRobots__Universal_Robots_Client_Library__389
UniversalRobots/Universal_Robots_Client_Library
389
defect
13cead22e7c9460677c73d77b1a79709738bee4e
4615f6c52c8152e93e1d35e8e226cdc663a9ac2b
Refactor Rtde client test
The exhaustive rtde output recipe is now generated at build time, and the test will fail if the controller does not know all fields. The test will also fail if using the wrong ursim version
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dc089d329..0add63eea 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -52,6 +52,8 @@ jobs: run: mkdir -p test_artifacts - name: test run: cd build && ctest --output-on-failure --output-junit junit.xml ...
2
2
0
[{"id": "G0", "claim": "The test should query all possible fields from the official RTDE guide docs so that it fails if a new field is forgotten in the library.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new file tests/resources/generate_rtde_ou...
null
UniversalRobots__Universal_Robots_Client_Library__408
UniversalRobots/Universal_Robots_Client_Library
408
defect
1d785d94f94359184585091d49a37cc87c917e4d
58a35fea8a14f79e78dbe5a28ec990e140aea01d
Added support for std::vector strings in UrDriver
Since it is a functionality allowed by the RTDEClient, seems reasonable to also add it to the UrDriver.
diff --git a/examples/direct_torque_control.cpp b/examples/direct_torque_control.cpp index f8c789e9b..da7a139ed 100644 --- a/examples/direct_torque_control.cpp +++ b/examples/direct_torque_control.cpp @@ -30,6 +30,7 @@ #include <ur_client_library/example_robot_wrapper.h> #include <cstddef> +#include <vector> // ...
7
6
5
[{"id": "G0", "claim": "The new recipe file/vector functionality needs tests in the UrDriver test suite covering the different permutations (no recipe, missing file, files only, vectors only, both given) and checking the expected success/error.", "category": "testing", "verdict": "supported", "priority": "P1", "scope":...
null
UniversalRobots__Universal_Robots_Client_Library__430
UniversalRobots/Universal_Robots_Client_Library
430
defect
7ad9d2040af54e74eb350438d5a43820d264586b
5237abb3f2c45fb2fe9771a9e41ac97fcbee7cfd
Fix ReverseInterfaceTest.handle_program_state
Attempting to fix thread synchronization. I'm not entirely sure that that's the problem as I cannot reprocude things locally and the output suggests that there's a client connecting twice, but it's something that could be fixed. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Test-only synchronization changes;...
diff --git a/tests/test_reverse_interface.cpp b/tests/test_reverse_interface.cpp index a365b6dd8..b24070314 100644 --- a/tests/test_reverse_interface.cpp +++ b/tests/test_reverse_interface.cpp @@ -202,19 +202,36 @@ class ReverseIntefaceTest : public ::testing::Test void handleProgramState(bool program_state) { ...
1
1
1
[{"id": "G0", "claim": "A race between the early unlocked read of program_state_ and the while-loop condition can skip the loop and make waitForProgramState return false even though the expected program state has been reached.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}...
null
UniversalRobots__Universal_Robots_Client_Library__440
UniversalRobots/Universal_Robots_Client_Library
440
defect
08c33c3c118183c578f8e97bdc93acdc0e610e8c
9a7c87345d5b7ffb5eb3a4fc64f5b1cca70882c5
If no new commands are received, halt
Currently, we only exit the main loop when no new command is received anymore (already taking any configured receive timeout into account). However, if we don't receive a new command anymore, that should always be considered an unintentional interruption of the control flow. In that case, we should stop program exec...
diff --git a/resources/external_control.urscript b/resources/external_control.urscript index c4ef62c23..929310e1e 100644 --- a/resources/external_control.urscript +++ b/resources/external_control.urscript @@ -936,7 +936,8 @@ while control_mode > MODE_STOPPED: end else: textmsg("Socket timed out waiting for...
1
1
1
[{"id": "G0", "claim": "The pull request should add a test covering the new halt-on-communication-loss behavior in the external control script.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
UniversalRobots__Universal_Robots_Client_Library__442
UniversalRobots/Universal_Robots_Client_Library
442
defect
542731ab3bd4d0e06ab7b91fc733ec36cb5af150
8af9e9f60b35bd494dcc96852fab577224ed4832
Rename endian.h to portable_endian.h
This change renames the endian.h file to portable_endian.h to avoid conflicts caused by circular includes. The third-party endian.h file includes the system's endian.h, which can lead to circular imports due to overlapping filenames. By renaming the file, we eliminate this issue and ensure compatibility in the CMake bu...
diff --git a/.github/workflows/mac-build.yml b/.github/workflows/mac-build.yml new file mode 100644 index 000000000..b854f4abe --- /dev/null +++ b/.github/workflows/mac-build.yml @@ -0,0 +1,30 @@ +name: macOS build and tests +on: + workflow_dispatch: + pull_request: + push: + branches: + - master + +jobs: + ...
7
6
2
[{"id": "G0", "claim": "The new macOS build workflow does not run on a schedule, unlike the other CI workflows, and a nightly trigger should be added to it (and to win-build.yml).", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reworked portable_endi...
null
UniversalRobots__Universal_Robots_Client_Library__444
UniversalRobots/Universal_Robots_Client_Library
444
defect
50212c2ec32c1d2211ae9771b90d8a5a19580cf0
731874f9f7eac24d6aae12a5e3abaf1c95fd2177
Added ScriptCommandInterface command setTcpOffset
simply calls the urscript command set_tcp() <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > Adds a new control-plane command that changes the robot TCP configuration at runtime; incorrect offsets or misuse could impact motion accuracy. Changes are otherwise small and covered by new unit/integration tests. >...
diff --git a/include/ur_client_library/control/script_command_interface.h b/include/ur_client_library/control/script_command_interface.h index d2d6fe191..43d2f74d5 100644 --- a/include/ur_client_library/control/script_command_interface.h +++ b/include/ur_client_library/control/script_command_interface.h @@ -167,6 +167,...
3
1
0
[{"id": "G0", "claim": "The \\param offset doc line should say the offset is [x, y, z, rx, ry, rz] given in the flange coordinate system.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In test_set_tcp_offset, the default-constructed received_tcp_o...
null
UniversalRobots__Universal_Robots_Client_Library__445
UniversalRobots/Universal_Robots_Client_Library
445
defect
7b57b661654acfb3d19f4820034fabb39b583c04
867b9d07aab4638c570da12152bccb0f518d4f04
Direct torque friction scales support
### Summary This pull request introduces enhancements to the **Direct Torque Control (DTC)** arguments, enabling improved adjustments to the friction model's contribution. Additionally, the friction model itself has been **significantly improved**, resulting in better performance. ### Key Updates - **Direct Torque...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a02297cd1..fd51dba12 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -127,6 +127,14 @@ jobs: path: test_artifacts if-no-files-found: error retention-days: 10 + - name: Upload generated sc...
14
13
1
[{"id": "G0", "claim": "The added version-check comment in the direct torque example should read \"This example requires Software version 5.25.1 / 10.12.1 or higher.\"", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new version check in direct_...
null
UniversalRobots__Universal_Robots_Client_Library__46
UniversalRobots/Universal_Robots_Client_Library
46
defect
4a3667f423f54f585923f799f5a832df03fb7b9d
8b1909ae24545b01c55acb140858cae46aecb003
TCP server implementation
This implements an event-based tcp server for easier use. This could be a solution for #45 In this commit I only implemented it for the ScriptSender, but it could also be used (probably with modifications) inside the ReverseInterface.
diff --git a/CMakeLists.txt b/CMakeLists.txt index 66f0307a3..d3cb36df3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,7 +18,7 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pedantic") add_library(urcl SHARED src/comm/tcp_socket.cpp - src/comm/server.cpp + src/comm/tcp_server.cpp src/prim...
9
8
3
[{"id": "G0", "claim": "Stopping the ROS driver with CTRL-C overflows the RTDE pipeline producer because the RTDEClient destructor never stops the pipeline; adding pipeline_.stop() in ~RTDEClient should fix it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1",...
null
UniversalRobots__Universal_Robots_Client_Library__480
UniversalRobots/Universal_Robots_Client_Library
480
defect
343e5ca02d73c95ebe312c9687b943831e57bfc3
a766e053301798d7ef7a149be2e8cd6eeb1a19d8
Add parsing of safety mode messages to the primary interface
This is necessary to implement script execution feedback in the the primary interface.
diff --git a/CMakeLists.txt b/CMakeLists.txt index 988823f4f..1226dfc30 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,6 +33,7 @@ add_library(urcl src/primary/robot_message/runtime_exception_message.cpp src/primary/robot_message/text_message.cpp src/primary/robot_message/version_message.cpp + ...
1
1
1
[{"id": "G0", "claim": "A test should be added for the string representation of safety mode messages, especially because the formatting differs depending on the report data type; the same binary report data could be reused while asserting it is formatted correctly for each report_data_type.", "category": "testing", "ve...
null
UniversalRobots__Universal_Robots_Client_Library__98
UniversalRobots/Universal_Robots_Client_Library
98
defect
8f20b42205f645bba406d5cf3b1163ea0a42fbc9
a22fb95d0ab4dcb4af7b75d0be3e512bd7a5b66e
Support starting the driver, before the robot is booted
Refactored client library to support starting the client, before the robot is booted. Changed producer to wait until robot is reachable on configured IP, instead of throwing an exception. This will fix issue #94.
diff --git a/.gitignore b/.gitignore index 820cab772..32f3e4f11 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,5 @@ install_manifest.txt *~ .idea .directory -.vscode \ No newline at end of file +.vscode +build/ \ No newline at end of file diff --git a/include/ur_client_library/comm/producer.h b/include/ur_clien...
5
5
1
[{"id": "G0", "claim": "Rename the pull request's new snake_case methods send_start, send_pause and IsRobotBooted to camelCase sendStart, sendPause and isRobotBooted, in both the header and the implementation, to match the project's naming style.", "category": "maintainability", "verdict": "supported", "priority": "P2"...
null
UniversalRobots__Universal_Robots_ROS2_Driver__1704
UniversalRobots/Universal_Robots_ROS2_Driver
1,704
defect
9aff85af599c2361a8ee57cb2c5e6e02b0f1ce5a
461088064d28dcb3811805ba01234bf55b746e44
Friction model controller
Adds a friction model controller to control the viscous and coulomb parameters used with the direct_torque effort interface.
diff --git a/ur_controllers/CMakeLists.txt b/ur_controllers/CMakeLists.txt index 16f07953d..03665ef69 100644 --- a/ur_controllers/CMakeLists.txt +++ b/ur_controllers/CMakeLists.txt @@ -62,6 +62,11 @@ generate_parameter_library( src/force_mode_controller_parameters.yaml ) +generate_parameter_library( + friction_m...
5
5
1
[{"id": "G0", "claim": "The exception handler in on_init should log through RCLCPP_ERROR with the node logger instead of writing to stderr with fprintf.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A comment noting that the command interface order...
null
UniversalRobots__Universal_Robots_ROS2_Driver__451
UniversalRobots/Universal_Robots_ROS2_Driver
451
defect
69c2030fe88861039826f838aeca0ffc03b5a303
6df93d116d907750362281dd0c289bd308a837b1
Add ur_calibration package
Closes #384
diff --git a/README.md b/README.md index ad8c47c47..d885ed425 100644 --- a/README.md +++ b/README.md @@ -132,6 +132,7 @@ The driver is compatible across the entire line of UR robots -- from 3 kg payloa ## Packages in the Repository: - `ur_bringup` - launch file and run-time configurations, e.g. controllers. + - ...
3
3
2
[{"id": "G0", "claim": "The README launch example should read calibration_correction.launch.py instead of calibration_correction.py.launch.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The second README launch example should read calibration_cor...
null
Unleash__unleash-go-sdk__116
Unleash/unleash-go-sdk
116
defect
2aa51a8aed104f3832b3a90c0e4db7b3e29c9267
d43bbc262dcd53033fef2b5281866cfbae0a9a25
Feat/global segments
This PR will implement global segments as a part of performance optimizations related to segment use. This will ensure that segments are sent as part of the payload from the client API, parsed correctly into a map on the SDK side and combined with the regular strategy constraints. Fixes #115
diff --git a/api/feature.go b/api/feature.go index 6d991f2..8d5713b 100644 --- a/api/feature.go +++ b/api/feature.go @@ -15,6 +15,12 @@ type ParameterMap map[string]interface{} type FeatureResponse struct { Response Features []Feature `json:"features"` + Segments []Segment `json:"segments"` +} + +type Segment stru...
3
3
0
[{"id": "G0", "claim": "The segments field added to repositoryOptions is unused and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "resolveSegmentConstraints should return the error as its last return value instead of first.", ...
null
Unleash__unleash-go-sdk__119
Unleash/unleash-go-sdk
119
defect
056d5266a66003712149b67eda2eb4cdf137adf1
f035f98d0b086bbd101d58f93118642d619fd995
#118 Add IsFeatureEnabled function to client
## About the changes This change adds an IsFeatureEnabled function that is a variant of the IsEnabled function but accepts a api.Feature instead of a string for the case where you already have the feature. Closes #118 ## Discussion points I'm not certain on the function name and don't want to cause confusion, b...
diff --git a/client.go b/client.go index dfe693c..ae5408c 100644 --- a/client.go +++ b/client.go @@ -17,7 +17,7 @@ import ( const ( deprecatedSuffix = "/features" clientName = "unleash-client-go" - clientVersion = "3.6.0" + clientVersion = "3.7.0" ) var defaultStrategies = []strategy.Strategy{ @@ -...
1
1
1
[{"id": "G0", "claim": "The PR should add a README section documenting how to use the new resolver functionality.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Unleash__unleash-go-sdk__140
Unleash/unleash-go-sdk
140
defect
88862d88f5813e6869f4790da689a1d492b587a6
b521b275a628101ebe0ee9f12aaef8b2eb155c2d
Feat/dependent feature toggles
Implements dependent feature toggles for the golang-sdk
diff --git a/api/feature.go b/api/feature.go index ccdc700..7f4fff4 100644 --- a/api/feature.go +++ b/api/feature.go @@ -47,8 +47,20 @@ type Feature struct { // Variants is a list of variants of the feature toggle. Variants []VariantInternal `json:"variants"` + + // Dependencies is a list of feature toggle depend...
3
3
0
[{"id": "G0", "claim": "The continue-based control flow in isParentDependencySatisfied should be replaced with negated conditions and early returns, restructured along the lines of the reviewer's sketch using an every helper.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduce...
null
Unleash__unleash-go-sdk__156
Unleash/unleash-go-sdk
156
defect
34874e183f70ea31eb95932f3d49f34e75750366
eace93e9ef227a4f992f97c25a44798c1905af49
feat: obey http status and backoff on 429, 50x
This follows the same pattern as Java and .NET. each 429, 50x error will increment error count, and reset skips to error, then for each trigger reduce skips by 1 until you reach 0, then perform the action again. on success reduce error count by 1 and reset skips to error count. On 401,403,404 will increment skips...
diff --git a/metrics.go b/metrics.go index 04a426a..94eb178 100644 --- a/metrics.go +++ b/metrics.go @@ -5,6 +5,7 @@ import ( "context" "encoding/json" "fmt" + "math" "net/http" "net/url" "sync" @@ -66,6 +67,9 @@ type metrics struct { closed chan struct{} ctx context.Context cancel func() + m...
1
1
0
[{"id": "G0", "claim": "In statusIsOK, repository.go should use the http status helper constants (http.StatusUnauthorized etc.) instead of raw numeric codes, to be consistent with how metrics.go in this pull request names status codes.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": ...
null
Unleash__unleash-go-sdk__171
Unleash/unleash-go-sdk
171
defect
b8e88894e4ac349ab70bad23f0758e61d2b61495
937df2b992ab36dda84b353dc75b76e2b5e6d8f9
fix: variant fallback usage
This PR fixes a bug in how we use fallback variants in this SDK. The fallback should be used when there is no flag, when the flag doesn't have any variants, and if the flag has variants, but is disabled. However, prior to this, it was only used if the flag didn't exist. It addresses the issues in and closes #160....
diff --git a/client.go b/client.go index 0254e72..fd886ae 100644 --- a/client.go +++ b/client.go @@ -416,21 +416,30 @@ func (uc *Client) getVariantWithoutMetrics(feature string, options ...VariantOpt strategyResult, f = uc.isEnabled(feature, WithContext(*ctx)) } - if !strategyResult.Enabled { - return defaultVa...
6
5
1
[{"id": "G0", "claim": "The tests should use the NoopListener instead of a mocked listener unless they explicitly want to test something with the Listener.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The WithVariantFallback/WithVariantFallbac...
null
Unleash__unleash-go-sdk__175
Unleash/unleash-go-sdk
175
defect
620a0dcf327f41737cc2872e636c72ce79e0ccb5
5678649f19016a42bb5983b09ceee60a6a9b4005
feat: New Metrics metadata
is included in client registration and client metrics
diff --git a/client.go b/client.go index f45c385..2500fca 100644 --- a/client.go +++ b/client.go @@ -198,6 +198,7 @@ func NewClient(options ...ConfigOption) (*Client, error) { httpClient: uc.options.httpClient, customHeaders: uc.options.customHeaders, disableMetrics: uc.options.disableMetrics, + s...
3
3
2
[{"id": "G0", "claim": "The metrics metadata the pull request adds is missing `specVersion`, which should be included in client registration and client metrics.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The `started` value should not be exposed...
null
Unleash__unleash-go-sdk__186
Unleash/unleash-go-sdk
186
defect
e1e3ed02740b0ffc85e22d2dd396c57302703be5
0b051cce2cac9dd5bfc025edb4e912d8469a95d9
feat: client identification headers
Identification headers consistent with other Unleash SDKs. > This PR adds standardized client identification headers to the feature and metrics calls that the client makes to Unleash. The headers are: > - `unleash-appname`: the name of the application that is using the client. `UNLEASH-APPNAME` will be deleted in a...
diff --git a/client.go b/client.go index 33f09e0..c34b2aa 100644 --- a/client.go +++ b/client.go @@ -3,6 +3,7 @@ package unleash import ( "fmt" + "net/http" "net/url" "strings" "time" @@ -164,6 +165,14 @@ func NewClient(options ...ConfigOption) (*Client, error) { uc.options.instanceId = generateInstanceId...
3
2
1
[{"id": "G0", "claim": "The new identification headers should be named without the deprecated 'x-' prefix (commit it without 'x-' instead of fixing it later).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "TestGetConnectionId runs its assertions 100 time...
null
Unleash__unleash-go-sdk__194
Unleash/unleash-go-sdk
194
defect
011e85b48c3a4aa3be73c2f517f342865fcefa03
49cb83cdc644c7646f5126b9eaec62d24e38d259
feat: impression data
https://linear.app/unleash/issue/2-3494/go-sdk-impression-event-support Implements impression data in our Go SDK, similar to what we already have for other SDKs. Closes https://github.com/Unleash/unleash-client-go/issues/182
diff --git a/benchmark_test.go b/benchmark_test.go index 672b04d..da8f425 100644 --- a/benchmark_test.go +++ b/benchmark_test.go @@ -9,18 +9,9 @@ import ( "github.com/Unleash/unleash-client-go/v4" ) -type NoOpListener struct{} - -func (l *NoOpListener) OnReady() {} -func (l *NoOpList...
3
3
1
[{"id": "G0", "claim": "In IsEnabled and GetVariant the impression event is sent directly to the impressionListener rather than dispatched via the impression channel; consider sending it to the channel to ensure a uniform asynchronous processing model.", "category": "design", "verdict": "supported", "priority": "P2", "...
null
Unleash__unleash-go-sdk__199
Unleash/unleash-go-sdk
199
defect
56becfa4f77303048f3a44c2c3646ed5ee6a27b7
490501abaa16e9dcf1bea9edc6622bcfb8721b72
chore: change repo references and add banner
## About the changes Change refernces to the new repo url and update herokuapp examples with demo app examples in v4 branch
diff --git a/README.md b/README.md index 259564d..330d955 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,18 @@ -[![Build Status](https://github.com/Unleash/unleash-client-go/actions/workflows/build.yml/badge.svg)](https://github.com/Unleash/unleash-client-go/actions/workflows/build.yml) [![GoDoc](https://pkg.go.dev...
5
5
1
[{"id": "G0", "claim": "The new version banner should state the v5 module name (unleash-go-sdk/v5) instead of v4, and add a comma after \"module name change\".", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The Unleash platform description paragra...
null
Unleash__unleash-go-sdk__210
Unleash/unleash-go-sdk
210
defect
40bd14135f7339a5284a1db75bf6aa387929553b
e3e3fa72174a49a3425665077ff099e457288ead
fix: makes the storage layer return pointers
The storage layer now returns pointers to the underlying data, rather than values. This fixes some aggressive GC thrashing that occurred on every feature evaluation when under load
diff --git a/api/feature.go b/api/feature.go index 6a4dce4..69425c6 100644 --- a/api/feature.go +++ b/api/feature.go @@ -67,10 +67,11 @@ type Dependency struct { Enabled *bool `json:"enabled"` } -func (fr FeatureResponse) FeatureMap() map[string]interface{} { - features := map[string]interface{}{} +func (fr Featur...
1
1
1
[{"id": "G0", "claim": "The pull request's API changes are breaking and cannot be merged into the current v5 branch; it needs to target v6 instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Unleash__unleash-go-sdk__213
Unleash/unleash-go-sdk
213
defect
40bd14135f7339a5284a1db75bf6aa387929553b
2cf51a1601867492b0c3f5db3076cae3585d81c2
chore: use less locking in metrics hot paths
Yeets the locking in the metrics code in favor of sync primitives. Fixes a bug in the re-insertion code since I was in that space. Variants are still behind a mutex but that mutex is now smaller scoped and locked less often. We can probably remove that too but its a bigger PR and I want to keep this focused on the hot ...
diff --git a/api/delta.go b/api/delta.go index 7d214116..70027466 100644 --- a/api/delta.go +++ b/api/delta.go @@ -135,4 +135,4 @@ func ParseDelta(data []byte) (*ClientFeaturesDelta, error) { return nil, fmt.Errorf("failed to parse delta: %w", err) } return &delta, nil -} \ No newline at end of file +} diff --gi...
4
4
0
[{"id": "G0", "claim": "The field `last_close_time` (and its use in `newMetrics`) should be renamed to `lastCloseTime` to respect Go's camelCase naming convention.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The local variable `tc` in `buildB...
null
Unleash__unleash-go-sdk__225
Unleash/unleash-go-sdk
225
defect
9fcad6a36710a39d9f0a32056482617357c07d1f
1b8799dd353830cbd614536c229522f45de63eff
feat: impact metrics counter
<!-- Thanks for creating a PR! To make it easier for reviewers and everyone else to understand what your changes relate to, please add some relevant content to the headings below. Feel free to ignore or delete sections that you don't think are relevant. Thank you! ❤️ --> ## About the changes Porting counter imple...
diff --git a/impactmetrics/metric_types.go b/impactmetrics/metric_types.go index 2aa3583..bf0ed54 100644 --- a/impactmetrics/metric_types.go +++ b/impactmetrics/metric_types.go @@ -3,6 +3,7 @@ package impactmetrics import ( "sort" "strings" + "sync" ) type MetricLabels map[string]string @@ -53,3 +54,131 @@ fun...
6
4
2
[{"id": "G0", "claim": "The counter and registry keep insertion-order key lists (mirroring Node's ordering) and sighphyre questions whether that is a requirement at all rather than a test-only detail baked into prod code.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "...
null
Unleash__unleash-go-sdk__227
Unleash/unleash-go-sdk
227
defect
fffeb7009137008ed081f779123b4a0c53361640
88148447fd4d2f24d6f73fb96aef410d9627867d
feat: impact metrics histogram
<!-- Thanks for creating a PR! To make it easier for reviewers and everyone else to understand what your changes relate to, please add some relevant content to the headings below. Feel free to ignore or delete sections that you don't think are relevant. Thank you! ❤️ --> ## About the changes Adding last metric ty...
diff --git a/internal/impactmetrics/metric_types.go b/internal/impactmetrics/metric_types.go index f63d017..2d5fcc2 100644 --- a/internal/impactmetrics/metric_types.go +++ b/internal/impactmetrics/metric_types.go @@ -23,6 +23,18 @@ type GaugeMetricSample struct { Value float64 `json:"value"` } +type BucketEn...
3
3
0
[{"id": "G0", "claim": "The interface{}-typed BucketEntry.Le with the bucketLeToFloat cast in the heart of the system makes the code harder to reason about; the reviewer would rather the conversion happen just prior to sending (or use a proper tagged type), or failing that, have failable helpers return errors.", "categ...
null
Unleash__unleash-go-sdk__229
Unleash/unleash-go-sdk
229
defect
05d7a016a6d5441cc0389a1a4e2ad8f3e116a33e
4fcfc7f02761469c00aeace263cef8b0c4fa6c5e
feat: impact metrics api
<!-- Thanks for creating a PR! To make it easier for reviewers and everyone else to understand what your changes relate to, please add some relevant content to the headings below. Feel free to ignore or delete sections that you don't think are relevant. Thank you! ❤️ --> ## About the changes Wrapping all 3 metric...
diff --git a/internal/impactmetrics/metrics_api.go b/internal/impactmetrics/metrics_api.go new file mode 100644 index 0000000..8ee0be6 --- /dev/null +++ b/internal/impactmetrics/metrics_api.go @@ -0,0 +1,82 @@ +package impactmetrics + +import "fmt" + +type MetricsAPI struct { + metricRegistry *InMemoryMetricRegistry + ...
3
3
2
[{"id": "G0", "claim": "sendWarning's non-blocking send silently drops errors and warnings if the consumer is not reading fast enough, and until the cutover the guarantees should be the same as when the channel is consumed elsewhere.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "intro...
null
Unleash__unleash-go-sdk__254
Unleash/unleash-go-sdk
254
defect
16fbaae1c0973e5356be98e345be42439e6eb249
d5c17abef98ea781af22e1edf812e445b276cbcc
feat: introduce adaptiveFetcher so we can include failover in streaming
Basic adaptive fetcher implementation that should allow us to do streaming failover. Not wired up, that's done in #255. Go's per-emptive concurrency model makes synchronizing this correctly with stop/start a huge pain in the butt so I've chosen to keep this internal only - you make an adaptiveFetcher and it does it'...
diff --git a/adaptive_fetcher.go b/adaptive_fetcher.go new file mode 100644 index 0000000..0810509 --- /dev/null +++ b/adaptive_fetcher.go @@ -0,0 +1,151 @@ +package unleash + +import ( + "context" + "sync" + "sync/atomic" +) + +// This exists purely because atomics must contain a single concrete type +// we want to be...
1
1
1
[{"id": "G0", "claim": "cutover() swaps to the new polling fetcher before that fetcher is ready, so between failover and polling readiness a flag evaluation may default to disabled — a potential race the reviewers say should be delayed until the next fetcher signals readiness.", "category": "correctness", "verdict": "s...
null
Unleash__unleash-go-sdk__262
Unleash/unleash-go-sdk
262
defect
50174611e078092fb49fc75a3104bfc485a43917
f40b5ba81078148bfd166ebcdd34c650b0420c60
feat: restart poisoned streams instead of leaving corrupted state
This terminates a stream and restarts it in the case of poisoned events. In theory this should never happen, however, if for some reason the SDK receives a domain event it cannot process then continuing on is not safe - a rehydration from scratch is necessary to maintain data integrity
diff --git a/streaming_fetcher.go b/streaming_fetcher.go index eecc79f..9fcdf18 100644 --- a/streaming_fetcher.go +++ b/streaming_fetcher.go @@ -14,17 +14,24 @@ import ( type streamingFetcher struct { fetcherChannels - url string - appName string - instanceId string - httpClient *http...
1
1
0
[{"id": "G0", "claim": "stop() should release streamMu with defer so the mutex is not left locked if streamCancel() fails.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Unleash__unleash-go-sdk__263
Unleash/unleash-go-sdk
263
defect
50174611e078092fb49fc75a3104bfc485a43917
563348bbfec36c779a5ac9a9c4d199e3211c974a
Feat/ready event on cutover
Improves the adaptive fetcher cutover flow. The SDK now only cuts over to the next fetcher once that fetcher has signaled that its ready - in practice that it's been able to hydrate from Unleash
diff --git a/adaptive_fetcher.go b/adaptive_fetcher.go index 5786832..7f86050 100644 --- a/adaptive_fetcher.go +++ b/adaptive_fetcher.go @@ -32,6 +32,7 @@ func defaultFetcherFactory() fetcherFactory { type adaptiveFetcher struct { currentFetcher atomic.Pointer[fetchContainer] + pendingFetcher toggler...
3
2
0
[{"id": "G0", "claim": "Guarding with pendingFetcher is ambiguous; cutoverFetcher inside the cutover function would more clearly signify that the cutover was already set.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new test TestAdaptiveFetcher_Cut...
null
Unleash__unleash-go-sdk__264
Unleash/unleash-go-sdk
264
defect
672e66225c421074eed2e927ef373d7c0e4af2f7
3f3294a36003d39c10fff1fc97746f7eb3133d06
fix: broken events now correctly fail instead of silently continuing
This forces events that are corrupted to correctly fail in the delta parse code. Corrupted means one of the following is true: - The SSE envelope is valid but the content is not valid JSON - The SSE envelope is valid and the outer contents are valid JSON but the inner packet of the event data is not valid JSON - T...
diff --git a/api/delta.go b/api/delta.go index 3e548e7..25028a0 100644 --- a/api/delta.go +++ b/api/delta.go @@ -9,60 +9,83 @@ type ClientFeaturesDelta struct { Events []DeltaEvent `json:"events"` } +type DeltaState struct { + Features map[string]*Feature + Segments map[int][]Constraint +} + type DeltaEvent inter...
3
2
0
[{"id": "G0", "claim": "For FeatureUpdatedEvent.Apply storing into state.Features by name, the reviewer asks what happens when the feature name is new, i.e. whether the size of state.Features needs to be adapted.", "category": "correctness", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1",...
null
Unleash__unleash-go-sdk__56
Unleash/unleash-go-sdk
56
defect
be2a6eb93b7fef127f90b77a344e9e8ad29622d0
8a9dae6f6a982c1dcf565ca733a098287047370d
Implement support for FlexibleRolloutStrategy and Constraints
This PR implements the new FlexibleRolloutStrategy and also adds support for Constraints. The PR still needs a few more things before it is considered finished: - [x] Waiting on #53 to be merged so this branch can be rebased on top - [ ] Unit tests for FlexibleRolloutStrategy - [x] Waiting for https://github.com/U...
diff --git a/client.go b/client.go index c490a57..e1de5fa 100644 --- a/client.go +++ b/client.go @@ -2,6 +2,8 @@ package unleash import ( "fmt" + "github.com/Unleash/unleash-client-go/v3/context" + "github.com/Unleash/unleash-client-go/v3/internal/constraints" "net/url" "strings" "time" @@ -24,6 +26,7 @@ var...
3
3
2
[{"id": "G0", "claim": "The RNG seeded only with time.Now().Unix() risks several application instances getting the same seed when restarted around the same time, and should instead be seeded like time.Now().UnixNano() + int64(os.Getpid()) or from crypto/rand.", "category": "correctness", "verdict": "supported", "priori...
null
Unleash__unleash-go-sdk__62
Unleash/unleash-go-sdk
62
defect
1a4683a5fd4079d0c102f3bac50d121d42ad5ae0
5cae799e0ff8b601dbe4bd43d03c224d9af63979
Add a fallback function option to IsEnabled
This allows users to specify a dynamic fallback instead of falling back to a fixed boolean value. Fixes #60 TODO: - [x] Unit tests
diff --git a/client.go b/client.go index 39fc9b3..ef531c5 100644 --- a/client.go +++ b/client.go @@ -254,7 +254,9 @@ func (uc Client) IsEnabled(feature string, options ...FeatureOption) (enabled bo } if f == nil { - if opts.fallback != nil { + if opts.fallbackFunc != nil { + return opts.fallbackFunc(feature, ...
2
1
0
[{"id": "G0", "claim": "Add a note to README.md explaining how to use the new fallback function option.", "category": "documentation", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Fix the grammar typo in the FallbackFunc doc comment: \"if not found\" should read \"is not found\...
null
Unleash__unleash__10714
Unleash/unleash
10,714
defect
b409cc8034bc13c319c0714956a9a7adc8aa0ef0
ee8b0f24c0ffc841efd5dffcb7ac66eaa3b5bfb5
chore(AI): etagVariant flag cleanup
This PR cleans up the etagVariant flag. These changes were automatically generated by AI and should be reviewed carefully. Fixes #10711 ## 🧹 AI Flag Cleanup Summary ...
diff --git a/src/lib/features/client-feature-toggles/client-feature-toggle.controller.ts b/src/lib/features/client-feature-toggles/client-feature-toggle.controller.ts index 72126845b5..d655773447 100644 --- a/src/lib/features/client-feature-toggles/client-feature-toggle.controller.ts +++ b/src/lib/features/client-featu...
1
1
1
[{"id": "G0", "claim": "The hardcoded ETag version suffix should be ':v1', the value the etagVariant flag currently serves, rather than ':v2', both in the controller and in the e2e test expectations, otherwise every client's cached ETag is invalidated and a massive wave of incoming requests follows.", "category": "corr...
null
Unleash__unleash__10850
Unleash/unleash
10,850
defect
e9d2b30603681586c7875cc0a71ee6e748e707c5
a0ac6502fad34db2cfce222fc1ebf5d44e0ef445
feat: include readiness check option
## About the changes This introduces a new endpoint to allow users to check for readiness of Unleash to serve traffic, in particular validating that the DB is up. It's an opt-in feature that has to be enabled with the environment variable `CHECK_DB_ON_READY=true` or via the configuration option `checkDbOnReady`. Cl...
diff --git a/src/lib/__snapshots__/create-config.test.ts.snap b/src/lib/__snapshots__/create-config.test.ts.snap index fe6bece2cb..b407729b53 100644 --- a/src/lib/__snapshots__/create-config.test.ts.snap +++ b/src/lib/__snapshots__/create-config.test.ts.snap @@ -24,6 +24,7 @@ exports[`should create default config 1`] =...
5
4
1
[{"id": "G0", "claim": "The checkDbOnReady option/env resolution in createConfig should use nullish coalescing instead of the typeof-boolean conditional.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new readiness endpoint should also have a test as...
null
Unleash__unleash__11282
Unleash/unleash
11,282
defect
120f50bcd0e939699162d572c975974a57ea7cfc
662ad5d8873ad3367c50e8d50f5b53baf5b536b1
fix: 304 updates when non-environment events change a flag
## About the changes This PR fixes a regression introduced in **v7.2** where **non-environment changes** that still affect the **environment-scoped feature payload** were not propagated to polling clients. In v7.2, the revision / ETag calculation was tightened to be environment-aware. However, some changes that a...
diff --git a/src/lib/features/client-feature-toggles/tests/__snapshots__/client-feature-toggles.e2e.test.ts.snap b/src/lib/features/client-feature-toggles/tests/__snapshots__/client-feature-toggles.e2e.test.ts.snap index f973af5635..26fc5fb716 100644 --- a/src/lib/features/client-feature-toggles/tests/__snapshots__/cli...
7
6
2
[{"id": "G0", "claim": "The added orWhereNull('environment') is not grouped with the environment filter, so the generated SQL becomes roughly (feature_name IS NOT NULL AND type NOT IN (...) AND type NOT LIKE 'change-%' AND environment = ?) OR environment IS NULL, meaning any event with environment IS NULL (including ch...
null
Unleash__unleash__11502
Unleash/unleash
11,502
defect
b487d196f37b64b9e3ba81f73540b2640a57458a
a3e758248dda91a62de1520efcfaed7ec43831d5
chore: Making cypress tests a little faster and documenting speed tradeoffs
# Before ## Enterprise yarn e2e:enterprise 12.06s user 4.31s system 27% cpu 59.897 total yarn e2e:enterprise 13.33s user 4.64s system 30% cpu 59.711 total yarn e2e:enterprise 12.82s user 4.61s system 30% cpu 58.065 total # After yarn e2e:enterprise 8.57s user 2.48s system 27% cpu 39.579 total yarn ...
diff --git a/frontend/README.md b/frontend/README.md index c8e40a0a03..b142cefe7a 100644 --- a/frontend/README.md +++ b/frontend/README.md @@ -25,12 +25,12 @@ yarn run start:sandbox ## Running end-to-end tests againts localhost If you need to test against patches against a local server instance, -you'll need to ru...
7
5
0
[{"id": "G0", "claim": "The segments spec's use of .should('be.visible') before typing is redundant because the chained should already waits until timeout, so the arbitrary wait just makes the test slower.", "category": "performance", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim...
null
Unleash__unleash__11509
Unleash/unleash
11,509
defect
5773810283394cc6b628cf7307a65c1782e0ba09
94d2c90d97e6428f614c37f66c5cd353e4dfba7f
refactor: make `name` required in StrategyFormState
- Makes `name` a required field in `StrategyFormState` - Makes parent components use `StrategyFormState` instead of `Partial<IStrategyConfig>` ## About the changes We always have a strategy `name` when opening the strategy form (the strategy type is always already set before opening it), so `name` shouldn't be ...
diff --git a/frontend/src/component/feature/FeatureStrategy/FeatureStrategyForm/FeatureStrategyForm.tsx b/frontend/src/component/feature/FeatureStrategy/FeatureStrategyForm/FeatureStrategyForm.tsx index b77bbda791..7bca285857 100644 --- a/frontend/src/component/feature/FeatureStrategy/FeatureStrategyForm/FeatureStrateg...
3
2
1
[{"id": "G0", "claim": "The non-generic IFeatureStrategyFormProps (strategy: StrategyFormState) leaves lots of errors in the build, so the props should be made generic as suggested (T extends StrategyFormState, strategy: T, setStrategy over T).", "category": "design", "verdict": "supported", "priority": "P0", "scope": ...
null
Unleash__unleash__11523
Unleash/unleash
11,523
defect
c3b10c54234100fe2c2619a399c7731336832256
ff8c87729439001c22345999e33652a410b66c3a
chore: provide an alternative to conditional middleware
## Summary This change introduces a clearer feature-gating API: `requireFeatureEnabled(flagResolver, flagName)` for route-level middleware, and deprecates `conditionalMiddleware` for feature-flag gating. ## Why The previous pattern made feature gating less ergonomic and encouraged custom per-controller middleware func...
diff --git a/src/lib/middleware/conditional-middleware.ts b/src/lib/middleware/conditional-middleware.ts index bbd1ce39a3..acebc43fff 100644 --- a/src/lib/middleware/conditional-middleware.ts +++ b/src/lib/middleware/conditional-middleware.ts @@ -1,5 +1,14 @@ import type { RequestHandler } from 'express'; +import type...
2
2
0
[{"id": "G0", "claim": "conditional-middleware.ts imports IUnleashConfig/IFlagKey from '../server-impl.js', an unusually heavy and indirect dependency for middleware that diverges from the pattern used elsewhere; the types should be imported directly from '../types/...' to reduce coupling and keep type dependencies con...
null
Unleash__unleash__11531
Unleash/unleash
11,531
defect
92be2c7868009ebb56c09cb140eb6cc5dacd23b6
8aaea85628655260a918538c8a6ea9c57466be0c
chore: add trial upsell component and tests for billing page
## About the changes Closes sa-189 ### Important files ## Discussion points ## TRIAL <img width="1332" height="764" alt="Screenshot 2026-03-10 at 13 51 58" src="https://github.com/user-attachments/assets/06eaa750-2d84-4f9d-a65b-1c94f453181b" /> ## Trial Expired <img width="1130" height="710" alt=...
diff --git a/frontend/src/component/admin/billing/Billing.test.tsx b/frontend/src/component/admin/billing/Billing.test.tsx new file mode 100644 index 0000000000..359ebc6e6b --- /dev/null +++ b/frontend/src/component/admin/billing/Billing.test.tsx @@ -0,0 +1,39 @@ +import { render } from 'utils/testRenderer'; +import { ...
5
3
2
[{"id": "G0", "claim": "The ConnectedTrialUpsell wrapper could render before the instance data is there, so instancePrices.payg.seat may not always have a value.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "formatTrialExpiry renders the expiry in th...
null
Unleash__unleash__11582
Unleash/unleash
11,582
defect
15047896312aff4c07c314a828026a461a496ab0
965c8d347c224dc28f508115c4f8daa9295ecde4
feat: feature env safeguards change request
<!-- Thanks for creating a PR! To make it easier for reviewers and everyone else to understand what your changes relate to, please add some relevant content to the headings below. Feel free to ignore or delete sections that you don't think are relevant. Thank you! ❤️ --> ## About the changes <img width="949" height...
diff --git a/frontend/src/component/changeRequest/ChangeRequest/Changes/Change/FeatureChange.tsx b/frontend/src/component/changeRequest/ChangeRequest/Changes/Change/FeatureChange.tsx index 85b1be4f7a..7c045b4fa9 100644 --- a/frontend/src/component/changeRequest/ChangeRequest/Changes/Change/FeatureChange.tsx +++ b/front...
2
1
1
[{"id": "G0", "claim": "DeleteFeatureEnvSafeguard resolves the safeguard from live feature data (safeguards?.[0]) and returns nothing when it is gone, so for Applied/Cancelled change requests it renders a blank entry, and ChangeRequestDeleteFeatureEnvSafeguard has no optional snapshot field to fall back on — it should ...
null
Unleash__unleash__11589
Unleash/unleash
11,589
defect
022954950e36c9e50b2197beee67afb6402dd23c
3ea4387f6b4a388927f486f1a8f4ce974f274ed7
fix: don't delete release plans when env is disabled
Appears to be caused by an FK dependency on feature_environment, which gets deleted when the env is disabled. Now plans should only be deleted if the flag itself is removed. Verified manually. Currently working on a test for it.
diff --git a/src/lib/features/project-environments/project-environments.e2e.test.ts b/src/lib/features/project-environments/project-environments.e2e.test.ts index f7c6173747..7af122ff16 100644 --- a/src/lib/features/project-environments/project-environments.e2e.test.ts +++ b/src/lib/features/project-environments/projec...
2
2
1
[{"id": "G0", "claim": "The three post-delete assertions should be collapsed into a single toMatchObject.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The migration should also add a foreign key on environment (as separate constraints), not on...
null
Unleash__unleash__11592
Unleash/unleash
11,592
defect
656f7336c672b61bb396ca607dc26caaa934a9b4
81bb1909a6245e3d23852283523fc394c37854ce
fix: date-fns v4 compatibility — adapter, peer deps, and minimal test fixes
- [x] Confirm actionable PR comment and affected files - [x] Check recent CI workflow failures on base branch and this branch - [x] Reproduce `frontend` TypeScript compilation failures locally (`yarn run ts:check`) - [x] Apply minimal import/type fixes for date-fns v4 compatibility - [x] Validate with `yarn run ts:chec...
diff --git a/frontend/package.json b/frontend/package.json index 5cbdba124e..b92c547511 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -84,8 +84,8 @@ "css-mediaquery": "^0.1.2", "cypress": "14.1.0", "cypress-vite": "^1.4.0", - "date-fns": "2.30.0", - "date-fns-tz": "^2.0.0", + ...
2
2
1
[{"id": "G0", "claim": "The branch should be reset to origin/main and the work redone so that the pull request contains only the date-fns upgrade plus minimal amendments on the tests, with no other source-code changes.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1"...
null
Unleash__unleash__11619
Unleash/unleash
11,619
defect
74c1d397666b3e3619c97c93a1c77a3fab75d71a
334de9561139482ae600ad1f7a0861b8bea97ff0
fix: clone ssl db config to avoid mutation
## About the changes This change clones the database config before passing it to the migration lock client and to db-migrate. Using Postgres SSL client certificates, and `MIGRATION_LOCK=true` fails because the pg client can mutate the nested ssl config during `connect()`. Since we were reusing the same nested obj...
diff --git a/src/lib/util/clone-db-config.test.ts b/src/lib/util/clone-db-config.test.ts new file mode 100644 index 0000000000..c6da91a9ff --- /dev/null +++ b/src/lib/util/clone-db-config.test.ts @@ -0,0 +1,51 @@ +import type { IDBOption } from '../types/index.js'; +import { cloneDbConfig } from './clone-db-config.js';...
3
1
0
[{"id": "G0", "claim": "cloneSslOptions should return IDBOption['ssl'] instead of manually spelling out the return union (ISSLOption | boolean | undefined), so the type stays in sync with future changes to IDBOption['ssl'].", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"...
null
Unleash__unleash__11633
Unleash/unleash
11,633
defect
b4ee1742e1feab0534dd8cae986b810945473138
ef6d4cea8125fa5b4319888e90f753e9fe318253
feat: support impact metrics in frontend API
## Summary - Extracts `impactMetrics` from the request body in the frontend API controller and forwards them through the service to `clientMetricsServiceV2.registerImpactMetrics()`, matching the existing client API behavior - Gated behind the existing `impactMetrics` feature flag
diff --git a/src/lib/features/frontend-api/frontend-api-controller.ts b/src/lib/features/frontend-api/frontend-api-controller.ts index ed6a6c7017..cb01552b94 100644 --- a/src/lib/features/frontend-api/frontend-api-controller.ts +++ b/src/lib/features/frontend-api/frontend-api-controller.ts @@ -26,6 +26,7 @@ import { mi...
2
1
0
[{"id": "G0", "claim": "The controller should pass the whole req.body to the service and let the service method extract impactMetrics itself (before L140), dropping the redundant impactMetrics argument and casting to Metric[] at the registerImpactMetrics call instead.", "category": "design", "verdict": "supported", "pr...
null
Unleash__unleash__11660
Unleash/unleash
11,660
defect
1bb8b0a2f1d6f0fbd3de0de2cc78f59a60073a29
a1941f7dd1e9b22a2c9a915adacc72c5afa0e160
fix: do not propagate unrelated changes to other envs
## About the changes This fixes a bug in delta / streaming propagation where a feature change in one environment could produce a `feature-updated` event in other connected environments, even when those environments had no in-scope change. The issue was in `ClientFeatureToggleDelta.updateFeaturesDelta()`. It built o...
diff --git a/src/lib/features/client-feature-toggles/delta/client-feature-toggle-delta.test.ts b/src/lib/features/client-feature-toggles/delta/client-feature-toggle-delta.test.ts index a41b9f0516..954fa6fc55 100644 --- a/src/lib/features/client-feature-toggles/delta/client-feature-toggle-delta.test.ts +++ b/src/lib/fea...
4
4
3
[{"id": "G0", "claim": "isEventRelevantForEnvironment treats only undefined as global, so events stored with a NULL environment are considered irrelevant for every environment and can cause missing delta updates; both null and undefined should be treated as global (e.g. event.environment == null).", "category": "correc...
null
Unleash__unleash__11662
Unleash/unleash
11,662
defect
7edf9754c3ed14f5dbfe149eb747108e45594dbc
2ab4c013889c9b1b92d338af3fd5f32ba7670d32
chore: use css selectors instead of js to add conditional styles
All of this complex calculation and passing of props can just be offloaded to the css rendering engine instead. It'll be more performant too, probably (though that's not a big thing here).
diff --git a/frontend/src/component/changeRequest/ChangeRequest/ChangeRequest.tsx b/frontend/src/component/changeRequest/ChangeRequest/ChangeRequest.tsx index cd988c5c11..ffe43aa91e 100644 --- a/frontend/src/component/changeRequest/ChangeRequest/ChangeRequest.tsx +++ b/frontend/src/component/changeRequest/ChangeRequest...
1
1
0
[{"id": "G0", "claim": "The four border properties (borderWidth, borderLeftStyle, borderRightStyle, borderTopStyle) in StyledSingleChangeBox could be collapsed into a single `border: '1px solid'`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Unleash__unleash__11684
Unleash/unleash
11,684
defect
1f83f31113d6124e0bb34a3aecec42ffb89ddd6a
22e6ecece29e94d1472d46ad3d2bb6f4ce6bf913
feat: double metric translation
<!-- Thanks for creating a PR! To make it easier for reviewers and everyone else to understand what your changes relate to, please add some relevant content to the headings below. Feel free to ignore or delete sections that you don't think are relevant. Thank you! ❤️ --> ## About the changes - When externalProm...
diff --git a/src/lib/features/metrics/client-metrics/metrics-service-v2.ts b/src/lib/features/metrics/client-metrics/metrics-service-v2.ts index 08a62ea7d9..ce7187abc6 100644 --- a/src/lib/features/metrics/client-metrics/metrics-service-v2.ts +++ b/src/lib/features/metrics/client-metrics/metrics-service-v2.ts @@ -74,7 ...
1
1
0
[{"id": "G0", "claim": "The private method `prefixedLabels` should be renamed to `prefixLabels`, since as a method it does something rather than describing a state.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Unleash__unleash__11717
Unleash/unleash
11,717
defect
e487399b3a16ecfad7af035ee9764b8398c3e529
da20430cd7048bb091d86bf2880b93fe51b6b1a6
feat: add impact metrics funnel tracking via SDK histogram
Using Impact metrics (through the React SDK) to track the adoption of impact metrics from the recently added accordion in the feature flag page. - Upgrades to the beta version of the React SDK which includes support for Impact metrics - Adds a `useImpactMetricsCounter` helper hook that's a wrapper around the SDK c...
diff --git a/frontend/package.json b/frontend/package.json index 24eae16740..3dfe556237 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -78,7 +78,7 @@ "@types/semver": "7.7.1", "@uiw/codemirror-theme-duotone": "4.25.8", "@uiw/react-codemirror": "4.25.8", - "@unleash/proxy-client-reac...
4
2
2
[{"id": "G0", "claim": "The reviewer asks what problem the useCallback wrapper around observe is solving and whether removing it would change anything, suggesting it may be unnecessary.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The hook tes...
null
Unleash__unleash__11731
Unleash/unleash
11,731
defect
0b130fa484d1252b6c12457f1e2e660a1ddc23ed
f8bda6109942b4425b12cf76dc58e0efc77ba93a
feat: safeguards when no environment available in metrics
<!-- Thanks for creating a PR! To make it easier for reviewers and everyone else to understand what your changes relate to, please add some relevant content to the headings below. Feel free to ignore or delete sections that you don't think are relevant. Thank you! ❤️ --> ## About the changes - Frontend now cont...
diff --git a/frontend/src/component/changeRequest/ChangeRequest/Changes/Change/SafeguardChangeViews.tsx b/frontend/src/component/changeRequest/ChangeRequest/Changes/Change/SafeguardChangeViews.tsx index 4ed830f3ee..3a40cd680a 100644 --- a/frontend/src/component/changeRequest/ChangeRequest/Changes/Change/SafeguardChange...
1
1
0
[{"id": "G0", "claim": "labelSelectors is computed inline without memoization at both submit call sites, so buildLabelSelectors should be moved inside useSafeguardFormState to be computed and memoized in one place without passing anything at the call site.", "category": "performance", "verdict": "supported", "priority"...
null
Unleash__unleash__11746
Unleash/unleash
11,746
defect
9231fa966dfe14251fa093527bc54f99ec25ec46
f268b61213271d0be0ba4064c5ff1cdce27c92ba
feat: finish delta by env leftovers
This completes some leftovers from delta by environment
diff --git a/src/lib/features/client-feature-toggles/delta/client-feature-toggle-delta.test.ts b/src/lib/features/client-feature-toggles/delta/client-feature-toggle-delta.test.ts index 06da6a1388..3f7a80341a 100644 --- a/src/lib/features/client-feature-toggles/delta/client-feature-toggle-delta.test.ts +++ b/src/lib/fea...
10
4
0
[{"id": "G0", "claim": "An empty `query.project` array gets wildcard semantics in `getVisibleRevision` but filters out all feature events in `filterEventsByQuery`/`filterHydrationEventByQuery`; normalize `projects` so an empty list is treated the same as `['*']` (or make the filter helpers treat empty as wildcard).", "...
null
Unleash__unleash__11797
Unleash/unleash
11,797
defect
c100aae5e6d162afa47406fe035a2571b592fe4f
2c2f1dbd5a94a6ac26125bb68cc01994e34bb6fe
feat: use the newer json diff instead of the old, manual diff table for overwrite warnings.
Replaces the old manual diff table with the newer json diff component that we also use for other diffs (events, config changes). I've kept the "show all properties" button for cases where you might have changes in subproperties (e.g. variants), and you want to see all of those changes at once instead of just the cha...
diff --git a/frontend/src/component/changeRequest/ChangeRequest/Changes/Change/ChangeOverwriteWarning/OverwriteWarning.tsx b/frontend/src/component/changeRequest/ChangeRequest/Changes/Change/ChangeOverwriteWarning/OverwriteWarning.tsx index 90644d3db0..d02a1dbd84 100644 --- a/frontend/src/component/changeRequest/Change...
2
1
0
[{"id": "G0", "claim": "The inline Object.values().reduce() building {data, preData} should be extracted into a function whose name says what it does, for readability.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The excludeKeys prop of EventD...
null
Unleash__unleash__11853
Unleash/unleash
11,853
defect
a9d9bf1944bc612c7aaa8aafe3b2afcee35cc731
2c5adcde2e018deb936c1b515ce84e410ef4f665
Fix/placeholder data
Fixes an issue where we would try to build chart options when we didn't have data.
diff --git a/frontend/src/component/feature/FeatureView/FeatureImpactOverview/FeatureImpactHeader.tsx b/frontend/src/component/feature/FeatureView/FeatureImpactOverview/FeatureImpactHeader.tsx index 7b6c2c1a6e..d57cb05ee7 100644 --- a/frontend/src/component/feature/FeatureView/FeatureImpactOverview/FeatureImpactHeader....
1
1
0
[{"id": "G0", "claim": "The intent of the inline [...groupImpactConfigs(configs)].sort(...) chain in FeatureImpactHeader.tsx is obscured; the reviewer suggests expressing it as an explicit partition (multi-config groups first, then singles) via filter and spread.", "category": "maintainability", "verdict": "supported",...
null
Unstructured-IO__unstructured-api__183
Unstructured-IO/unstructured-api
183
defect
c9b74d43e716fb36eb2c07b62ae3eb237feb4e15
181662f191bddfad2e0c46e9838f9d0ba09e4da3
build(release): bump unstructured
Related to downstream issue: https://github.com/Unstructured-IO/unstructured-api/issues/182 And upstream PR: https://github.com/Unstructured-IO/unstructured-inference/pull/165
diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ee3111ed..cddc9a8ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ -## 0.0.35-dev0 +## 0.0.35 +* Bump unstructured library to 0.9.2 * Fix a misleading error in make docker-test ## 0.0.34 diff --git a/pipeline-notebooks/pipeline-general.ipynb b/pipeline...
1
1
1
[{"id": "G0", "claim": "The `file_directory` field newly appearing in the notebook's sample output will probably trip `make check-notebooks`, and that field should be dropped from the output like the other filename-derived fields stripped in general.py.", "category": "correctness", "verdict": "supported", "priority": "...
null