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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
shepmaster__snafu__63 | shepmaster/snafu | 63 | defect | ed0d468ecd6c30716c0b5a878afa020bd03dd38a | 060c57f03f9c38402b8b248cb33fddfe1353af4f | Default display attribute includes the source error description | For #58. It looked like you weren't quite sure if you actually want to do this but I've wanted to check out procedural macros and this seemed like an easy intro. :) The test still needs a lot of improvement, which I can probably get to next week.
| diff --git a/snafu-derive/src/lib.rs b/snafu-derive/src/lib.rs
index 16385bf3..6463def9 100644
--- a/snafu-derive/src/lib.rs
+++ b/snafu-derive/src/lib.rs
@@ -669,9 +669,19 @@ impl<'a> DisplayImpl<'a> {
..
} = *variant;
- let format = display_format
- ... | 9 | 9 | 3 | [{"id": "G0", "claim": "The display-format selection would flow better restructured as a single match on (display_format, source_field) with three arms instead of a match nested inside map_or_else's closure.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ... | null |
sheredom__hashmap.h__4 | sheredom/hashmap.h | 4 | defect | 6c5ee52dc3b20b3c10e0996bbd5f3ce3807105fb | f2653b61f69fc63c5f062ea8971c289020c65d52 | Added more explicit iterator for keys as well as values | I've added a second iterator, unit test and documentation that allows removing of the current item and access to the key and length as well as the value. | diff --git a/hashmap.h b/hashmap.h
index 6735e6c..f73a82d 100644
--- a/hashmap.h
+++ b/hashmap.h
@@ -144,6 +144,18 @@ static int hashmap_iterate(const struct hashmap_s *const hashmap,
int (*f)(void *const context, void *const value),
void *const context) HASHMAP_U... | 5 | 4 | 2 | [{"id": "G0", "claim": "The doc comment added for hashmap_iterate_pairs contains typos ('non-zsero' for 'non-zero', 'heys' for 'keys', 'insert into') and garbled wording that fails to make clear how the callback's return value controls iteration.", "category": "documentation", "verdict": "supported", "priority": "P1", ... | null |
sheredom__utest.h__92 | sheredom/utest.h | 92 | defect | f28ff02372c51647f80b4582004d7a98ae8e4685 | 2241d86675856c96139fb2d86bf1a0fd487f6801 | Add support for assert/expect with epsilon. | This commit adds `ASSERT_NEAR` and `EXPECT_NEAR` to support epsilon aware floating-point checks.
Fixes #91. | diff --git a/README.md b/README.md
index b24cd2b..a89ba69 100644
--- a/README.md
+++ b/README.md
@@ -366,6 +366,20 @@ UTEST(foo, bar) {
}
```
+### ASSERT_NEAR(x, y, epsilon)
+
+Asserts that the floating-point values x and y are within epsilon distance of
+each other.
+
+```c
+UTEST(foo, bar) {
+ float a = 42.0f;
+... | 1 | 1 | 1 | [{"id": "G0", "claim": "The second README section for the near-equality check is headed `ASSERT_NEAR(x, y, epsilon)` when it should be `EXPECT_NEAR(x, y, epsilon)` (the reviewer assumes it is a typo).", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
sheredom__utf8.h__27 | sheredom/utf8.h | 27 | defect | b78a401a400ba0520a39a2b5b1665850dd536ab4 | 8939c8736fcf50d71c9b3ec2592abbfaaeba968f | Added utf8codepointsize and utf8addcodepoint | Let me know if this looks okay. I haven't done huge testing on this yet, but the quick tests seem to go fine.
Talking about tests, I'm also not sure how to add unit tests to this pull request. Any tips?
| diff --git a/README.md b/README.md
index 8c2a045..20be538 100644
--- a/README.md
+++ b/README.md
@@ -47,6 +47,8 @@ utf8.h | complete
utf8codepoint | ✔
utf8size | ✔
utf8valid | ✔
+utf8codepointsize | ✔
+utf8addcodepoint | ✔
## Usage ##
diff --git a/utf8.h b/utf8.h
index bb25728... | 3 | 3 | 1 | [{"id": "G0", "claim": "utf8addcodepoint should document the caller's obligation to size the buffer and the null-return behavior (sheredom asked whether the caller must allocate enough space for the extra codepoint; codecat explained that n is the bytes remaining and null is returned on shortage).", "category": "docume... | null |
sheredom__utf8.h__42 | sheredom/utf8.h | 42 | defect | 9c6bc4e838b8d53b5bb6dd3e6cbfc00df6a114b9 | 9b5efad832dec480e8b0a2c3c17b0a2f4a01dba7 | Add utf8ndup | Some questions still remain for this.
I had a test like this
```c
UTEST(utf8ndup, data) {
void *const dup = utf8ndup(data, 20);
ASSERT_TRUE(dup);
ASSERT_EQ(20, utf8len(dup));
free(dup);
}
```
The fun fact about this is that would be incorrect since it is copying 20 bytes.
Should this copy `n ... | diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..378eac2
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+build
diff --git a/README.md b/README.md
index b59da05..2efb0d2 100644
--- a/README.md
+++ b/README.md
@@ -24,6 +24,7 @@ strlen | utf8len | ✔
strncat | utf8ncat | ✔
strncmp | ut... | 1 | 1 | 1 | [{"id": "G0", "claim": "utf8ndup calls utf8size on the whole src, but with an utf8n* function src may not be null-terminated, so the size should be computed the way utf8size does but only up to n bytes.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
sheredom__utf8.h__79 | sheredom/utf8.h | 79 | defect | 1a631f06d20715364e2e655521c83eeca3c14eb2 | 0652e98a88ae6ac50f9d5c74c97440586c3a76a6 | utf8ncpy fix | Prevent utf8ncpy producing an invalid utf8 string if destination buffer size cut short a codepoint or didn't leave room for a null terminator | diff --git a/README.md b/README.md
index c8870e3..fb1d1cc 100644
--- a/README.md
+++ b/README.md
@@ -145,12 +145,10 @@ bytes of each utf8 string.
void *utf8ncpy(void *dst, const void *src, size_t n);
```
Copy the utf8 string `src` onto the memory allocated in `dst`.
-Copies at most `n` bytes. If there is no termi... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new tests declare variables mid-block, which old MSVC cannot compile (so some testing fails); declare them in the one variable block at the start of the function.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Replace the... | null |
sheredom__utf8.h__92 | sheredom/utf8.h | 92 | defect | 146be69f88575d753317d8ef13b16f80e0656fc7 | f4bc05f5de167967aa13a9d77d4e2a3865425564 | Add constexpr to most functions (use char8_t for C++20) | This feature required more changes than expected. I will understand if you prefer not to merge it
See the commit history for details, and please ask me anything if you need to | diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index b00114b..28d216e 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -31,20 +31,28 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/..)
add_executable(utf8_test
main.c
test.c
- test.cpp
)
+add_executable(utf8_test_cpp14
+ test.cpp
+)... | 4 | 3 | 2 | [{"id": "G0", "claim": "Applying the MSVC /Zc:__cplusplus flag to the C test source (test.c) is questionable, since __cplusplus stays undefined for C anyway.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Introduce a utf8_int8_t typedef (char for ... | null |
sherlock-project__sherlock__2111 | sherlock-project/sherlock | 2,111 | defect | f6bb60881c9fe1039e2e25913ab0195972c26332 | 92f7ac71847d547427f99c574081fafd2df76c43 | Switch PyProject to Poetry | Continuation of #2036
## Package info
Sherlock Project added as Author
Homepage URL set to the github[.]io homepage (PyPi homepage already set, but not pip show)
Dynamic versioning fixed (pulled from sherlock[.]py)
Maintainers added
Classifiers added
Keywords added
Description added
etc
___
__Refoc... | diff --git a/.gitignore b/.gitignore
index 0552d4171e..4d47421ae0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -14,6 +14,9 @@ __pycache__/
# Pip
src/
+# Pip / PyProject Devel & Installation
+*.egg-info/
+
# Jupyter Notebook
.ipynb_checkpoints
*.ipynb
diff --git a/Dockerfile b/Dockerfile
index 147c7d017b..71bba287... | 7 | 7 | 1 | [{"id": "G0", "claim": "Poetry does not support dynamic versioning out of the box, so the package version would have to be updated manually or by an extra git-tag-based plugin, and the author asks for thoughts on how to handle this.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"... | null |
shibatch__sleef__131 | shibatch/sleef | 131 | defect | 9101ba18ed9d88c0456dc9abe98c4a957685953e | f41f2bc308f5a0d3a976473e159c4279d0c05582 | Running tests on intel sde | This patch makes the testers to run on Intel SDE.
The SDE is only used when the corresponding extension is not available on the computer.
Travis terminates running programs if it does not receive anything from stdout of the program for 10 minutes. So this patch uses travis_wait to extend the timeout to 30 minutes. ... | diff --git a/.travis.yml b/.travis.yml
index e3e475cc7..8d29de248 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -35,6 +35,9 @@ matrix:
- MATRIX_EVAL="CC=clang-5.0 && CXX=clang++-5.0"
before_install:
+ - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then wget -q ${SDE_URL} ; fi
+ - if [... | 3 | 1 | 0 | [{"id": "G0", "claim": "In test_extension, set the SDE flags once (e.g. SDE_RUN, computed in the if/else or at global configuration time) and issue a single add_test outside the branches instead of duplicating the add_test call for the SDE and non-SDE cases.", "category": "maintainability", "verdict": "supported", "pri... | null |
shibatch__sleef__135 | shibatch/sleef | 135 | defect | 9101ba18ed9d88c0456dc9abe98c4a957685953e | 5df2b9afac1d8ad258a9afb51a5e50e2f915274a | [dispatcher] Fix dispatcher | This patch fixes the problem in which the dispatchers do not choose the best available extension.
https://github.com/shibatch/sleef/issues/133
In order to prevent a similar bug to be made again, the selected extension will be displayed upon execution of iutdsp128 and iutdsp256.
| diff --git a/src/libm-tester/iutsimd.c b/src/libm-tester/iutsimd.c
index 5280a656a..7d4bc32ff 100644
--- a/src/libm-tester/iutsimd.c
+++ b/src/libm-tester/iutsimd.c
@@ -375,6 +375,9 @@ int do_test(int argc, char **argv) {
printf("%d\n", k);
fflush(stdout);
}
+
+ fprintf(stderr, "IUT : %s\n", (const char *... | 1 | 1 | 0 | [{"id": "G0", "claim": "The DISPATCH macro names (e.g. DISPATCH_si_si and DISPATCH_sp_si, and the _d suffixes) do not make their meaning clear, so it is worth adding a comment at the top of the dispatcher sources saying what the DISPATCH_A_B macro names mean for each value of A and B, and renaming the macros (e.g. _d t... | null |
shibatch__sleef__169 | shibatch/sleef | 169 | defect | 35bf4ba260cf0077780257fc6aeb95114f16a82f | cd437716170476ffb8cb2fce16811d06dd10f23d | [Libm] Use sqrt intrinsic function in xsqrt if available | With this patch, sqrt functions utilizes an instruction for computing sqrt if available.
This patch also adds -fno-math-errno and -fno-trapping-math compiler options when compiled by gcc or clang. | diff --git a/Configure.cmake b/Configure.cmake
index acac9b207..09e6656b4 100644
--- a/Configure.cmake
+++ b/Configure.cmake
@@ -156,6 +156,8 @@ if(CMAKE_C_COMPILER_ID MATCHES "(GNU|Clang)")
set(FLAGS_STRICTMATH "-ffp-contract=off")
set(FLAGS_FASTMATH "-ffast-math")
+ set(FLAGS_NO_ERRNO "-fno-math-errno -fno-t... | 4 | 4 | 1 | [{"id": "G0", "claim": "Add a comment in the cmake file explaining why the -fno-math-errno and -fno-trapping-math compiler options are needed.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new #ifdef in xsqrtf_u05/xsqrt_u05 should be terminat... | null |
shibatch__sleef__18 | shibatch/sleef | 18 | defect | 26eecefe9e5aff0ea4b7789859c70310070185b3 | c56cbd0f207c6ad9e7b1cd25c1d1a5083ffbc426 | This is the change for single precision functions equivalent to the p… | …revious branches for improving performance of asin, acos, log_u1, etc. functions.
I will also modify the benchmarking tools if performance number is needed. | diff --git a/src/libm-tester/testerutil.c b/src/libm-tester/testerutil.c
index bd1a1882c..079b1ba01 100644
--- a/src/libm-tester/testerutil.c
+++ b/src/libm-tester/testerutil.c
@@ -1,3 +1,8 @@
+// Copyright Naoki Shibata 2010 - 2017.
+// Distributed under the Boost Software License, Version 1.0.
+// (See ac... | 1 | 1 | 0 | [{"id": "G0", "claim": "Revert the gratuitous variable renames yisodd->yisodf (in xpowf) and isodd->isodf (in xrintf) in src/libm/sleefsimdsp.c, since there is no reason to change these variable names.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
shibatch__sleef__19 | shibatch/sleef | 19 | defect | 26eecefe9e5aff0ea4b7789859c70310070185b3 | f394134283f55ad363539fe6055b0ddea8d172a8 | [travis] Add Travis CI service for x86. | Changes included:
1. tuning the makefiles to successfully build on the travis-ci.org machines, with gcc 4.6;
2. using `execvpe` instead of `execvp` in `tester.c` to allow environment variables of shell to be passed from `tester` to the `iut*` executables. | diff --git a/travis.yml b/.travis.yml
similarity index 63%
rename from travis.yml
rename to .travis.yml
index 93df337e3..fa1434f6e 100644
--- a/travis.yml
+++ b/.travis.yml
@@ -7,9 +7,4 @@ before_install:
compiler:
- gcc
-before_script:
- - make
- - cd src
- - cd libm-tester
-
-script: make
\ No newlin... | 2 | 1 | 1 | [{"id": "G0", "claim": "The gcc version threshold for enabling float128 support was raised to 7 although float128 is available in gcc 5, with no justification given.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Linking librt is needed to resolve c... | null |
shibatch__sleef__213 | shibatch/sleef | 213 | defect | a266568a0fe078baa21f605336ad9f1c0d76e52d | 77d14632fb39aea95975dfb7ba1a545dfab51a53 | [Determinism] Add purecscalar and noFMA helpers | This patch adds pure C scalar helpers with which scalar functions are implemented using the SIMD source code.
It also adds helper files which do not use FMA on platforms with FMA support.
| diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6dfa275f6..8315d9117 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -72,18 +72,6 @@ set(TARGET_HEADERS "headers")
# Defined in src/libm-tester/CMakeLists.txt via command add_executable
set(TARGET_TESTER "tester")
set(TARGET_IUT "iut")
-set(TARGET_IUTSSE2 "iutss... | 1 | 1 | 0 | [{"id": "G0", "claim": "The commented-out SDE tar-extract line in travis/before_install.x86_64-gcc.sh should be removed (together with the SDE-related bits in the Travis configuration), because the SDE removal is unrelated to adding the purec_scalar targets and the reviewer would like it in a separate PR.", "category":... | null |
shibatch__sleef__219 | shibatch/sleef | 219 | defect | df10c4d9a10ecc6ce827917ebadac22b378b097e | 38b4e68452e9c7a7396ac3e63019ccca43323517 | Fix i386 issues | This patch fixes build problem on i386(32-bit) linux systems.
Testing on Jenkins is added.
expfrexpf and ilogbf are removed from gnuabi_compatibility.c, since these two functions are not officially supported and cause a build problem. | diff --git a/Configure.cmake b/Configure.cmake
index e593b9237..c5b027239 100644
--- a/Configure.cmake
+++ b/Configure.cmake
@@ -54,7 +54,7 @@ function(command_arguments PROPNAME)
endfunction()
# PLATFORM DETECTION
-if((CMAKE_SYSTEM_PROCESSOR MATCHES "x86") OR (CMAKE_SYSTEM_PROCESSOR MATCHES "AMD64") OR (CMAKE_SYST... | 1 | 1 | 1 | [{"id": "G0", "claim": "Do not remove the ilogbf (and expfrexpf) declarations and calls from gnuabi_compatibility.c, since arm compiler for HPC uses ilogbf; instead fix the i386 build error those calls trigger.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
shibatch__sleef__22 | shibatch/sleef | 22 | defect | 0c31df2abdbe8801db578e1a46c92d852a4a882e | 90b46fc9cc067b0ea7ff2179724602d8357627de | This patch introduces a conditional branch to argument reduction in t… | …rig functions.
When all the elements in the argument vector are less than 15, a simpler and faster reduction is used.
With this patch, the computation speed of AVX2 ulp 1 trig functions is very close to SVML when the arguments are small.
Please see https://www.dropbox.com/s/66pwjhhjl4glfab/i7-6700-170422.xlsx?dl=... | diff --git a/src/arch/helperadvsimd.h b/src/arch/helperadvsimd.h
index af87efc49..ea8ad6a4d 100644
--- a/src/arch/helperadvsimd.h
+++ b/src/arch/helperadvsimd.h
@@ -43,6 +43,14 @@ typedef int32x2_t vint;
static INLINE int vavailability_i(int name) { return 3; }
static INLINE void vprefetch_v_p(const void *ptr) { }
... | 7 | 6 | 1 | [{"id": "G0", "claim": "The new vtestallones_i_vo32 in src/arch/helperadvsimd.h could be done more efficiently, e.g. by AND-ing the low and high halves once and then applying vpmin_u32, instead of computing the AND twice.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"i... | null |
shibatch__sleef__220 | shibatch/sleef | 220 | defect | df10c4d9a10ecc6ce827917ebadac22b378b097e | 4b0df4094dcd01d5a2f881d1934cb880405b88f5 | Add FreeBSD support | This patch adds support for FreeBSD.
Testing on Jenkins is added.
The bug pointed out on issue https://github.com/shibatch/sleef/issues/217 is also fixed. | diff --git a/Configure.cmake b/Configure.cmake
index e593b9237..87b95d01f 100644
--- a/Configure.cmake
+++ b/Configure.cmake
@@ -608,10 +608,23 @@ CHECK_C_SOURCE_COMPILES("
}"
COMPILER_SUPPORTS_SYS_GETRANDOM)
+# Check if compilation with FFTW3 really succeeds
+
+if(LIBFFTW3)
+ set (CMAKE_REQUIRED_LIBRARIES ${L... | 3 | 2 | 1 | [{"id": "G0", "claim": "The isinff/isinfl/isnanf/isnanl predicates should not be declared separately per target OS; use a single declaration (the macros already used for the other OSs) for all OSs to remove the code duplication.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introd... | null |
shibatch__sleef__224 | shibatch/sleef | 224 | defect | 3998463e9c04b9fbddf9b64005e3dafe263cef15 | f91bca5f16e0fa0255b0fc1b71ccaeef8a6f2759 | [Determinism] Add hash based testing | This patch adds tester3 which does hash-based comparison of outputs from each functions.
MD5 algorithm is used for the hash functions, since public domain implementation is available.
Hash functions are calculated beforehand for function implementations with FMA and non-FMA, and they are stored in src/libm-tester/has... | diff --git a/.travis.yml b/.travis.yml
index da0065ccc..36e8ff454 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -45,11 +45,6 @@ matrix:
env:
- LABEL="armhf-gcc"
- ENABLE_DOCKER="true"
- - os: linux
- services: docker
- env:
- - LABEL="ppc64el-clang"
- - ENABLE_DOCKER=... | 2 | 1 | 0 | [{"id": "G0", "claim": "The pull request should link the MD5 functions from an external library rather than compiling vendored, untested MD5 sources (md5.c/md5.h) into the tester.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G3", "claim": "The removal of the... | null |
shibatch__sleef__283 | shibatch/sleef | 283 | defect | 0b3c2edb5a0b53d2ffa1062c0fcb189ec20cedba | 6c8a6d300a9e0dbee2da2179c10b5cc8c4927481 | Generate inline headers | This patch implements the functionality described in issue https://github.com/shibatch/sleef/issues/282.
The header files for inlining sleef functions are generated if -DBUILD_INLINE_HEADERS=TRUE is specified as a cmake option.
In order to use one of these headers, the following 3 macros have to be defined.
* ... | diff --git a/CMakeLists.txt b/CMakeLists.txt
index d16b526de..1e657253c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -6,6 +6,7 @@ option(BUILD_DFT "libsleefdft will be built." ON)
option(BUILD_QUAD "libsleefquad will be built." OFF)
option(BUILD_GNUABI_LIBS "libsleefgnuabi will be built." ON)
option(BUILD_TES... | 9 | 2 | 0 | [{"id": "G0", "claim": "PyTorch should credit SLEEF if the generated inline-header source code is mixed into the PyTorch source tree.", "category": "licensing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PR does not justify changing the Jenkins CI builds from parallel m... | null |
shibatch__sleef__291 | shibatch/sleef | 291 | defect | 1ba1836752c275e88a648c569d269c93bfd7ffe3 | 6bd027a07962194d479225abfa53b347a56d32e5 | Add IBM System/390 support | This patch adds IBM System/390 support.
Clang is not supported at this time because it seems not supporting VX intrinsics properly.
Note that this is the first big-endian architecture that SLEEF supports.
| diff --git a/.travis.yml b/.travis.yml
index 795b00128..6038cdf93 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -67,6 +67,15 @@ matrix:
env:
- LABEL=common
- OMP_WAIT_POLICY=passive CTEST_OUTPUT_ON_FAILURE=TRUE
+ - os: linux
+ dist: bionic
+ arch: s390x
+ addons:
+ apt:... | 7 | 6 | 2 | [{"id": "G0", "claim": "The IBM Z extension names should use ZVECTOR and ZVECTOR2 instead of the CPU names Z13/Z14.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Z13 compiler-support check in Configure.cmake should use the compiler token `__vector` ... | null |
shibatch__sleef__300 | shibatch/sleef | 300 | defect | e6635b51fc619ba1bdd4215fed31798825663371 | 3f487310fede89d3d42060ad897337ba1b9480a5 | Building with Clang on Windows | With this patch, the library can be built with Clang on Windows. | diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4259f1129..800dbf4ff 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -61,6 +61,11 @@ set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules)
set(SLEEF_SCRIPT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/Scripts CACHE PATH
"Path for finding sleef specific cma... | 3 | 3 | 0 | [{"id": "G0", "claim": "Add a comment in Configure.cmake explaining why the library-detection block is skipped when building with clang on Windows.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a comment in the sources explaining why the -D_C... | null |
shibatch__sleef__503 | shibatch/sleef | 503 | defect | ba403c0e17204c15b7671cc0d501d1f3c6e5c266 | 979cac8b1701ab47b48e84a42afe18aa62b34f9c | Enable libsleefdft and libsleefquad on riscv64 | Continuation of #496
Mostly just the in-fill of src/arch/helperrvv.h. | diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml
index d11cc549a..029a1980d 100644
--- a/.github/workflows/build_and_test.yml
+++ b/.github/workflows/build_and_test.yml
@@ -17,7 +17,7 @@ permissions:
env:
GCC_VERSION: "11"
LLVM_VERSION: "17"
- COMMON_CMAKE_FLAGS: |
+ COM... | 7 | 6 | 1 | [{"id": "G0", "claim": "The new DFT helper functions such as vposneg_vd_vd should use the macros used everywhere else in the file instead of open-coding raw `#if defined(ENABLE_RVVM1)` blocks inside them.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl... | null |
shibatch__sleef__592 | shibatch/sleef | 592 | defect | bbdf0e2d8bdda477315228d68447b15186a40b19 | ac25cc9fdfd895af3eea2584d733c34f04c22dd4 | This patch fixes two problems | <!-- Thank you for contributing! -->
# Checklist
- [x] I have read the [contributing guidelines](https://github.com/shibatch/sleef/blob/HEAD/CONTRIBUTING.md).
- [x] I have considered portability of my change across platforms and architectures.
- [x] I have self-reviewed my code.
- [x] I have commented my code ... | diff --git a/src/libm-tester/tester.c b/src/libm-tester/tester.c
index 03f5d0997..5e2cf2ac7 100644
--- a/src/libm-tester/tester.c
+++ b/src/libm-tester/tester.c
@@ -4825,6 +4825,8 @@ void do_test() {
fprintf(stderr, "atanf : ");
for(d = -10;d < 10 && success;d += 0.002) checkAccuracy_f(mpfr_atan, child_atanf,... | 2 | 2 | 0 | [{"id": "G0", "claim": "The gcc-13 workaround for xtanf should be understood at its root (is it really only gcc 13?) because it might have repercussions elsewhere that haven't been noticed, and an issue should be created so this investigation is not forgotten.", "category": "maintainability", "verdict": "supported", "p... | null |
shibayu36__slack-explorer-mcp__17 | shibayu36/slack-explorer-mcp | 17 | defect | 9ed985b75e539791c130f6eff053ef88446f9e21 | 44f740b0abcfdf09da285b449d4d26867ba8c0a9 | Add session-based caching for streamable HTTP support | ## Why?
This change prepares for streamable HTTP support where multiple sessions might be active simultaneously. Previously, all sessions shared a single cache in UserRepository, which could cause data mixing when multiple users access the system concurrently. With session-based caching, each session maintains its own... | diff --git a/context.go b/context.go
index 5261097..2fe0e27 100644
--- a/context.go
+++ b/context.go
@@ -9,6 +9,12 @@ import (
// slackUserTokenKey is the context key for Slack user token
type slackUserTokenKey struct{}
+// sessionIDKey is the context key for session ID
+type sessionIDKey struct{}
+
+// SessionID r... | 8 | 1 | 0 | [{"id": "G0", "claim": "The map literal in the session-cache test needs explicit &SessionCache pointer values to avoid a compile error.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Guard against empty ClientSession.SessionID() values before calling ... | null |
shibayu36__slack-explorer-mcp__39 | shibayu36/slack-explorer-mcp | 39 | defect | e0a6c39fb6acc75f8f63f048f5e7bb19295937f5 | 68dbed2c1e737ee0eafd910ced8f7c1b9657364a | Add attachment (unfurl) information to search_messages and get_thread_replies | ## Why?
The `attachments` field from Slack API responses was completely dropped in both `search_messages` and `get_thread_replies`. This meant AI assistants could not see unfurl information for links shared in messages (e.g., tweet content, YouTube video titles, blog article summaries).
## What changed?
- Add `Attac... | diff --git a/docs/onetime/20260317-attachments-unfurl-requirements-ja.md b/docs/onetime/20260317-attachments-unfurl-requirements-ja.md
new file mode 100644
index 0000000..71f5f33
--- /dev/null
+++ b/docs/onetime/20260317-attachments-unfurl-requirements-ja.md
@@ -0,0 +1,126 @@
+# Attachment(unfurl)情報の取得対応 - 要件定義書
+
+## ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The search messages handler calls convertAttachments(match.Attachments) unconditionally while the thread replies handler wraps it in a len check, so the two handlers should be aligned for consistency.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced... | null |
shikaan__keydex__23 | shikaan/keydex | 23 | defect | 33684b15e7a833d0f8962872bda901bc4fd97382 | 863dbb99ccf7df0b4ca839aa64f161582e4f5784 | feat: introduce read-only mode | This change introduces the read-only mode for keydex. Users can decide to launch keydex in read-only mode by means of a CLI flag: --read-only.
This change entails, more specifically the following parts:
* allowing to disable fields
* which in turn means disabling inputs
* drilling the read-only/disabled property ... | diff --git a/cmd/open.go b/cmd/open.go
index 62ff5ca..a61cd3c 100644
--- a/cmd/open.go
+++ b/cmd/open.go
@@ -47,27 +47,31 @@ See "Examples" for more details.`,
),
RunE: func(cmd *cobra.Command, args []string) error {
database, reference, key := ReadDatabaseArguments(cmd, args)
+ readOnly, err := cmd.Flags().Get... | 1 | 1 | 0 | [{"id": "G0", "claim": "The comment on the new `disabled` field contains a typo (\"disables\" instead of \"disabled\") and should be reworded to describe the field accurately.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
shikaan__keydex__36 | shikaan/keydex | 36 | defect | 6b4257574749bdafaaae49ada92b021af5495e1c | 4e5a3c7f15a6257f737700c58ebf06f61e44bd8e | fix: fit the content in a fixed-size 80-chars column | This change closes #31 and #28 by introducing a fixed-size middle column in the container. The container was rewritten from scratch (instead of using BoxLayout).
The fixed size is 76 (80 chars - 4 padding, to align with the title)
<img width="643" height="558" alt="image" src="https://github.com/user-attachments... | diff --git a/tui/components/container.go b/tui/components/container.go
index 9ae1e91..5a42e7a 100644
--- a/tui/components/container.go
+++ b/tui/components/container.go
@@ -1,49 +1,81 @@
package components
import (
+ "sync"
+
"github.com/gdamore/tcell/v2"
"github.com/gdamore/tcell/v2/views"
)
-const MIN_WIDT... | 2 | 1 | 1 | [{"id": "G0", "claim": "The Init method's parameters are in the wrong order: it is declared as Init(width, height) but line 64 and 76 call it with (height, width), which will cause the width and height to be swapped.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "... | null |
shikaan__keydex__39 | shikaan/keydex | 39 | defect | 8c0035a41ad9460d069a8539b8dcee28aa02fee6 | 1834d60795c40d3d33eb011cda35df66513824ee | feat: add a [MODIFIED] badge next to entry name on changes | Closes #37 #38 #30 and new undetected regression in `open` command.
<img width="954" height="596" alt="image" src="https://github.com/user-attachments/assets/b87c44ba-b8ba-4d7f-b35f-71bad264e474" />
* opted for a `[MODIFIED]` to keep it consistent with `[READ ONLY]`
* moved `isReadOnly` and `isDirty` to `App` ... | diff --git a/tui/app.go b/tui/app.go
index 9919214..c4a24a0 100644
--- a/tui/app.go
+++ b/tui/app.go
@@ -59,8 +59,17 @@ func (a *Application) SetTitle(title string) {
a.layout.Title.SetTitle(title)
}
+func (a *Application) SetDirty(value bool) {
+ App.State.isDirty = value
+ a.layout.Title.SetDirty(value)
+}
+
+fu... | 4 | 2 | 1 | [{"id": "G0", "claim": "Title.SetDirty should build the [MODIFIED] title with fmt.Sprintf instead of string concatenation with spaces.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Application.LockDatabase should use the receiver a.isReadOnly i... | null |
shikaan__keydex__42 | shikaan/keydex | 42 | defect | e4f88af09b6f1e9d9eab6d9682d44dd5e2158ec6 | ad9f844dcdd948c7ef9231e039380137cd95d2fa | fix: notify when attempting a modification while in read-only mode | This change makes field changes behave like all the other modifications
to the entries while in read-only mode. That is, notify the user instead
of only preempting the change.
Closes #29
| diff --git a/test/tui_test.go b/test/tui_test.go
index da7acff..2c6cf67 100644
--- a/test/tui_test.go
+++ b/test/tui_test.go
@@ -545,14 +545,31 @@ func TestReadOnly(t *testing.T) {
selectEntry(t, screen, "GitHub")
waitFor(t, screen, "READ ONLY", e2eTimeout)
+
+ // Try update the record
+ typeText(screen, "new use... | 3 | 2 | 1 | [{"id": "G0", "claim": "The read-only notification triggers only on tcell.KeyRune while other input-changing keys (Backspace/Delete/Enter) are still silently swallowed by the disabled field input handler, so it should cover other mutation keys as well, ideally at the input/field level.", "category": "correctness", "ver... | null |
shikaan__keydex__44 | shikaan/keydex | 44 | defect | addde7e01318ad62c971c0f6a9b1d20867edb4b8 | d51c245754401950a64d8c18bdac483b77a8aea0 | fix: guard leaving the entry form with a confirm | This change introduces dirty guards to navigation, forcing consumers to
explicitly opt out wherever required. Cases where the no-guard checks
were expected because we wanted to issue a re-render have been replaced
with an explicit rerender method.
Closes #43 | diff --git a/test/tui_test.go b/test/tui_test.go
index 2f2a705..ec40868 100644
--- a/test/tui_test.go
+++ b/test/tui_test.go
@@ -212,8 +212,6 @@ func TestCreateEntryAndSave(t *testing.T) {
// Reveal password (^R)
screen.InjectKey(tcell.KeyCtrlR, 0, tcell.ModCtrl)
waitForAbsent(t, screen, "********", e2eTimeout)
-... | 2 | 2 | 0 | [{"id": "G0", "claim": "The pull request removes the test assertions that checked the generated password does not contain \"==\"; the removal should be explained in the PR description or reverted to keep the PR focused on the dirty guard feature.", "category": "testing", "verdict": "supported", "priority": "P2", "scope... | null |
shikaan__keydex__47 | shikaan/keydex | 47 | defect | 39813310b18478f30726d9a013d3e754683d90fe | fde81a4eb507f8cd3a1550665356ae3d28a3570d | feat: `new` command | This change adds a `new`/`create` command to create an empty database.
Closes #34
TODO
- [x] Add short and long descriptions of the command
- [x] Coalesce gokeepasslib calls into one kdbx call
- [x] Use the unified call in tests too
- [x] Support key file flows as well
- [x] Generate documentation | diff --git a/.vimspector.json b/.vimspector.json
new file mode 100644
index 0000000..b3750e5
--- /dev/null
+++ b/.vimspector.json
@@ -0,0 +1,15 @@
+{
+ "configurations": {
+ "run": {
+ "adapter": "delve",
+ "variables": {
+ "dlvFlags": "--check-go-version=false"
+ },
+ "configuration": {
... | 15 | 8 | 4 | [{"id": "G0", "claim": "The os.Stat check in the create command only handles the file-exists case, so a Stat failure for any other reason (e.g., permission denied, invalid path) falls through and surfaces later as a less clear error; consider handling non-NotExist Stat errors explicitly.", "category": "correctness", "v... | null |
shikaan__keydex__50 | shikaan/keydex | 50 | defect | 25b61d26593d9c765c41a15365dafc635310f312 | d48edad84738247e7951c03676b4fabc39f1624c | feat: `diff` to compare archives | This change introduces a `diff` command to compare two archives. The comparison does not introspect the entries and it's purely based on timestamps.
The output format is based on POSIX unified diffs, so that it can be piped into other tools for interoperability.
Closes #35 | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 30b34af..74f4303 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -15,4 +15,4 @@ jobs:
- run: make test
- run: make docs
- name: Verify no stale documentation
- run: git diff --exit-code -- ... | 7 | 3 | 2 | [{"id": "G0", "claim": "DiffDatabases sorts only by Path, so for duplicate entry paths the non-stable slices.SortFunc can yield a nondeterministic output order; use a stable sort or add a UUID tie-breaker.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim... | null |
shikijs__shiki__1035 | shikijs/shiki | 1,035 | defect | 2bda4507af45662838a5405f268b2a8dc8930b3f | 9e482ea21431d881b42745c94221f60920ef34e8 | fix(shiki): astro partial syntax highlighting error | <!-- DO NOT IGNORE THE TEMPLATE!
Thank you for contributing!
Before submitting the PR, please make sure you do the following:
- Read the [Contributing Guide](https://github.com/shikijs/shiki/blob/main/CONTRIBUTING.md).
- Check that there isn't already a PR that solves the problem the same way to avoid creatin... | diff --git a/packages/langs/scripts/langs.ts b/packages/langs/scripts/langs.ts
index 71de39a2f..ea8d060d3 100644
--- a/packages/langs/scripts/langs.ts
+++ b/packages/langs/scripts/langs.ts
@@ -84,8 +84,12 @@ export async function loadLangs() {
json.embeddedLangs = includes
}
else if (LANGS_LAZY_EMBEDDE... | 1 | 1 | 1 | [{"id": "G0", "claim": "The hard-coded `if (lang.name === 'astro')` special case in loadLangs is too specific and the lazy-embedded handling should be rewritten in a more agnostic way.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
shikijs__shiki__1139 | shikijs/shiki | 1,139 | defect | f3fb8cc4a9602919b1ab1673a3bd11cd587e7bbc | e78da58d48c0ce09f47fdbb62c4c2106aec00f31 | feat(cli): support passing remote file url | <!-- DO NOT IGNORE THE TEMPLATE!
Thank you for contributing!
Before submitting the PR, please make sure you do the following:
- Read the [Contributing Guide](https://github.com/shikijs/shiki/blob/main/CONTRIBUTING.md).
- Check that there isn't already a PR that solves the problem the same way to avoid creatin... | diff --git a/packages/cli/src/cli.ts b/packages/cli/src/cli.ts
index 8c4e095a1..94b4b428c 100644
--- a/packages/cli/src/cli.ts
+++ b/packages/cli/src/cli.ts
@@ -6,6 +6,37 @@ import cac from 'cac'
import { version } from '../package.json'
import { codeToANSI } from './code-to-ansi'
+export function isUrl(path: strin... | 1 | 1 | 0 | [{"id": "G0", "claim": "The getExtFromUrl test should use the real site domain shiki.style instead of shiki.matsu.io.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
shikijs__shiki__1144 | shikijs/shiki | 1,144 | defect | 38c7f799b8c80c6a4acaee4ae210ee447a29d142 | f3b094d276a07638ea0a840221f14148cabcd2b8 | feat(transformers): add transformerRemoveComments | # Title: feat(transformers): add transformerRemoveComments
## Description
This PR introduces a new transformer [transformerRemoveComments]
This transformer allows users to automatically remove comments from their code snippets. This is particularly useful for scenarios like presentation slides or minimal examples ... | diff --git a/docs/components.d.ts b/docs/components.d.ts
index 0fbc1d6ac..4367f3ce8 100644
--- a/docs/components.d.ts
+++ b/docs/components.d.ts
@@ -1,8 +1,11 @@
/* eslint-disable */
// @ts-nocheck
+// biome-ignore lint: disable
+// oxlint-disable
+// ------
// Generated by unplugin-vue-components
// Read more: htt... | 6 | 3 | 1 | [{"id": "G0", "claim": "The transformer iterates each line's tokens twice (once for hasComment, once for filtering) and should combine both operations into a single pass to reduce per-line complexity from O(2n) to O(n).", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id"... | null |
shikijs__shiki__1245 | shikijs/shiki | 1,245 | defect | 28dd09001e70676348ff7c9744c3b746bfe78002 | 01c9b08509e0bc441ae12d58135dceb6c7509f69 | fix(cli): normalize language/extension casing for CLI inputs | ## Fix case sensitivity in CLI language inference and `--lang` handling
### Summary
This PR fixes a case-sensitivity edge case in the CLI’s language inference and explicit language selection.
Previously, language detection relied directly on the file extension or the `--lang` flag as provided. Since Shiki lang... | diff --git a/packages/cli/src/cli.ts b/packages/cli/src/cli.ts
index 8f9585d8e..88f3aa880 100644
--- a/packages/cli/src/cli.ts
+++ b/packages/cli/src/cli.ts
@@ -13,7 +13,7 @@ export function isUrl(path: string): boolean {
export function getExtFromUrl(url: string): string {
try {
const pathname = new URL(url).... | 1 | 1 | 0 | [{"id": "G0", "claim": "The exports-map change to packages/engine-javascript/package.json (rewriting the \".\" and \"./raw\" export entries into objects with types/default conditions) is unnecessary and, even if warranted, belongs in a separate pull request.", "category": "design", "verdict": "supported", "priority": "... | null |
shikijs__shiki__379 | shikijs/shiki | 379 | defect | a99c9df9818768f432a69387a4687a3344b4926e | 4fd5da9fd0c8b2c55d50d89c5dc1342c678bf13a | feat: resolve embedded languages automatically | - [x] Add a test if possible
- [x] Format all commit messages with [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/)
Fixes #257
The current implementation hands off the ownership of understanding if and what embedded languages are needed to the document author.
```typescript
const highl... | diff --git a/packages/shiki/src/__tests__/embeddedLanguages.test.ts b/packages/shiki/src/__tests__/embeddedLanguages.test.ts
new file mode 100644
index 000000000..fecd01230
--- /dev/null
+++ b/packages/shiki/src/__tests__/embeddedLanguages.test.ts
@@ -0,0 +1,11 @@
+import { getHighlighter } from '../index'
+
+test('Req... | 2 | 2 | 1 | [{"id": "G0", "claim": "Remove the console.log statement from the embedded languages test.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The recursive embedded-language graph resolution exceeds the call stack (e.g. with languages like LaTeX), making th... | null |
shikijs__shiki__588 | shikijs/shiki | 588 | defect | e2a0a43217b152e58da910df9711442d44ba53e9 | df3b381547d98eab5467ec1561dfbe1083925973 | feat: add length and time limit to tokenizer | ### Description
Fix the textmate tokenizer freeze/crash the browser if a line is too long:
- Set the `timeLimit` parameter of `tokenizeLine2` to 500ms (align to vscode)
- Do not attempt to tokenize if a line is too long (enable by adding the `tokenizeMaxLineLength` option)
### Linked Issues
_
### Addit... | diff --git a/packages/core/src/code-to-tokens-base.ts b/packages/core/src/code-to-tokens-base.ts
index 520a64d35..fc99acedb 100644
--- a/packages/core/src/code-to-tokens-base.ts
+++ b/packages/core/src/code-to-tokens-base.ts
@@ -59,6 +59,19 @@ export function tokenizeWithTheme(
continue
}
+ // Do not a... | 1 | 1 | 1 | [{"id": "G0", "claim": "Shiki core should not hardcode a 20000-character line-length cutoff that silently skips tokenizing long lines; users are responsible for what they pass in and should not be disallowed from tokenizing long lines deliberately.", "category": "design", "verdict": "supported", "priority": "P1", "scop... | null |
shikijs__shiki__692 | shikijs/shiki | 692 | defect | 107c9db81ba6d2ce560e4e5e8ba9cc6d8a32b10c | 091f4daf3a2b33cec6a6711f5b1c0a584881702d | feat(rehype): Support default language option | <!-- DO NOT IGNORE THE TEMPLATE!
Thank you for contributing!
Before submitting the PR, please make sure you do the following:
- Read the [Contributing Guide](https://github.com/shikijs/shiki/blob/main/CONTRIBUTING.md).
- Check that there isn't already a PR that solves the problem the same way to avoid creatin... | diff --git a/packages/rehype/src/core.ts b/packages/rehype/src/core.ts
index 796a2c439..d10ebf77c 100644
--- a/packages/rehype/src/core.ts
+++ b/packages/rehype/src/core.ts
@@ -1,7 +1,7 @@
import type { CodeOptionsMeta, CodeOptionsThemes, CodeToHastOptions, HighlighterGeneric, TransformerOptions } from 'shiki/core'
i... | 5 | 5 | 2 | [{"id": "G0", "claim": "The rehype package should also implement the same interface as in PR #689.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The rehypeShiki plugin should not provide a default value ({ theme: 'vitesse-dark' }) for its options parame... | null |
shikijs__shiki__729 | shikijs/shiki | 729 | defect | 4a58472070a9a359a4deafec23bb576a73e24c6a | 18a5049ef4b4dc8cbc2eace1aef43fb53d55e369 | feat(rehype): trim trailing new line passed in from rehype/remark | ### Description
Trim the single trailing newline at the end of code that gets passed into Shiki from Rehype, which would result in dangling empty `<span class="line">` elements at the end of *every* code block.
)
lang = fallbackLanguage
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The maintainer wants the reason rehype/remark (mdast-util-to-hast) adds a trailing newline explained before proceeding with the change that strips it.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
shikijs__shiki__739 | shikijs/shiki | 739 | defect | 933415cdc154fe74ccfb6bbb3eb6a7b7bf183e60 | 165a7de638062e338f3c2b2ec3df028381c25a2c | feat(core): lighter token explanation with `scopeName` | fix #736 | diff --git a/packages/core/src/code-to-tokens-base.ts b/packages/core/src/code-to-tokens-base.ts
index 54163b059..66621c814 100644
--- a/packages/core/src/code-to-tokens-base.ts
+++ b/packages/core/src/code-to-tokens-base.ts
@@ -213,7 +213,11 @@ function _tokenizeWithTheme(
offset += tokenWithScopesText.leng... | 2 | 2 | 0 | [{"id": "G0", "claim": "The `if` starting on line 129 can be changed to `if (options.includeExplanation && options.includeExplanation !== 'scopeName')` since the `themeSettingsSelectors` do not end up being used in that case.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"},... | null |
shikijs__shiki__751 | shikijs/shiki | 751 | defect | bbf37b157280429d0ee3e3fc893ce1a4ccd17199 | 53bba31615522206fce5d33eeca7876da0eed93f | feat(rehype): support inline codes | <!-- DO NOT IGNORE THE TEMPLATE!
Thank you for contributing!
Before submitting the PR, please make sure you do the following:
- Read the [Contributing Guide](https://github.com/shikijs/shiki/blob/main/CONTRIBUTING.md).
- Check that there isn't already a PR that solves the problem the same way to avoid creatin... | diff --git a/docs/packages/rehype.md b/docs/packages/rehype.md
index e3346058b..b8f2d46dc 100644
--- a/docs/packages/rehype.md
+++ b/docs/packages/rehype.md
@@ -97,3 +97,34 @@ console.log('3') // highlighted
console.log('4') // highlighted
```
````
+
+### Inline Code
+
+You can also highlight inline codes with the `... | 4 | 2 | 0 | [{"id": "G0", "claim": "Using the proposed `code{:language}` syntax makes the plugin incompatible with MDX.", "category": "design", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The `inline` option should be typed like `false | 'tailing-curly-colon'` to indicate the style, so ... | null |
shikijs__shiki__787 | shikijs/shiki | 787 | defect | 7602669bccd63a41b0fa17aac1b7d88677cae4ea | a2e67d4c15de6f0f92f0601d02befef785e24b89 | feat(rehype): support lazy load languages | <!-- DO NOT IGNORE THE TEMPLATE!
Thank you for contributing!
Before submitting the PR, please make sure you do the following:
- Read the [Contributing Guide](https://github.com/shikijs/shiki/blob/main/CONTRIBUTING.md).
- Check that there isn't already a PR that solves the problem the same way to avoid creatin... | diff --git a/packages/rehype/src/core.ts b/packages/rehype/src/core.ts
index af21f6fa0..b1e421046 100644
--- a/packages/rehype/src/core.ts
+++ b/packages/rehype/src/core.ts
@@ -2,22 +2,18 @@ import type {
CodeToHastOptions,
HighlighterGeneric,
} from '@shikijs/types'
-import type { Element, Root } from 'hast'
+i... | 2 | 2 | 1 | [{"id": "G0", "claim": "Keep the language prefix as a named `languagePrefix` variable instead of inlining `language-` in the class-adding handler — the variable was a TODO toward making the prefix configurable.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1... | null |
shikijs__shiki__909 | shikijs/shiki | 909 | defect | c55865fb140983dc611e5a8534878e8562808bdb | 0b9137f8413eb1f276928707c0ac92de0664a314 | fix(transformers): fix matching indices for word-highlight |
<!-- DO NOT IGNORE THE TEMPLATE!
Thank you for contributing!
Before submitting the PR, please make sure you do the following:
- Read the [Contributing Guide](https://github.com/shikijs/shiki/blob/main/CONTRIBUTING.md).
- Check that there isn't already a PR that solves the problem the same way to avoid creat... | diff --git a/packages/transformers/src/transformers/meta-highlight-word.ts b/packages/transformers/src/transformers/meta-highlight-word.ts
index ce10b857b..4cf494fc5 100644
--- a/packages/transformers/src/transformers/meta-highlight-word.ts
+++ b/packages/transformers/src/transformers/meta-highlight-word.ts
@@ -55,11 +... | 3 | 2 | 2 | [{"id": "G0", "claim": "If the regex-search approach is kept, `substr` must be properly escaped before being passed to `new RegExp(substr, 'g')`, since unescaped regex special characters would throw or match incorrectly; M005 proposes concrete ways to do the escaping.", "category": "correctness", "verdict": "supported"... | null |
shini4i__argo-watcher__162 | shini4i/argo-watcher | 162 | defect | 84351dbd9c1b186b8dd4bbdb63ef05656ea45734 | 736af2586d3673c075585c00f2d0df1b4d9c07c5 | feat(workflows): add basic golangci-lint setup | This PR incorporates the following changes:
1) Initial setup of golangci-lint was added
2) Concerns raised by golangci-lint were addressed
3) gomock was replaced with maintained fork | diff --git a/.github/workflows/run-tests-and-sonar-scan.yml b/.github/workflows/run-tests-and-sonar-scan.yml
index 3119a24b..4fb2d8c9 100644
--- a/.github/workflows/run-tests-and-sonar-scan.yml
+++ b/.github/workflows/run-tests-and-sonar-scan.yml
@@ -5,7 +5,32 @@ on:
- main
pull_request:
types: [opened, ... | 1 | 1 | 1 | [{"id": "G0", "claim": "In initLogs the log level should be set before the function starts emitting log messages, since messages are currently emitted before the global level is applied.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
shini4i__argo-watcher__163 | shini4i/argo-watcher | 163 | defect | e10f32788f180b09db0bb6ccf3092ae82f481fb8 | 9f30ef519e23416187049bd9e065c7cb6fd2641b | chore: argo status updater tests | created argo status updater tests + minor improvements to docs | diff --git a/cmd/argo-watcher/argo_status_updater.go b/cmd/argo-watcher/argo_status_updater.go
index b0e1c7eb..bc96ee87 100644
--- a/cmd/argo-watcher/argo_status_updater.go
+++ b/cmd/argo-watcher/argo_status_updater.go
@@ -4,6 +4,7 @@ import (
"errors"
"fmt"
"strings"
+ "time"
"github.com/avast/retry-go/v4"
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The trailing code comment \"// we call 1st time to check the status and 2nd time to\" is an unfinished sentence and should be removed (as should the same comment on the other lines that have it).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
shini4i__argo-watcher__173 | shini4i/argo-watcher | 173 | defect | c4b3c992af4fa60f99599e6efebcc6e5809da944 | 6cc674e1f79cdcc0e48acf5e102bb40cec9917e9 | feat: add proof of concept implementation of argo image updater replacement | The changes in this PR introduces the following:
- Added PoC implementation of argo image updater replacement
- Minor code cleanup here and there
Backward compatibility is preserved.
A few points that should be covered in the further pull requests:
- We should devise a more reasonable approach to validating to... | diff --git a/.gitignore b/.gitignore
index a7c958e0..eddbf9b9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,8 +11,8 @@ static/
**/.envrc
**/.env
-# directory for built binary files
-bin/
+# built binary file
+argo-watcher
# swagger files
**/swagger.*
@@ -25,4 +25,4 @@ cmd/argo-watcher/docs
cmd/argo-watcher/m... | 9 | 7 | 6 | [{"id": "G0", "claim": "Information about the ARGO_DEPLOY_TOKEN header (what it is and how to use it) should be added to the documentation.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Since the git-commit feature is experimental, the client sho... | null |
shini4i__argo-watcher__371 | shini4i/argo-watcher | 371 | defect | fdeb898fdd2305f465311843a49baef95dc9a5f4 | 9b6a473f67f27b3ab1f6aac1dc2c855ee1911960 | refactor(notifications): Make WebhookService testable and robust | The previous implementation of `WebhookService` had critical design flaws that made it difficult to test and maintain.
The primary issues were:
- **Tight Coupling:** The service directly instantiated a concrete `*http.Client`, making it impossible to unit test the `SendWebhook` logic without making live, external H... | diff --git a/cmd/argo-watcher/argocd/argo_status_updater.go b/cmd/argo-watcher/argocd/argo_status_updater.go
index 450c1fd3..bb77dce2 100644
--- a/cmd/argo-watcher/argocd/argo_status_updater.go
+++ b/cmd/argo-watcher/argocd/argo_status_updater.go
@@ -4,6 +4,7 @@ import (
"bytes"
"errors"
"fmt"
+ "net/http"
"sli... | 4 | 2 | 1 | [{"id": "G0", "claim": "The template string in the Failed Template Execution test contains a misplaced closing angle bracket / mismatched quote (`{\"missing_field\":\"{{.Missing}}>\"}`) and should be `{\"missing_field\":\"{{.Missing}}\"}` — or otherwise a template that will actually fail during execution.", "category":... | null |
shini4i__argo-watcher__372 | shini4i/argo-watcher | 372 | defect | 1abcc3fdaa5adfe95c95632962c9decda40a2b90 | 74a26012708f7b256a431af4bbf94853f0c063eb | feat(ha): Implement distributed locking using Postgres Advisory Locks | This pull request refactors the application's concurrency control to support High Availability (HA) deployments. It replaces the existing in-process mutex, which was a single point of failure preventing horizontal scaling, with a flexible, distributed locking mechanism.
This change is foundational for running `argo-... | diff --git a/cmd/argo-watcher/argocd/argo_status_updater.go b/cmd/argo-watcher/argocd/argo_status_updater.go
index af390e66..b788ca29 100644
--- a/cmd/argo-watcher/argocd/argo_status_updater.go
+++ b/cmd/argo-watcher/argocd/argo_status_updater.go
@@ -7,7 +7,6 @@ import (
"net/http"
"slices"
"strings"
- "sync"
"... | 7 | 2 | 1 | [{"id": "G0", "claim": "The file name 'in-memory.go' is inconsistent with Go file naming conventions and with 'in_memory_test.go'; consider renaming it to 'in_memory.go'.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Using a fixed time.Sleep fo... | null |
shini4i__argo-watcher__375 | shini4i/argo-watcher | 375 | defect | 4e97c37b61a5f097093f25ac27f49c8902410f75 | 46df3118ba044bb22e9a2d695c0d8ce8ecfb9dc0 | fix: Correct Postgres advisory lock implementation to prevent deadlocks | ## Description
This pull request addresses a critical flaw in the PostgreSQL advisory lock implementation that leads to application hangs under concurrent load. The previous implementation used session-scoped locks (`pg_advisory_lock`) with the GORM connection pool, creating a race condition where locks could be acq... | diff --git a/cmd/argo-watcher/argocd/argo_status_updater.go b/cmd/argo-watcher/argocd/argo_status_updater.go
index b788ca29..9a3bd348 100644
--- a/cmd/argo-watcher/argocd/argo_status_updater.go
+++ b/cmd/argo-watcher/argocd/argo_status_updater.go
@@ -178,26 +178,23 @@ func (updater *ArgoStatusUpdater) waitForApplicatio... | 3 | 1 | 1 | [{"id": "G0", "claim": "The pull request should not use SHA-1 when deriving the deterministic lock ID; use a stronger/dedicated hash (e.g. fnv.New64a()) instead.", "category": "security", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The integration tests should use a unique l... | null |
shini4i__argo-watcher__377 | shini4i/argo-watcher | 377 | defect | 401e8852602125a55ff4e2e2365a80ee625e8767 | fab764df6f46b73ba2fcb072b626aaa170830084 | chore(git): Implement Robust Caching and Error Handling | Improves git operations by introducing a persistent file-based cache and adding robust error handling to prevent race conditions and recover from common git failures.
### Why
The previous implementation of git operations had several critical issues:
- **No Caching**: It cloned the git repository from scratch for... | diff --git a/cmd/argo-watcher/argocd/argo_status_updater.go b/cmd/argo-watcher/argocd/argo_status_updater.go
index 9a3bd348..132d6c82 100644
--- a/cmd/argo-watcher/argocd/argo_status_updater.go
+++ b/cmd/argo-watcher/argocd/argo_status_updater.go
@@ -32,10 +32,11 @@ type ArgoStatusUpdater struct {
locker lo... | 6 | 2 | 0 | [{"id": "G0", "claim": "Returning immediately after a fresh clone skips the fetch and reset operations needed to keep the repository up to date, which could result in working with stale data when the repository is freshly cloned.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduce... | null |
shini4i__argo-watcher__379 | shini4i/argo-watcher | 379 | defect | 25fbaa376961a09b48ee55bc67058b64799d9b58 | c3cd40bda53b7ba1fedbc18c94aa51cc7c458054 | refactor(server): improve testability and isolate metrics | The primary goal of this refactor was to improve the testability of the `server` package. The original implementation was tightly coupled, making it impossible to unit test the server's initialization and configuration logic in isolation.
Additionally, the existing metrics implementation relied on a global Prometheu... | diff --git a/cmd/argo-watcher/argocd/argo.go b/cmd/argo-watcher/argocd/argo.go
index 93c7df4c..8a66c35d 100644
--- a/cmd/argo-watcher/argocd/argo.go
+++ b/cmd/argo-watcher/argocd/argo.go
@@ -23,13 +23,12 @@ const (
)
type Argo struct {
- metrics prometheus.MetricsInterface
+ metrics *prometheus.Metrics
api Ar... | 5 | 2 | 1 | [{"id": "G0", "claim": "In NewServer's postgres branch, the failure paths return the `err` variable, which is not meaningful in that scope, instead of returning a proper, meaningful error.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "AddProcessedD... | null |
shini4i__argo-watcher__383 | shini4i/argo-watcher | 383 | defect | fd53c309c9718cf285dddb6616a222f9fecef79a | cb8921de9d80d657005a9ecfb4b95ed4adb716d8 | feat(db): integrate self-contained database migrations | ### Reason for Changes
The application's migration to a `scratch`-based Docker image broke the existing `initContainer` pattern for database migrations. The `scratch` image lacks a shell and basic utilities like `cp`, making it impossible to copy migration files to a shared volume for the `migrate` tool to consume.
... | diff --git a/cmd/argo-watcher/main.go b/cmd/argo-watcher/main.go
index ec0cd5c2..624488ed 100644
--- a/cmd/argo-watcher/main.go
+++ b/cmd/argo-watcher/main.go
@@ -1,20 +1,45 @@
package main
import (
+ "flag"
"log"
"github.com/prometheus/client_golang/prometheus"
"github.com/shini4i/argo-watcher/cmd/argo-wat... | 3 | 3 | 1 | [{"id": "G0", "claim": "The migration path '/db/migrations' is hardcoded in NewMigrator and should be made configurable through MigrationConfig to improve flexibility and testability.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The password i... | null |
shini4i__argo-watcher__412 | shini4i/argo-watcher | 412 | defect | fcbd070d5f83e6aab7457353b0d68e308967b34f | 74b5286cdeb4effde8cb747d18720e04aaaf27b8 | chore: improve tests quality | ## Summary
This PR addresses multiple severity issues discovered during QA analysis, including nil pointer dereferences, race conditions, resource handling improvements, and graceful shutdown implementation.
## Changes
### Critical Fixes (Test Failures)
1. **Fix nil pointer dereference in `TestSafeFileSyste... | diff --git a/internal/auth/keycloak.go b/internal/auth/keycloak.go
index c69a3222..428dc2be 100644
--- a/internal/auth/keycloak.go
+++ b/internal/auth/keycloak.go
@@ -56,14 +56,16 @@ func (k *KeycloakAuthService) Validate(token string) (bool, error) {
}
}(resp.Body)
- // Read and print the response body
+ // Rea... | 5 | 2 | 0 | [{"id": "G0", "claim": "The Write call in notifyWebSocketClients uses context.Background(), which could block indefinitely if a client connection is stuck; use a timeout context to prevent slow clients from blocking the notification loop.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "... | null |
shini4i__argo-watcher__417 | shini4i/argo-watcher | 417 | defect | 656f71f9f3c483536a78ddcc3b2a253f5cfb84fe | a7bcd8a24dd4176b820524cf27a74d32c211f749 | fix: prevent SSRF in Keycloak auth by validating URL at init time | ### Summary
The `gosec` security scanner flagged an SSRF (Server-Side Request Forgery) vulnerability in the Keycloak authentication service. The userinfo endpoint URL was constructed dynamically on each `Validate()` call using potentially tainted input, which could allow URL manipulation.
This change validates an... | diff --git a/internal/auth/auth.go b/internal/auth/auth.go
index e1a6b53e..e9f19c07 100644
--- a/internal/auth/auth.go
+++ b/internal/auth/auth.go
@@ -73,16 +73,18 @@ func (a *Authenticator) Strategy(header string) (AuthStrategy, bool) {
}
// NewKeycloakAuthService initializes a new Keycloak authentication service ... | 5 | 5 | 4 | [{"id": "G0", "claim": "The missing-host subtest calls Init(\"\") which fails on scheme validation first, so the test never exercises the missing-host branch it is named for.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Init composes the userinfo URL ... | null |
shini4i__argo-watcher__418 | shini4i/argo-watcher | 418 | defect | 574b48ccff4f84cea9f70ab3dcd6763a8d32f2f9 | 02a4aecde1395c0030004e41af854a60e84b67a6 | refactor: simplify Go backend | ## Summary
Simplify the Go backend by removing unnecessary indirection, eliminating DRY violations, and cleaning up legacy patterns. No behavioral changes — all existing API contracts are preserved.
### Quick Wins
- **Remove `TaskState` wrapper interface** (`internal/state/state.go`): `TaskState` was an interf... | diff --git a/cmd/argo-watcher/config/config.go b/cmd/argo-watcher/config/config.go
index 3ba912f5..3df402cf 100644
--- a/cmd/argo-watcher/config/config.go
+++ b/cmd/argo-watcher/config/config.go
@@ -92,8 +92,3 @@ func (config *ServerConfig) GetRetryAttempts() uint {
return config.DeploymentTimeout/15 + 1
}
-// Res... | 8 | 7 | 3 | [{"id": "G0", "claim": "GetApplication appends \"?refresh=normal\" by string concatenation, which is fragile if query parameters are already present or added later; build the query with url.Parse/Query().Set instead.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id... | null |
shini4i__argo-watcher__419 | shini4i/argo-watcher | 419 | defect | 28b3621096fbf71c892a9fb6ab6f365992db970d | fcf505f2f25959c0e69742ff7604a41fa3319130 | chore: replace runtime swaggo dependencies with static Swagger UI | Remove gin-swagger and swaggo/files Go runtime dependencies that transitively pull in golang.org/x/tools/internal/modindex, which creates ~/.cache/goimports at init time and fails in read-only distroless containers.
Swagger UI is now served as static files bundled through the frontend Vite toolchain using swagger-ui... | diff --git a/.gitignore b/.gitignore
index 6ee28107..f2e8d7b8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -20,8 +20,8 @@ web/dist/ # Vite build output for React Admin
# built binary file emitted by go build
/argo-watcher
-# swagger files (generated via swag)
-**/swagger.*
+# Swagger spec (generated by s... | 4 | 4 | 3 | [{"id": "G0", "claim": "The PR's new Swagger metadata annotations omit `@version`, so the generated swagger.json will have an empty `info.version` field, which violates the OpenAPI 2.0 specification requirement.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", ... | null |
shini4i__argo-watcher__421 | shini4i/argo-watcher | 421 | defect | bffec17d682993a239809b6dec1c4fa0c2fbcdda | 8674645a7862fff3ddf30e16793549f3f3fc112d | fix: add HTTP-level retry with exponential backoff for ArgoCD API calls | Wrap doGet() in retry-go/v4 to transparently retry transient transport errors (timeouts, connection refused) across all ArgoCD API calls. Configurable via ARGO_API_RETRIES env var (default 3, range 1-10). HTTP error responses (4xx/5xx) are not retried.
<!-- This is an auto-generated comment: release notes by coderabbi... | diff --git a/cmd/argo-watcher/config/config.go b/cmd/argo-watcher/config/config.go
index 3df402cf..d8a561e0 100644
--- a/cmd/argo-watcher/config/config.go
+++ b/cmd/argo-watcher/config/config.go
@@ -55,6 +55,7 @@ type ServerConfig struct {
LockdownSchedule string `env:"LOCKDOWN_SCHEDULE" json:"lockdown_sche... | 3 | 1 | 1 | [{"id": "G0", "claim": "The new test suite covers transport failures and immediate success but not the PR's contract that 4xx/5xx responses return immediately, and since the existing error-table tests all force maxRetries = 1 a future regression that starts retrying a 500 would go uncaught, so a callCount == 1 case wit... | null |
shini4i__argo-watcher__436 | shini4i/argo-watcher | 436 | defect | a044cbd883213df1179eefffbaa37b8e3380bf87 | e2ab9fe4899858dd9bff00ee5091439006e15136 | fix(updater): bound git ops with total timeout to prevent stuck deployment queue | ## Summary
... | diff --git a/docs/reference/server-env.md b/docs/reference/server-env.md
index 56b31abc..407841fc 100644
--- a/docs/reference/server-env.md
+++ b/docs/reference/server-env.md
@@ -69,3 +69,4 @@ These variables are required when using the built-in GitOps updater. See the [Gi
| `SSH_COMMIT_USER` | Git commit author n... | 4 | 4 | 2 | [{"id": "G0", "claim": "The deadline assertion in the PlainClone bounded-context test only checks an upper bound, so the test can false-pass when the context deadline is already expired; it should also assert the remaining time is not materially negative.", "category": "testing", "verdict": "supported", "priority": "P2... | null |
shini4i__argo-watcher__437 | shini4i/argo-watcher | 437 | defect | 3d865c02576b2e674b0d6962ce0a30b0d0458de3 | 9f9e914c4a7e39fcc35630e9419afeb3b7ae9939 | test: add integration test harness for push-race recovery | ## Summary
Adds a real-world integration test harness that validates the push-race recovery code path introduced in #435 and bounded by GIT_TIMEOUT in #436. Previously, this code was exercised only by unit tests using mocked `GitHandler` + local `file://` remotes, which cannot catch:
- whether real GitLab /... | diff --git a/.github/workflows/run-tests-and-sonar-scan.yml b/.github/workflows/run-tests-and-sonar-scan.yml
index 33fbc85e..e66ba130 100644
--- a/.github/workflows/run-tests-and-sonar-scan.yml
+++ b/.github/workflows/run-tests-and-sonar-scan.yml
@@ -47,7 +47,7 @@ jobs:
services:
postgres:
- image:... | 6 | 6 | 6 | [{"id": "G0", "claim": "Add request timeouts to the Gitea setup HTTP calls, which are currently unbounded and can hang setup until the global go test timeout instead of failing fast with an actionable error.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim":... | null |
shinnytech__tqsdk-python__287 | shinnytech/tqsdk-python | 287 | defect | ff31c7451a166a41cf38dfaea47d68c8afec582a | d6473083a18bdf0782db60e6da07189157a6204c | 完善期权合约字段 | 为了更好地调取期权合约,在tqsdk.objs.Quote中加入两个字段:
product_id:用于识别基础现货资产
option_class:用于识别"认购" or "认沽"
上述字段来自于:"https://openmd.shinnytech.com/t/md/symbols/latest.json"
只是在python项目中没有调取。 | diff --git a/tqsdk/api.py b/tqsdk/api.py
index 53b14f80..1cf7865a 100644
--- a/tqsdk/api.py
+++ b/tqsdk/api.py
@@ -1247,6 +1247,8 @@ def _fetch_symbol_info(self, url):
"expire_datetime": v.get("expire_datetime"),
"delivery_month": v.get("delivery_month"),
"delivery_yea... | 4 | 3 | 2 | [{"id": "G0", "claim": "For non-option contracts, how should the new Quote fields (option_class, product_id) be defined — empty string, or something like N/A?", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The 开平 (open/close) computation should be implem... | null |
shinnytech__tqsdk-python__319 | shinnytech/tqsdk-python | 319 | defect | 72b20166f70cfec856ba6cbbb62f436f62b97f8d | 848f912921170f52d942c9aff38e59fbd06d7314 | tqreplay: 优化回测接口和回测请求 | 增加 set_replay_speed 接口,发送心跳包、设置复盘速度修改为异步请求; set_replay_speed 接口放在 tqreplay 类里 | diff --git a/tqsdk/api.py b/tqsdk/api.py
index 6d3894e4..0ace24a9 100644
--- a/tqsdk/api.py
+++ b/tqsdk/api.py
@@ -1139,18 +1139,6 @@ async def demo():
listener.add(chan)
return chan
- # ----------------------------------------------------------------------
- def set_replay_speed(self,... | 2 | 2 | 1 | [{"id": "G0", "claim": "The _wait_server_status_change helper should be changed so that it waits for a target status instead of returning whenever the status differs from the origin status.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "If the user const... | null |
shinnytech__tqsdk-python__348 | shinnytech/tqsdk-python | 348 | defect | 41b29c2c5175d7c774b07b861ad987e30f4261ef | 7feb065752ee15d669cf644027600425363a3506 | 默认打开日志 [BE-218] [BE-220] | ### 目的:
优化问题排查流程 https://shinnytech.atlassian.net/browse/BE-218
### todo:
* 默认的日志文件夹位置 `os.path.join(os.path.expanduser('~'), ".tqsdk/logs")`
* 日志文件名
+ 用户 debug=False 指定关闭日志;debug=True 使用默认生成的日志文件;debug=“path_of_file” 指定日志文件
+ 默认 `datetime('%Y%m%d%H%M%S%f')-{os.getpid()}.log` example: `2020052010110... | diff --git a/design/default_debug_on.md b/design/default_debug_on.md
new file mode 100644
index 00000000..28487b52
--- /dev/null
+++ b/design/default_debug_on.md
@@ -0,0 +1,43 @@
+# 目的:
+
+优化问题排查流程 https://shinnytech.atlassian.net/browse/BE-218
+
+# todo:
+
+* 默认的日志文件夹位置 `os.path.join(os.path.expanduser('~'), ".tqsdk/l... | 10 | 8 | 2 | [{"id": "G0", "claim": "The default log file name should include the process id, since two programs can still be created within the same millisecond.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The default value of the debug option should be specified... | null |
shipshapecode__shepherd__1332 | shipshapecode/shepherd | 1,332 | defect | 60d4ad7194cc6ec0f7b7e769ce87f7ede84a3a30 | dc0d9361de514533dd4229e03f00448cdcaf111c | properly handle centered modal | Fixes #1303 | diff --git a/src/js/components/shepherd-modal.svelte b/src/js/components/shepherd-modal.svelte
index 6ab9a6dcd..28bf54b1d 100644
--- a/src/js/components/shepherd-modal.svelte
+++ b/src/js/components/shepherd-modal.svelte
@@ -36,25 +36,32 @@
/**
* Uses the bounds of the element we want the opening overtop of to... | 2 | 2 | 1 | [{"id": "G0", "claim": "closeModalOpening is called unconditionally at the end of positionModal, so the opening just positioned for a target gets closed again; it should only be called when there is no target.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "c... | null |
shipshapecode__shepherd__1815 | shipshapecode/shepherd | 1,815 | defect | bab8af68292692bce707d5b718068fcb7c1872d6 | 750087b9456d3f19c01688f3d667cfab7877e04c | Add dynamic text and label properties for buttons | Hey folks 👋
This PR:
- adds dynamic `text` and `label` properties for the `button` component
- avoids duplicate code for the `button` component (`getConfigOption` function)
- updates the `button` unit tests
- updates `StepOptionsButton` interface
- updates `usage` docs with the new info about the `button` comp... | diff --git a/docs-src/tutorials/02-usage.md b/docs-src/tutorials/02-usage.md
index ffa678fd5..9842a1171 100644
--- a/docs-src/tutorials/02-usage.md
+++ b/docs-src/tutorials/02-usage.md
@@ -197,9 +197,11 @@ the step will execute. For example:
- `label` The label to add for `aria-label`
- `classes`: A string of extra... | 2 | 2 | 2 | [{"id": "G0", "claim": "The docs should be updated to mention that the button text/label (and related) options can now be functions and how to use them.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The unit tests for dynamic text and label shoul... | null |
shipshapecode__shepherd__1930 | shipshapecode/shepherd | 1,930 | defect | 945b1844be08dd331a38f6cddf0efc3a9eb11478 | a8c4b6c6c7c4cdfc21ebbb9e97b9a8b6b5ee0476 | Implement lazy evaluation of attachTo.element | # Internal review for #1187 to evaluate lazy attachment of `attachTo.element`
### Changes:
- Remove
- ```Step.isCentered()```
- Write unit tests to evaluate ```shouldCenterStep```
- Write cypress tests to evaluate ```parseAttachTo``` binding with multiple elements
---
### Response to Considerations:
... | diff --git a/docs-src/tutorials/02-usage.md b/docs-src/tutorials/02-usage.md
index 9842a1171..5e59905d3 100644
--- a/docs-src/tutorials/02-usage.md
+++ b/docs-src/tutorials/02-usage.md
@@ -166,7 +166,7 @@ created.
- `Function` to be executed when the step is built. It must return one the two options above.
- `title... | 8 | 8 | 1 | [{"id": "G0", "claim": "Update the JSDoc comments for attachTo options in step.js so they stay in sync with the updated docs-src tutorial.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test 'calls the custom handler after before-show promise ... | null |
shipshapecode__shepherd__2037 | shipshapecode/shepherd | 2,037 | defect | 4e98ad7e1a35114a7003d9f051fc087adc13ef39 | 726519d5478890d21802687ec4284d93fc4b959d | Replace popperJS with Floating UI | Fixes #2013
This PR removes popperjs dependency and replace it with floating UI.
### Configuration similarities
For `popperOptions` and `floatingUIOptions`, the `placement` and `strategy` options are the same.
### Configuration differences
There is no equivalent to popperjs `onFirstUpdate` option. Floating U... | diff --git a/landing/css/welcome.css b/landing/css/welcome.css
index 167f222817..0e3162e72d 100644
--- a/landing/css/welcome.css
+++ b/landing/css/welcome.css
@@ -1,5 +1,5 @@
/*
-! tailwindcss v3.1.7 | MIT License | https://tailwindcss.com
+! tailwindcss v3.1.8 | MIT License | https://tailwindcss.com
*/
/*
diff --... | 5 | 3 | 2 | [{"id": "G0", "claim": "resize-observer-polyfill should live in dependencies instead of devDependencies if it is required.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Tests that use popperOptions.modifiers will need to be updated and docs a... | null |
shipshapecode__shepherd__2168 | shipshapecode/shepherd | 2,168 | defect | ba15e06e1f4158bebd3b2cd00c6741c5190ff8a9 | b10bccbe7fb0e1e42f2b8f436b96d3089f3e9272 | add funtion support for confirmCancel | demo
Promise function:
```js
// TypeScript
{
...
confirmCancel: () => {
return new Promise<boolean>((resolve) => {
// my dialog component
dialog
.open(
"Are you sure you want to stop the tour?",
"You can watch it again in setting paddle"
)
... | diff --git a/docs-src/tutorials/02-usage.md b/docs-src/tutorials/02-usage.md
index 5d738bbef..85ddce651 100644
--- a/docs-src/tutorials/02-usage.md
+++ b/docs-src/tutorials/02-usage.md
@@ -114,7 +114,9 @@ const myTour = new Shepherd.Tour(options);
##### Tour Options
- `classPrefix`: The prefix to add to the `shephe... | 4 | 4 | 0 | [{"id": "G0", "claim": "The pull request does not seem to pass the 'cognitive complexity' check and the author asks for help determining whether there is a real problem and reducing the complexity further.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "c... | null |
shipshapecode__shepherd__2995 | shipshapecode/shepherd | 2,995 | defect | 37c03fbe1a9f98b826fe4b459f9e3cbc240a616c | caad4794d112f119ab544b3d94f726c6945abff6 | Implement multiple element highlighting feature | Hey 👋🏻
I'm in need of a feature that allows me to select multiple items in a single step. Currently, Shepherd highlights the overlay for the target element defined by the `attachTo.element` option.
To address this, I implemented an additional option, `extraHighlights`, in the `StepOptions`, along with an extra ... | diff --git a/shepherd.js/src/components/shepherd-modal.svelte b/shepherd.js/src/components/shepherd-modal.svelte
index 8fe8227f9..6dfbccdb0 100644
--- a/shepherd.js/src/components/shepherd-modal.svelte
+++ b/shepherd.js/src/components/shepherd-modal.svelte
@@ -13,13 +13,15 @@
export const getElement = () => element;... | 4 | 3 | 1 | [{"id": "G0", "claim": "The pull request should add some test coverage for the new multiple element highlighting feature.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "It is unclear why the shepherd-enabled and shepherd-target classes need to be added ... | null |
shipshapecode__shepherd__3051 | shipshapecode/shepherd | 3,051 | defect | 2e0d409e7c8d97480d2b0a727e7cdf22e2482b18 | dab55c4096286fc87b867c66d64120fca53fede7 | Allow arrow padding to be configured for a step. | Hi! First time contributer.
We have a >4px border radius on out shepherd-element, and our looking to increase it so the arrow doesn't overlay the border radius:

This PR allows you to configure the arrow padding using someth... | diff --git a/shepherd.js/src/step.ts b/shepherd.js/src/step.ts
index f7d1921c1..6599df8e4 100644
--- a/shepherd.js/src/step.ts
+++ b/shepherd.js/src/step.ts
@@ -68,9 +68,9 @@ export interface StepOptions {
advanceOn?: StepOptionsAdvanceOn;
/**
- * Whether to display the arrow for the tooltip or not
+ * Whet... | 4 | 2 | 1 | [{"id": "G0", "claim": "The arrow customization could perhaps be done via CSS in the consuming app instead of adding a padding option to the library.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The arrow padding could be read inline in the arrow() call ... | null |
shipwright-io__build__1020 | shipwright-io/build | 1,020 | defect | c5e815bdbb60181e30934f3819229effcc9c100a | 21875fbade9b2b80c2f77427b11e0beda9bc3a7c | Add source bundle image pruning option | # Changes
Add support to specify a prune setting to a `Build` source bundle specification. It supports `Never` (default, current behaviour), and `AfterPull`.
# Submitter Checklist
- [X] Includes tests if functionality changed/was added
- [X] Includes docs if changes are user-facing
- [X] [Set a kind label on... | diff --git a/cmd/bundle/main.go b/cmd/bundle/main.go
index 878d01798c..b7eb8dd194 100644
--- a/cmd/bundle/main.go
+++ b/cmd/bundle/main.go
@@ -5,10 +5,13 @@
package main
import (
+ "bytes"
"context"
+ "encoding/json"
"fmt"
"io/ioutil"
"log"
+ "net/http"
"os"
"path/filepath"
"strings"
@@ -16,6 +19,7 @@... | 5 | 2 | 2 | [{"id": "G0", "claim": "controller-gen rendered the new prune field in the BuildRun CRD as a plain string instead of an enum.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Set the environment variable REGISTRY_STORAGE_DELETE_ENABLED=true in hack/install-r... | null |
shipwright-io__build__1025 | shipwright-io/build | 1,025 | defect | 204731de57a2fd52135a0de278f8a6d083129ac8 | f4c5024f47d2ee6a47cd12d53336897efea00147 | Add Default RBAC for Non-Admins | # Changes
- Add view aggregate role for inspecting Shipwright Build objects
- Add edit aggregate role for managing Builds, BuildRuns, and BuildStrategies.
- Ensure aggregated user roles are installed in e2e testing
Fixes #1023
/kind feature
# Submitter Checklist
- [x] Includes tests if functionality c... | diff --git a/deploy/clusterrole-aggregate-edit.yaml b/deploy/clusterrole-aggregate-edit.yaml
new file mode 100644
index 0000000000..aa6998fe74
--- /dev/null
+++ b/deploy/clusterrole-aggregate-edit.yaml
@@ -0,0 +1,20 @@
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRole
+metadata:
+ labels:
+ rbac.authoriz... | 2 | 1 | 0 | [{"id": "G0", "claim": "The new default RBAC roles should be mentioned somewhere in the project documentation (e.g. a new rbac.md file).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Enabling the `get` verb for cluster-scoped strategies may expos... | null |
shipwright-io__build__1026 | shipwright-io/build | 1,026 | defect | 204731de57a2fd52135a0de278f8a6d083129ac8 | 3e5b6d79dd1d688f4f26c3d29abbeb540f3ba26a | Fix BuildKit and BuildAh image digest extraction | # Changes
[There was a change recently in BuildKit: its exported metadata file was changed to be formatted.](https://github.com/moby/buildkit/pull/2621) Previously it was a single line JSON. Now, it is a formatted JSON. That required a change to the logic to extract the digest.
I am also changing the e2e test to ... | diff --git a/samples/buildstrategy/buildah/buildstrategy_buildah_cr.yaml b/samples/buildstrategy/buildah/buildstrategy_buildah_cr.yaml
index e88161cb15..3db81ad85b 100644
--- a/samples/buildstrategy/buildah/buildstrategy_buildah_cr.yaml
+++ b/samples/buildstrategy/buildah/buildstrategy_buildah_cr.yaml
@@ -149,10 +149,1... | 2 | 1 | 0 | [{"id": "G0", "claim": "Since it is unclear whether BuildAh's locally calculated digest differing from the registry digest is a bug or by design, the BuildAh digest workaround should be held out of this PR and discussed in a separate issue, possibly skipping the new BuildAh e2e image-digest validation for now.", "categ... | null |
shipwright-io__build__1043 | shipwright-io/build | 1,043 | defect | 327033e693a6ff9d45749c36bb9356dde9d3fab0 | a808671f24433b2af73e20435bcc7d11ae7dcd3a | Introduce IBM Container Registry delete | # Changes
The IBM Container Registry (ICR) does not support the standard registry delete
call, similar to DockerHub. Instead, a custom API call needs to be used.
Add ICR login and ICR delete functions analog to the DockerHub functions.
Use the same error message for both custom delete functions.
Fix missin... | diff --git a/cmd/bundle/main.go b/cmd/bundle/main.go
index b4dcbc948e..e0d3440aea 100644
--- a/cmd/bundle/main.go
+++ b/cmd/bundle/main.go
@@ -12,11 +12,13 @@ import (
"io/ioutil"
"log"
"net/http"
+ "net/url"
"os"
"path/filepath"
"strings"
"github.com/docker/cli/cli/config"
+ "github.com/golang-jwt/jwt/... | 2 | 2 | 1 | [{"id": "G0", "claim": "icrDelete's request has no body, so the Content-Type header should not be set on it.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The HTTP requests use http.DefaultClient, which has no timeout; a context with timeout or a c... | null |
shipwright-io__build__1156 | shipwright-io/build | 1,156 | defect | 413d12ae1ddf665b6a7f81ff344ea210c09cd1b4 | f526773fa3d40ec9b3bfd10950cb13ef0e3d414c | Fixes cancelation of buildruns without a build reference | # Changes
The bug is that updates to an one-off build are not considered for reconcilation because they do not reference a build in their labels. Therefore, the label validation should only be considered for brs that have a build reference.
Fixes #1155.
# Submitter Checklist
- [ ] Includes tests if function... | diff --git a/pkg/reconciler/buildrun/controller.go b/pkg/reconciler/buildrun/controller.go
index e158f20d75..30cd422a3f 100644
--- a/pkg/reconciler/buildrun/controller.go
+++ b/pkg/reconciler/buildrun/controller.go
@@ -71,7 +71,7 @@ func add(ctx context.Context, mgr manager.Manager, r reconcile.Reconciler, maxCo
//... | 2 | 2 | 1 | [{"id": "G0", "claim": "The BuildRun update predicate's conditions do not represent when reconciliation is actually needed and are unnecessarily complex; it should reconcile a BuildRun update only when the BuildRun is set to canceled.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduce... | null |
shipwright-io__build__1176 | shipwright-io/build | 1,176 | defect | 5f6ef4eb2829c9b55434dfbc0f8cbd677fa73076 | 74fa43f972d7f77bb8110ad6667aab9c5171b00e | Add custom error for basic auth with HTTP | # Changes
Fixes https://github.com/shipwright-io/build/issues/1131
Fixes https://github.com/shipwright-io/build/issues/1133
Ref: https://github.com/shipwright-io/build/issues/1116
Check that basic auth is not used in combination with a HTTP endpoint.
Redact log output in case basic auth is used with inline... | diff --git a/cmd/git/main.go b/cmd/git/main.go
index 40876129d9..835b9f415b 100644
--- a/cmd/git/main.go
+++ b/cmd/git/main.go
@@ -493,6 +493,13 @@ func checkCredentials() (credentialType, error) {
case hasUsername && hasPassword && isHTTPSURL:
return typeUsernamePassword, nil
+ case hasUsername && hasPassword &... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new error case fires for any URL that is not HTTPS, so basic auth against a protocol that is neither http nor https (e.g. `htps`) would return the AuthUnexpectedHTTP error although HTTP is not what was used.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "int... | null |
shipwright-io__build__1196 | shipwright-io/build | 1,196 | defect | 390a3d7800e81c516d0c302875947e068e6787c5 | 26334b237c468b32ce36d38b3bb6bac10950c79f | Mark BuildSpec volume description field as deprecated | # Changes
As part of the movement from Alpha to Beta, this particular field was missing in the changes(deprecation comments and docs notes) made already at the API level. Therefore I'm adding it, to have this piece of work completed, before we move further in the process towards multi-version with Beta.
This adds... | diff --git a/deploy/crds/shipwright.io_buildruns.yaml b/deploy/crds/shipwright.io_buildruns.yaml
index ce0415f6f2..89746f53c1 100644
--- a/deploy/crds/shipwright.io_buildruns.yaml
+++ b/deploy/crds/shipwright.io_buildruns.yaml
@@ -838,7 +838,9 @@ spec:
- driver
type... | 1 | 1 | 1 | [{"id": "G0", "claim": "The description field should be retained in strategy specs so strategy authors can describe volumes, with deprecation applying only to Build/BuildRun, which may require splitting the common Go type between strategy spec and Build(Run) spec.", "category": "design", "verdict": "supported", "priori... | null |
shipwright-io__build__1370 | shipwright-io/build | 1,370 | defect | 4377cb756018282a02877963063dbd2179049cb2 | a7cf309d54d01153691c0ccdc6aa45d399a001d1 | Run buildah steps without privileged containers | # Changes
The current Shipwright strategy examples use privileged containers to run buildah.
With the current PR these have been updated to use more limited permissions/capabilities and align with Tekton task for OpenShift pipelines.
# Submitter Checklist
- [x] Includes tests if functionality changed/was ad... | diff --git a/pkg/reconciler/buildrun/resources/taskrun_test.go b/pkg/reconciler/buildrun/resources/taskrun_test.go
index 954b3793a2..1558bd62ab 100644
--- a/pkg/reconciler/buildrun/resources/taskrun_test.go
+++ b/pkg/reconciler/buildrun/resources/taskrun_test.go
@@ -70,7 +70,7 @@ var _ = Describe("GenerateTaskrun", fun... | 6 | 4 | 2 | [{"id": "G0", "claim": "Document the possible values of the storage-driver parameter in text form, ideally with a link to the Buildah documentation giving guidance on how to set it.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Reword the storage... | null |
shipwright-io__build__1384 | shipwright-io/build | 1,384 | defect | 7efcfbed49d7fe64b6fb9eed19501dc0ff1b49d1 | 0dd6ab0b073d630a8df7ba36e5a88be17ce33593 | Update release process for webhook certificate | # Changes
Part of https://github.com/shipwright-io/build/issues/1344
I am changing `make generate` to also run the hack/patch-crds-with-conversion.sh script so that the conversion block is now part of the CRDs that are committed.
With that, we are producing an incomplete release yaml where two things are missi... | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index be2ededd0c..9de48fec6d 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -178,7 +178,6 @@ jobs:
version: v0.13.0
- name: Install Shipwright Build
run: |
- make prepare-conversion
m... | 1 | 1 | 0 | [{"id": "G0", "claim": "The `Install Spruce` step (`run: make install-spruce`) that the pull request adds to the release workflow is not required there, and the reviewer asks the author to take a look at it (explicitly not a required review comment).", "category": "correctness", "verdict": "supported", "priority": "P2"... | null |
shipwright-io__build__1422 | shipwright-io/build | 1,422 | defect | 31e7555026a4984bd8b6b525109a7b066e515ef9 | a7dc03c22bfb02d829a66ee9d7643c256157d5ec | Add e2e test for v1beta1-localsource | # Changes
Fixes #1414
# Submitter Checklist
- [x] Includes tests if functionality changed/was added
- [x] Includes docs if changes are user-facing
- [x] [Set a kind label on this PR](https://prow.k8s.io/command-help#kind)
- [x] Release notes block has been filled in, or marked NONE
# Release Notes
``... | diff --git a/docs/build.md b/docs/build.md
index a5f7ca1dc4..882d64c8fa 100644
--- a/docs/build.md
+++ b/docs/build.md
@@ -100,6 +100,7 @@ The `Build` definition supports the following fields:
A `Build` resource can specify a Git repository or bundle image source, together with other parameters like:
+- `source.ty... | 1 | 1 | 1 | [{"id": "G0", "claim": "Undo the PR's changes to test/data/v1beta1/build_buildah_cr_local_source_upload.yaml and instead specify the source section in the BuildRun yaml, since the typical use case for type: Local is a Git source in the Build that is overwritten in the BuildRun.", "category": "design", "verdict": "suppo... | null |
shipwright-io__build__1588 | shipwright-io/build | 1,588 | defect | 6d5c94cdedcb6d9b44b2d3bbfe6a114052e3b90c | f3db05869a1757dcdc64ac626610bf8ef3f486d6 | Add StepOutOfMemory as reason for BuildRun failure | # Changes
When a BuildRun Pod fails because of too much ephemeral storage usage and is therefore evicted, then we expose this nicely in the BuildRun status as the condition reason is set to PodEvicted. In case a container went out of memory, we did not expose that at all in the BuildRun status while it is quite obvi... | diff --git a/docs/buildrun.md b/docs/buildrun.md
index 96f4ece9a6..9b420133ad 100644
--- a/docs/buildrun.md
+++ b/docs/buildrun.md
@@ -391,6 +391,7 @@ The following table illustrates the different states a BuildRun can have under i
| False | BuildRunAmbiguousBuild | Yes | The defin... | 2 | 2 | 0 | [{"id": "G0", "claim": "The OOM failure message's 'out-of-memory in pod' wording is incorrect, since it surfaces from the container status and applies to the step (container) only unlike pod-level Eviction, so the message should be reworded (suggested: \"buildrun pod %s failed in step %s due to out-of-memory, ...\") wi... | null |
shipwright-io__build__1634 | shipwright-io/build | 1,634 | defect | d35710a9e8042aa7911f9dbc3f93fc6a2f5af77a | ac2ea3e3240ffe06a4c8a575a92faa31aaf7eb55 | Native multi-arch ClusterBuildStrategy | # Changes
This PR proposes a sample multi-arch native ClusterBuildStrategy. The ClusterBuildStrategy runs as a main orchestrator pod. It creates one "agent" job for each architecture requested by the Build. The agent jobs are responsible for building the container image and coordinate with the orchestrator pod via m... | diff --git a/samples/v1beta1/buildstrategy/multiarch-native-buildah/buildstrategy_multiarch_native_buildah_cr.yaml b/samples/v1beta1/buildstrategy/multiarch-native-buildah/buildstrategy_multiarch_native_buildah_cr.yaml
new file mode 100644
index 0000000000..d7255b016d
--- /dev/null
+++ b/samples/v1beta1/buildstrategy/m... | 4 | 3 | 2 | [{"id": "G0", "claim": "The e2e test suite does not automatically run a smoke test for each sample build strategy, so coverage for the new multiarch native buildah strategy has to be added explicitly to the e2e test code.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": ... | null |
shipwright-io__build__1762 | shipwright-io/build | 1,762 | defect | 13d088f15d586aea31e018870d616e84ed5e5e7c | 7969040a5d836ea8bdea8955b44ea5ec3d08aec7 | Test connectivity to the Git or Registry host before accessing the source | # Changes
This aims to mitigate rare failures where a BuildRun pod runs in a namespace with NetworkPolicies present. Kubernetes defines that isolation rules are guaranteed to be applied before any container of the Pod is started, but allow rules are eventually applied. See https://kubernetes.io/docs/concepts/service... | diff --git a/cmd/bundle/main.go b/cmd/bundle/main.go
index a6cc065905..a4a4d0c153 100644
--- a/cmd/bundle/main.go
+++ b/cmd/bundle/main.go
@@ -73,6 +73,13 @@ func Do(ctx context.Context) error {
return fmt.Errorf("mandatory flag --image is not set")
}
+ // sanity-check the endpoint, if hostname extraction fails,... | 3 | 3 | 0 | [{"id": "G0", "claim": "Error strings should not start with a capital letter, so change the message in ExtractHostnamePort to \"unknown protocol: %s\".", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The two comments should drop \"sanity-\" to av... | null |
shipwright-io__build__178 | shipwright-io/build | 178 | defect | 8bc82ef7e6fdbbd64a40d9a3b3112ce63e58af61 | 8d2a536bf9b78fac0c1a81a672d0822a05aa9643 | Migrate taskrun tests to ginkgo | **Migrate the `generate_taskrun_test.go` to a ginkgo setup**
All test cases in `generate_taskrun_test.go` are rewritten into ginkgo.
All unit-tests under pkg are passing:
```
build chinchen$ GO111MODULE=on ginkgo pkg/...
[1588802605] Controllers Suite - 0/0 specs SUCCESS! 220.4µs PASS
[1588802605] Build Suite... | diff --git a/go.sum b/go.sum
index 1595b22a87..5c6287bfa8 100644
--- a/go.sum
+++ b/go.sum
@@ -901,6 +901,7 @@ github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81P
github.com/syndtr/gocapability v0.0.0-20170704070218-db04d3cc01c8/go.mod h1:hkRG7XYTFWNJGYcbNJQlaLq0fg1yr4J4t/NcTQtrfww=
githu... | 4 | 4 | 1 | [{"id": "G0", "claim": "The go.sum line adding github.com/tektoncd/pipeline v0.12.0 should not be there: run `go mod tidy` (pinning tekton to v0.10.1 if needed) and remove the line.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The identifier `clus... | null |
shipwright-io__build__1890 | shipwright-io/build | 1,890 | defect | 13db7148b815ea59ce3d6fea1eaa124448c02465 | 249218a0e8b43477e514b458e4899ed979e3536a | feat: add depth parameter in git source of v1beta1 API | # Changes
- Changes to add depth paramater for the Builds CRD and the Builds API.
- Unit test for the new depth parameter change in API
- Add a buildah based e2e test for testing git clone depth param
<!-- 🎉🎉🎉 Thank you for the PR!!! 🎉🎉🎉 -->
<!-- Describe your changes here- ideally you can get that desc... | diff --git a/deploy/crds/shipwright.io_builds.yaml b/deploy/crds/shipwright.io_builds.yaml
index 254b565326..c438e4210d 100644
--- a/deploy/crds/shipwright.io_builds.yaml
+++ b/deploy/crds/shipwright.io_builds.yaml
@@ -480,6 +480,13 @@ spec:
url:
description: URL describes the UR... | 9 | 7 | 1 | [{"id": "G0", "claim": "The clone step should also pass --depth=0 when the user sets depth to 0, so that a full-history clone can be requested.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "A case ... esac statement would be more appropriate than t... | null |
shipwright-io__build__1955 | shipwright-io/build | 1,955 | defect | f008fecb754077515f7afd092042870010599e6f | 4beb8cfa5423b85f10faa5c914deea77d40748b6 | Add volume for trivy | Breaking the changes of https://github.com/shipwright-io/build/pull/1885 into smaller prs to make review easier in the effort of better security practices for the containers that are used for the build process.
# Changes
Added env variables for trivy to configure writing to volumes instead of the root filesystem.
... | diff --git a/pkg/reconciler/buildrun/resources/image_processing.go b/pkg/reconciler/buildrun/resources/image_processing.go
index 0e3fda8e2c..e8a98a28dd 100644
--- a/pkg/reconciler/buildrun/resources/image_processing.go
+++ b/pkg/reconciler/buildrun/resources/image_processing.go
@@ -200,7 +200,24 @@ func SetupImageProce... | 1 | 1 | 1 | [{"id": "G0", "claim": "The trailing-dash trim should happen on the sanitized step name before the maxStepNameLength computation, so a worst-case name is not effectively reduced to 62 characters.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
shipwright-io__build__1998 | shipwright-io/build | 1,998 | defect | e790a6f15a9d1724245a3c197374910670730522 | d1a7fb2b40ef7a669838f83d616cfbcf764855a9 | Add volume for home directory to the build pod | Each container gets its own isolated emptyDir volume mounted at "/shp-writeable-home", to remove writes to the container's rootfs. Should be isolated volumes since when step 1 runs as user A but step 2 as user B, there will permission issues if this directory is shared. For Git SSH, it would actually mean that we put a... | diff --git a/pkg/reconciler/buildrun/resources/sources/bundle.go b/pkg/reconciler/buildrun/resources/sources/bundle.go
index ec39f1ab69..5cda81483a 100644
--- a/pkg/reconciler/buildrun/resources/sources/bundle.go
+++ b/pkg/reconciler/buildrun/resources/sources/bundle.go
@@ -66,7 +66,7 @@ func AppendBundleStep(cfg *conf... | 3 | 2 | 2 | [{"id": "G0", "claim": "Setting the HOME environment variable and mounting a writable home directory might break or interfere with Tekton's home directory feature, which can be disabled via a flag in the operator.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", ... | null |
shipwright-io__build__2015 | shipwright-io/build | 2,015 | defect | d8447f908f3d5465bf437d12517ede3d5b4100e9 | 157dab3ca91f0ba382d4b4cb07a03bdd775dd51f | Enable readOnlyRootFilesystem config for the build containers | # Changes
Enable `ReadOnlyRootFilesystem` config for better security practices.
Configure waiter container to write its lock file to a volume instead of rootfs.
Part of #1969
# Submitter Checklist
- [x] Includes tests if functionality changed/was added
- [x] Includes docs if changes are user-facing
- [... | diff --git a/docs/configuration.md b/docs/configuration.md
index 1abecc1dea..15e790c730 100644
--- a/docs/configuration.md
+++ b/docs/configuration.md
@@ -24,7 +24,7 @@ The following environment variables are available:
| `BUNDLE_CONTAINER_IMAGE` | Custom container image that pulls a bundle ima... | 1 | 1 | 1 | [{"id": "G0", "claim": "The documented default security contexts should include readOnlyRootFilesystem: true, both in the WAITER_CONTAINER_TEMPLATE row of docs/configuration.md and in the other container rows where the code now sets it.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "... | null |
shipwright-io__build__2131 | shipwright-io/build | 2,131 | defect | bc6e42c1aea096e7a0a870a4005f690642fc5afe | 0db6f904ec8642561cfaeb46d6931adabcfa8196 | Refactor[Tests]: Use ginkgo labels to differentiate PipelinRun tests from TaskRun tests |
## Changes
- added ginkgo labels `PipelinRun` for PipelineRun tests
- updated makefile and CI to utilize labels for filtering
This enables new PipelineRun tests can be written in any other file rather than one single file.
Fixes #2017
/kind cleanup
# Submitter Checklist
- [ ] Includes tests if func... | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index ab231145e5..d9ca9310c0 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -152,7 +152,7 @@ jobs:
make test-integration
- name: Test-PipelineRun
run: |
- BUILDRUN_EXECUTOR=PipelineRun ginkgo --... | 2 | 1 | 0 | [{"id": "G0", "claim": "The Makefile should provide make target(s) wrapping the PipelineRun test invocations currently inlined in ci.yml (e.g. test-integration-pipelinerun and test-e2e-pipelinerun), since there is no make target to run PipelineRun integration tests; raised as a follow-up suggestion rather than a change... | null |
shipwright-io__build__233 | shipwright-io/build | 233 | defect | 8457d1368ae9740732a19a33ddf9ac0c8ccb1718 | 7a1dd6619229ae4ce49e84e460e94420f03ea997 | Add image tag definition in buildrun spec | Fix issue:https://github.com/redhat-developer/build/issues/150
If imageURL exists in `build` and `buildRun` spec simultaneously, then the imageURL in build spec will be overwrote using the imageURL in buildRun spec. Finally, built image will be push into the imageURL in buildRun.
- Add e2e test for above scenario... | diff --git a/.travis.yml b/.travis.yml
index 63f30dc37c..31bb387bb7 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -10,4 +10,4 @@ script:
- make
# https://github.com/redhat-developer/build/issues/123
- make test-unit-coverage
- - make test-e2e TEST_IMAGE_REPO="$(./hack/install-registry.sh show):5000/redhat-dev... | 2 | 2 | 0 | [{"id": "G0", "claim": "The comment above the ImageURL lookup should be rewritten to describe what the code does (retrieve the imageURL from BuildRun or Build) instead of \"update output image in build spec\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", ... | null |
shipwright-io__build__237 | shipwright-io/build | 237 | defect | 4adbc55baf0b8d8d929ad10d83c99666fdac98ba | 4fbe658970b3980d4889b87e69f67bd46a87744d | Print the log of failed buildRun pod for debugging | Related issue: https://github.com/redhat-developer/build/issues/230
Currently, if our e2e test failed in travis, then it will only report below error:
```
Timed out after 550.000s.
BuildRun did not succeed
Expected
<v1.ConditionStatus>: False
to equal
<v1.ConditionStatus>: True
``... | diff --git a/test/e2e/e2e_test.go b/test/e2e/e2e_test.go
index 49195b92c6..39d9d466bd 100644
--- a/test/e2e/e2e_test.go
+++ b/test/e2e/e2e_test.go
@@ -26,6 +26,13 @@ var _ = Describe("For a Kubernetes cluster with Tekton and build installed", fun
createBuild(namespace, "buildah", "samples/build/build_buildah_cr.yam... | 2 | 2 | 1 | [{"id": "G0", "claim": "Add the build and buildRun status to the debug info so that build or buildRun failures are visible even when no pod is generated.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pod-log collection should be rewritten a... | null |
shipwright-io__build__265 | shipwright-io/build | 265 | defect | b5f637bbd9bceb07204a24ed2e0662f4bd4431af | 6a7ac44079f6d9adfe72873818b0d87256fd180a | Delete generated service account on end of the build run | Fixes #264
Adding logic to the build run controller that automatically deletes the generated services account on finish of the buildrun. I'd like to have feedback on https://github.com/SaschaSchwarze0/build/blob/sascha-264-delete-generated-sa/pkg/controller/buildrun/buildrun_controller.go#L174-L177 where I decided t... | diff --git a/pkg/controller/buildrun/buildrun_controller.go b/pkg/controller/buildrun/buildrun_controller.go
index 3782b46495..781397d00e 100644
--- a/pkg/controller/buildrun/buildrun_controller.go
+++ b/pkg/controller/buildrun/buildrun_controller.go
@@ -159,7 +159,24 @@ func (r *ReconcileBuildRun) Reconcile(request re... | 2 | 2 | 2 | [{"id": "G0", "claim": "Errors from deleting the generated service account are only logged and ignored instead of being returned to trigger reconciliation (with the Not Found error allowed through, as qu1queee proposed).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id... | null |
shipwright-io__build__273 | shipwright-io/build | 273 | defect | 97012ab56417ce1691a70896d90e490ea6a4d23c | d36ac77bcf906c75ffeb2854ab42f48c929ab429 | Adding some enhancements on the logging we define. | For #247
Most of the log statements should contain a message, a namespace, an object name at least.
- For INFO level, we try to keep it on a minimum.
- For DEBUG level, we try to add those on specific places, e.g. beginning/end of a function(e.g. Reconcile one). Or places we know we would be helpful later for deb... | diff --git a/pkg/controller/build/build_controller.go b/pkg/controller/build/build_controller.go
index 916c4a7111..e1f2762355 100644
--- a/pkg/controller/build/build_controller.go
+++ b/pkg/controller/build/build_controller.go
@@ -27,6 +27,8 @@ import (
// succeedStatus default status for the Build CRD
const succee... | 5 | 3 | 0 | [{"id": "G0", "claim": "The new log message should read \"finish reconciling build\" instead of \"finishing reconciling build\".", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The reconciliation-start log should stay at Info level (not be demote... | null |
shipwright-io__build__313 | shipwright-io/build | 313 | defect | 4f97b3e34f25bf72d29a6386352c06d07f21b628 | d88fc702ec862dba32477870165d2c25a0db5216 | BuildRun reconciles enhancement | Related to #282
This PR is with the idea of two things:
- Improve the reconciliation logic we do in the BuildRun, which should improve the binary performance
- Simplify the code and add more unit-tests around the logic of the BuildRun reconcile
Main problems this PR tries to tackle:
- The main problem is th... | diff --git a/pkg/controller/buildrun/buildrun_controller.go b/pkg/controller/buildrun/buildrun_controller.go
index 7e790a1940..5bccee221f 100644
--- a/pkg/controller/buildrun/buildrun_controller.go
+++ b/pkg/controller/buildrun/buildrun_controller.go
@@ -29,8 +29,11 @@ import (
"sigs.k8s.io/controller-runtime/pkg/sou... | 4 | 4 | 0 | [{"id": "G0", "claim": "The TaskRun watch's map function can be shortened to check the TaskRun's own buildrun label and return a single reconcile request instead of listing all TaskRuns.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The log lin... | null |
shipwright-io__build__427 | shipwright-io/build | 427 | defect | 07cdb879fae7189523fec224740ffc05a3dc71d2 | b77e9c95f86438cd3647c28927cd2fcab6b42b23 | Refactor config environment variable override code | Over time, there was some code duplication accumulated for overriding
configuration settings using an environment variable.
Introduce one common function to do the float slice override.
Combine `os.Getenv` and `if` case into one line, where possible.
Introduce basic Ginkgo test suite.
Add test cases for th... | diff --git a/pkg/config/config.go b/pkg/config/config.go
index cfbf8b01a7..ce69a6002f 100644
--- a/pkg/config/config.go
+++ b/pkg/config/config.go
@@ -71,8 +71,7 @@ func NewDefaultConfig() *Config {
// SetConfigFromEnv updates the configuration managed by environment variables.
func (c *Config) SetConfigFromEnv() e... | 1 | 1 | 0 | [{"id": "G0", "claim": "The test Expectations should use Gomega's `Equal` instead of `BeEquivalentTo`, as the type conversion done by the latter should not be needed for these assertions.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
shipwright-io__build__433 | shipwright-io/build | 433 | defect | c6b25b0621955853b9cb0e713a88e8a53b10ea4f | 07bf4a350af9c157418480c599a1652586a4e0f9 | Make build operator leader durations configurable | In case the build operator needs to be started with very specific leader
lease duration configuration, there is currently no way to configure it.
Introduce new section in build configuration that contains some of the
manager options to be configurable and passed through to the manager.
Pass new section values a... | diff --git a/cmd/manager/main.go b/cmd/manager/main.go
index 1a63f32433..a5a2d00818 100644
--- a/cmd/manager/main.go
+++ b/cmd/manager/main.go
@@ -102,11 +102,20 @@ func main() {
}
defer r.Unset()
+ buildCfg := buildconfig.NewDefaultConfig()
+ if err := buildCfg.SetConfigFromEnv(); err != nil {
+ ctxlog.Error(ct... | 3 | 3 | 3 | [{"id": "G0", "claim": "Add a unit test covering the case where BUILD_OPERATOR_LEADER_ELECTION_NAMESPACE is set.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new environment variables are undocumented; add documentation (e.g. a new file in the doc... | null |
shipwright-io__build__456 | shipwright-io/build | 456 | defect | b6d900f96a9aff44df4b7572bfbe407abb25e9af | ba143a7ba288a76a870ff8b19a36ceb3cb735a52 | Refactor metrics observe calls to report metrics as soon as possible | Based on the suggestion by @SaschaSchwarze0, there is a gap in the metrics reporting. At the moment, the metrics are observed when the BuildRun is done. However, a metric like the BuildRun Establised Duration could be reported as soon as the BuildRun is available in the system. Furthermore, in case the BuildRun fails, ... | diff --git a/pkg/controller/buildrun/buildrun_controller.go b/pkg/controller/buildrun/buildrun_controller.go
index 51d2c5a176..46df52a3a2 100644
--- a/pkg/controller/buildrun/buildrun_controller.go
+++ b/pkg/controller/buildrun/buildrun_controller.go
@@ -337,6 +337,23 @@ func (r *ReconcileBuildRun) Reconcile(request re... | 1 | 1 | 1 | [{"id": "G0", "claim": "The BuildRunEstablishObserve call added right after TaskRun creation cannot work there because buildRun.Status.StartTime is not yet set at that point (it is only set later when the TaskRun has started), so the call dereferences a nil StartTime.", "category": "correctness", "verdict": "supported"... | null |
shipwright-io__build__475 | shipwright-io/build | 475 | defect | c2e796a215644118778704125430f2be143242ea | edde66c44a5ac39d3b94d6a0bcde1523994bcab9 | Add conditions pkg to support Build CRDs to operate on Conditions | This is not yet fixing https://github.com/shipwright-io/build/issues/307 , but rather the base framework so that we can operate on Conditions. We would need a new PR for how do we populate the Conditions field in the BuildRun.
This includes
- Adding a generic conditions pkg, so that any controller that needs to s... | diff --git a/deploy/crds/build.dev_buildruns_crd.yaml b/deploy/crds/build.dev_buildruns_crd.yaml
index cd735f016d..865f14ea4d 100644
--- a/deploy/crds/build.dev_buildruns_crd.yaml
+++ b/deploy/crds/build.dev_buildruns_crd.yaml
@@ -311,6 +311,35 @@ spec:
description: CompletionTime is the time the build... | 11 | 10 | 1 | [{"id": "G0", "claim": "LastTransitionTime should also be marked `// +optional` because it can be empty at the beginning.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The interface `StatusConnect` might be better named `StatusConditions`, unless `... | null |
shipwright-io__build__484 | shipwright-io/build | 484 | defect | f0b64878aeae0a86e5f5a1e48273a81d324a158a | b0dc71a53d44ca3e570a2bcb098e43d3d451e7f1 | Enhance GetTRTillDesiredReason func | Return the actual reason and then enhance the ginkgo assertions to display the actual reason in case of an error when calling this function. This is related with https://github.com/shipwright-io/build/pull/481
The above will provide users with the following insights in case of a failed assertion in ginkgo:
![Scre... | diff --git a/test/integration/buildruns_to_taskruns_test.go b/test/integration/buildruns_to_taskruns_test.go
index 9df1141d01..8736ab0f11 100644
--- a/test/integration/buildruns_to_taskruns_test.go
+++ b/test/integration/buildruns_to_taskruns_test.go
@@ -75,14 +75,14 @@ var _ = Describe("Integration tests BuildRuns and... | 3 | 3 | 0 | [{"id": "G0", "claim": "The failure message on the Pending assertion should include the reason that was expected, not only the actual one.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The failure message on the Running assertion should include... | null |
shipwright-io__build__524 | shipwright-io/build | 524 | defect | 72c80cee0d3f696de3f52f2bf68ec3eb2df63d34 | 8fdea512552199f4a38db9f6d9bcbe84a2ec56b8 | GitHub Actions for unit and integration tests | Picking up where #507 left off.
- Add more granular Makefile targets for test dependencies
- Add new Github Action job to run integration tests
- Update Makefile to install ginkgo and gocov via temporary
go modules. This ensures the binaries are installed via `go get`,
without having local vendor inconsisten... | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000000..5fc89cd063
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,61 @@
+on:
+ pull_request:
+ branches: [ master ]
+ push:
+ branches: [ master ]
+name: ci/github
+jobs:
+ unit:
+ strateg... | 1 | 1 | 0 | [{"id": "G0", "claim": "The ginkgo and gocov install logic should be consolidated into a single parameterized shell script under the hack/ directory, to keep the Makefile simpler and avoid repetition.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.