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
seladb__PcapPlusPlus__1783
seladb/PcapPlusPlus
1,783
defect
68546556e425e1847c7ed38044d31d67151238b5
667c0c5b9df4aea9dbded78243b92518cb60436e
Refactor `PcapLiveDevice::doOpen`
- Throw an exception in case of a failure - Use `internal::PcapHandle` internally to make sure the `pcap_t` gets released in case of an error
diff --git a/Pcap++/header/PcapLiveDevice.h b/Pcap++/header/PcapLiveDevice.h index 8b3754a50c..ad1d0445a6 100644 --- a/Pcap++/header/PcapLiveDevice.h +++ b/Pcap++/header/PcapLiveDevice.h @@ -600,7 +600,7 @@ namespace pcpp void getStatistics(IPcapDevice::PcapStats& stats) const override; protected: - pcap_t* doO...
3
3
0
[{"id": "G0", "claim": "The error-logging code should use PcapHandle's getLastError helper instead of calling pcap_geterr on the raw handle.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The if/else chain handling pcap_set_tstamp_precision's re...
null
seladb__PcapPlusPlus__1791
seladb/PcapPlusPlus
1,791
defect
652c7edf7c4550eee0e60b7ae98365e4fd7ac2db
7e3b1d25c7434412087bffa8b84cd97ce37640e6
Simplified function names for fetching pcap live devices.
This PR shortens all `PcapLiveDeviceList::getPcapLiveDeviceBy***` methods to `PcapLiveDeviceList::getDeviceBy***`. IMO, having `PcapLiveDevice` in the method name is redundant as the list name already informs the user of the type of devices it contains.
diff --git a/Examples/ArpSpoofing/main.cpp b/Examples/ArpSpoofing/main.cpp index 27e72a6769..578645ba3b 100644 --- a/Examples/ArpSpoofing/main.cpp +++ b/Examples/ArpSpoofing/main.cpp @@ -237,7 +237,7 @@ int main(int argc, char* argv[]) EXIT_WITH_ERROR("Gateway address is not valid"); } - pcpp::PcapLiveDevice* pI...
2
2
0
[{"id": "G0", "claim": "Add a blank line between the deprecated `getPcapLiveDeviceByIpOrName` declaration and the following new `getDeviceByIpOrName` declaration in PcapLiveDeviceList.h.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add a blank...
null
seladb__PcapPlusPlus__1823
seladb/PcapPlusPlus
1,823
defect
a87c74a0361e38728bf098d4be8091c52d6a1718
c8bd0990236f06027b24770b5c6bb41b9db3a748
#1754 Add Modbus Support
- Add ModbusLayer first implementation with header parsing only (no test included)
diff --git a/Packet++/CMakeLists.txt b/Packet++/CMakeLists.txt index b6e25bab0f..36196fac2e 100644 --- a/Packet++/CMakeLists.txt +++ b/Packet++/CMakeLists.txt @@ -29,6 +29,7 @@ add_library( src/Layer.cpp src/LdapLayer.cpp src/LLCLayer.cpp + src/ModbusLayer.cpp src/MplsLayer.cpp src/NdpLayer.cpp src/N...
16
14
2
[{"id": "G0", "claim": "ModbusLayer only has a zero-argument constructor; per repo conventions it should also have a constructor used by the parsing flow and one that lets users build the layer with arguments like transactionId, unitId and functionCode.", "category": "design", "verdict": "supported", "priority": "P1", ...
null
seladb__PcapPlusPlus__1827
seladb/PcapPlusPlus
1,827
defect
5e804bd586543cc38cf5ee4cd90b6c424541cf49
f3659286385c96a9e07c7b1a83932fe80d6c7563
Added new overload `sendPacket(Packet const& packet, bool checkMtu)`
Added a new overload to `sendPacket` that takes a `Packet const&` instead of `Packet*` as parameter due to reference parameters being safer to use when `nullptr` isn't a valid value. Deprecated `sendPacket(Packet* packet, bool checkMtu)` and updated all usages in examples and tests to the new version.
diff --git a/Examples/ArpSpoofing/main.cpp b/Examples/ArpSpoofing/main.cpp index 578645ba3b..64865cf184 100644 --- a/Examples/ArpSpoofing/main.cpp +++ b/Examples/ArpSpoofing/main.cpp @@ -82,7 +82,7 @@ pcpp::MacAddress getMacAddress(const pcpp::IPv4Address& ipAddr, pcpp::PcapLiveDe } // send the arp request and wa...
1
1
0
[{"id": "G0", "claim": "The new sendPacket(Packet const&...) overload would be nicer if it failed fast with an early `if (!checkMtu) { return sendPacket(*rawPacket, false); }` instead of nesting the whole MTU check inside `if (checkMtu)`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope...
null
seladb__PcapPlusPlus__1829
seladb/PcapPlusPlus
1,829
defect
a49a79e0b67b402ad75ffa96c1795def36df75c8
cfdcf634a6d72449a8ca11a0aaed6629f4144f06
Malformed packet with incorrect payload length in header caused exception
When a malformed IP packet looks like a fragment and contains an invalid payload length in the header, the IPRessembly class trusts the payload length in header and can cause an exception if the length is more than the real length of the payload. A check is introduced validate the lengths and return MALFORMED_PACKET if...
diff --git a/Packet++/src/IPReassembly.cpp b/Packet++/src/IPReassembly.cpp index 6151d45ef7..cf00c81211 100644 --- a/Packet++/src/IPReassembly.cpp +++ b/Packet++/src/IPReassembly.cpp @@ -55,6 +55,7 @@ namespace pcpp virtual uint8_t* getIPLayerPayload() = 0; virtual size_t getIPLayerPayloadSize() = 0; + virtual...
3
2
2
[{"id": "G0", "claim": "The pull request should add a regression test for the malformed-packet crash in the IP fragmentation test file.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The test reads a fixture file PcapExamples/ip4_bad_fragment.txt that w...
null
seladb__PcapPlusPlus__1836
seladb/PcapPlusPlus
1,836
defect
5e804bd586543cc38cf5ee4cd90b6c424541cf49
b2dc80f9575597d861ad0fd42f70bb3c8a25e152
Update `Asn1IntegerRecord` to support integers of any size
As part of https://github.com/seladb/PcapPlusPlus/issues/1835, X509 certificates require support for ASN.1 integers of more than 4 bytes
diff --git a/Packet++/header/Asn1Codec.h b/Packet++/header/Asn1Codec.h index 1d0f74da26..d01b720a19 100644 --- a/Packet++/header/Asn1Codec.h +++ b/Packet++/header/Asn1Codec.h @@ -4,6 +4,7 @@ #include <memory> #include <typeinfo> #include <stdexcept> +#include <sstream> #include "PointerVector.h" /// @file @@ -37...
2
1
0
[{"id": "G0", "claim": "Big integers would be better stored as a vector<uint8_t> in little-endian encoding instead of the std::string hex representation the PR uses.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The value-does-not-fit case in BigInt::ge...
null
seladb__PcapPlusPlus__1837
seladb/PcapPlusPlus
1,837
defect
74407e6470c68bf8217f294b457ca4610eddc260
b655c178f7cf09009022501869c566c354c4d276
Add decoding and encoding of `UTCTime` and `GeneralizedTime` ASN.1 records
As part of https://github.com/seladb/PcapPlusPlus/issues/1835, X509 certificates require support for ASN.1 records of `UTCTime` and `GeneralizedTime`
diff --git a/Common++/header/SystemUtils.h b/Common++/header/SystemUtils.h index ad15461558..faa1c0e03d 100644 --- a/Common++/header/SystemUtils.h +++ b/Common++/header/SystemUtils.h @@ -5,6 +5,7 @@ #include <cstdint> #include <string> #include <vector> +#include <ctime> /// @file @@ -161,6 +162,12 @@ namespace...
2
1
0
[{"id": "G0", "claim": "The doxygen comments of Asn1TimeRecord's getValue and getValueAsString should follow the brief, params, return, throws order; currently @return (getValue) and @throws (getValueAsString) appear before the @param lines.", "category": "documentation", "verdict": "supported", "priority": "P2", "scop...
null
seladb__PcapPlusPlus__1847
seladb/PcapPlusPlus
1,847
defect
147f9015de30609f70155f40df92accbe521e758
b2f29497c163a6ecf88e398d2e8256b75a2a854d
Added sized overloads for buffer construction of `IPv6Address` and `MacAddress`.
- Added new constructors: for when the buffer size isn't guaranteed. - `IPv6Address(const uint8_t* buf, size_t size)` - `MacAddress(const uint8_t* buf, size_t size)` - Added sized overloads of `copyTo` - `size_t IPv6Address::copyTo(uint8_t* buf, size_t size)` - `size_t MacAddress::copyTo(uint8_t* buf, siz...
diff --git a/Common++/header/IpAddress.h b/Common++/header/IpAddress.h index d93a341b70..64b7904a01 100644 --- a/Common++/header/IpAddress.h +++ b/Common++/header/IpAddress.h @@ -8,6 +8,8 @@ #include <array> #include <memory> +#include "DeprecationUtils.h" + /// @file /// @namespace pcpp @@ -39,8 +41,21 @@ name...
10
4
0
[{"id": "G0", "claim": "The unsized overloads that assume the caller's buffer is exactly or at least the address size (the fixed-size-array constructors and copyTo into unsized buffers) should perhaps be deprecated, or removed to be more C++.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "p...
null
seladb__PcapPlusPlus__1849
seladb/PcapPlusPlus
1,849
defect
a87c74a0361e38728bf098d4be8091c52d6a1718
3bf6b8dbe4f99fd8231a628e97e20865adfae5bf
Add decoding and encoding of `ObjectIdentifier` ASN.1 records
As part of https://github.com/seladb/PcapPlusPlus/issues/1835, X509 certificates require support for ASN.1 records of type `ObjectIdentifier`
diff --git a/Packet++/header/Asn1Codec.h b/Packet++/header/Asn1Codec.h index 978c1e1145..0a9f9bfbbb 100644 --- a/Packet++/header/Asn1Codec.h +++ b/Packet++/header/Asn1Codec.h @@ -574,4 +574,91 @@ namespace pcpp return {}; } }; + + /// @class Asn1ObjectIdentifier + /// Represents an ASN.1 Object Identifier (OID...
2
2
0
[{"id": "G0", "claim": "The comments should explain what the magic number 40 in the OID first-byte decoding is.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The OID decode loop should have comments saying which step of the ASN.1 spec each part p...
null
seladb__PcapPlusPlus__1850
seladb/PcapPlusPlus
1,850
defect
644e4ff9f4600d293c0137ca7d6088b0f37e09dc
6b7fd2bb343fcd8779ab69f53f12d901e41f1267
Add decoding and encoding of `BitString` ASN.1 records
As part of https://github.com/seladb/PcapPlusPlus/issues/1835, X509 certificates require support for ASN.1 records of type `BitString`
diff --git a/Packet++/header/Asn1Codec.h b/Packet++/header/Asn1Codec.h index 0a9f9bfbbb..94ec2410a8 100644 --- a/Packet++/header/Asn1Codec.h +++ b/Packet++/header/Asn1Codec.h @@ -5,6 +5,7 @@ #include <typeinfo> #include <stdexcept> #include <sstream> +#include <bitset> #include "PointerVector.h" /// @file @@ -66...
5
5
0
[{"id": "G0", "claim": "In BitSet::toBytes the result vector's size (known to be m_Data.size()) should be reserved in one call instead of relying on push_back auto-reallocation.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In BitSet::toBytes the l...
null
seladb__PcapPlusPlus__1851
seladb/PcapPlusPlus
1,851
defect
0588d88eca769a02e660161f8965ef6152ada90e
84207b2b182fab5d6a1fca7c95f389a1e0643e2a
Add decoding and encoding of ASN.1 string records
As part of https://github.com/seladb/PcapPlusPlus/issues/1835, X509 certificates require support for ASN.1 records of types `UTF8String`, `PrintableString` and `IA5String` - Create an abstract template base class `Asn1StringRecord` - Refactor `Asn1OctetStringRecord` to inherit from `Asn1StringRecord` - Create the...
diff --git a/Packet++/header/Asn1Codec.h b/Packet++/header/Asn1Codec.h index dd7d47804d..57d4cbbca7 100644 --- a/Packet++/header/Asn1Codec.h +++ b/Packet++/header/Asn1Codec.h @@ -492,21 +492,21 @@ namespace pcpp Asn1EnumeratedRecord() = default; }; - /// @class Asn1OctetStringRecord - /// Represents an ASN.1 rec...
3
2
1
[{"id": "G0", "claim": "The enable_if clause on the Asn1StringRecord template may be redundant, since the first template parameter is already constrained to the type Asn1UniversalTagType.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Asn1St...
null
seladb__PcapPlusPlus__1854
seladb/PcapPlusPlus
1,854
defect
8b7fef4c86e71df7a0bb28a133855bca72b82e32
ce2bb1ea4233551f486f331a085043c5ffe24d75
Refactor: Use std::make_unique where applicable
Replaced direct usage of new with std::unique_ptr with std::make_unique for improved memory safety and conciseness in C++14 and later. Introduced static factory methods for PcapLiveDevice and WinPcapLiveDevice to allow std::unique_ptr creation while keeping their constructors protected.
diff --git a/Common++/header/IpAddress.h b/Common++/header/IpAddress.h index d93a341b70..b598685a96 100644 --- a/Common++/header/IpAddress.h +++ b/Common++/header/IpAddress.h @@ -625,11 +625,11 @@ namespace pcpp { if (address.isIPv4()) { - m_IPv4Network = std::unique_ptr<IPv4Network>(new IPv4Network(addre...
3
3
3
[{"id": "G0", "claim": "DpdkDevice's constructor is not public, so std::make_unique cannot be used to construct it in DpdkDeviceList.cpp.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "PfRingDevice's constructor is not public, so std::make_unique ca...
null
seladb__PcapPlusPlus__186
seladb/PcapPlusPlus
186
defect
f4727aec125f55d94fe4401ff7b963af3b7f1ea9
87ce3c2c0bdc737dca2a0335dd9c02edaeed59a7
Many improvements in class MacAddress
- The implementation of many constructors and methods have been moved into header file, the implementation of method `operator==` is simplified and optimized. - Two errors in method `init()` were fixed: 1. The buffer overflow occures when the length of input argument is more than 6. 2. For incorrect MAC addres...
diff --git a/Common++/header/MacAddress.h b/Common++/header/MacAddress.h index 753be23f2b..e82b57052f 100644 --- a/Common++/header/MacAddress.h +++ b/Common++/header/MacAddress.h @@ -2,8 +2,13 @@ #define PCAPPP_MACADDRESS #include <stdint.h> +#include <string.h> #include <string> -#include <memory> + +#if __cplusp...
2
2
0
[{"id": "G0", "claim": "Move the new MacAddress unit tests out of Tests/Packet++Test/main.cpp into the existing MacAddress unit test in Tests/Pcap++Test/main.cpp, where UT for MacAddress already exists.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "clai...
null
seladb__PcapPlusPlus__1869
seladb/PcapPlusPlus
1,869
defect
824ea1461ba23528097a9de20c23896ad03e47d3
4bee5961cab01d219d5056a40f106addea24e0cb
Adding AccurateECN flag to TCP struct
https://datatracker.ietf.org/doc/draft-ietf-tcpm-accurate-ecn/ Wireshark and other pcap parsing libraries have started to include the accurateECN TCP flag in their breakdowns Everything builds and all tests pass
diff --git a/Packet++/header/TcpLayer.h b/Packet++/header/TcpLayer.h index 43b0adac47..f09e448417 100644 --- a/Packet++/header/TcpLayer.h +++ b/Packet++/header/TcpLayer.h @@ -28,7 +28,10 @@ namespace pcpp /// Acknowledgment number uint32_t ackNumber; #if (BYTE_ORDER == LITTLE_ENDIAN) - uint16_t reserved : 4; + ...
2
2
0
[{"id": "G0", "claim": "The IPv4 assertion in the new TcpPacketWithAccurateEcnParsing test is probably redundant and should be dropped.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A pcap/pcapng file containing the new AccurateECN test packet should b...
null
seladb__PcapPlusPlus__1894
seladb/PcapPlusPlus
1,894
defect
6d8b7474a82941b7206a07682fe482c81accf44f
37278d07049c32b9db7c4ba80ca91ba26c40c710
Add Base64 encoding and decoding
Part of https://github.com/seladb/PcapPlusPlus/issues/1835 This PR introduces Base64 encoding and decoding functionality to PcapPlusPlus, based on the implementation from https://github.com/tobiaslocker/base64 The primary motivation is to support encoding and decoding of [PEM](https://en.wikipedia.org/wiki/Privac...
diff --git a/Common++/header/GeneralUtils.h b/Common++/header/GeneralUtils.h index 7e49fa12fc..103273533d 100644 --- a/Common++/header/GeneralUtils.h +++ b/Common++/header/GeneralUtils.h @@ -55,6 +55,60 @@ namespace pcpp return (number + mask) & ~mask; } + /// @class Base64 + /// A class for encoding and decodin...
4
1
1
[{"id": "G0", "claim": "decodeToByteArray should return the required size instead of throwing when the result buffer is too small, so low-level API callers can reallocate immediately rather than call/catch/reallocate repeatedly.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {...
null
seladb__PcapPlusPlus__1906
seladb/PcapPlusPlus
1,906
defect
be201c402e1721c053a70cc0e6aaf5216543e9a2
dd586aa56294118a89fa2e80ee7c6990c312b1e9
Add PEM codec
Part of https://github.com/seladb/PcapPlusPlus/issues/1835. Privacy-Enhanced Mail (PEM) is a file format used to store and send cryptographic keys, certificates, and other data for secure communication. This PR includes a PEM encoder and decoder that will later be used in `X509Decoder` to read or write data.
diff --git a/Packet++/CMakeLists.txt b/Packet++/CMakeLists.txt index 5d82a7e9d9..085c0515b0 100644 --- a/Packet++/CMakeLists.txt +++ b/Packet++/CMakeLists.txt @@ -38,6 +38,7 @@ add_library( src/PacketTrailerLayer.cpp src/PacketUtils.cpp src/PayloadLayer.cpp + src/PemCodec.cpp src/PPPoELayer.cpp src/Radi...
1
1
0
[{"id": "G0", "claim": "The PEM codec code inconsistently mixes `std::size_t` and `size_t` spellings and should use one consistently (the nit points at the std::size_t member declarations in PemCodec.h).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
seladb__PcapPlusPlus__1913
seladb/PcapPlusPlus
1,913
defect
bdf0dbff15517fe24e528d31e425f68e3bdb4a21
16d2acc863041adb4e8fbcbdd92752dd3fd8ceb9
Export/import X509 certificates to PEM format
Part of https://github.com/seladb/PcapPlusPlus/issues/1835.
diff --git a/Packet++/header/X509Decoder.h b/Packet++/header/X509Decoder.h index 0fb33515f9..a4be84b2e3 100644 --- a/Packet++/header/X509Decoder.h +++ b/Packet++/header/X509Decoder.h @@ -766,6 +766,19 @@ namespace pcpp /// @throws An exception if the file doesn't exist, cannot be read or contains invalid data sta...
1
1
0
[{"id": "G0", "claim": "Initialize derDataBuffer with std::make_unique<uint8_t[]>(derData.size()) instead of an explicit new-expression in X509Certificate::fromPEM.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
seladb__PcapPlusPlus__1915
seladb/PcapPlusPlus
1,915
defect
067e752798355eb5ecd2b556ff464b28ff00ed5d
e294e88c828758de23785bb5404ef2b9aca208de
Parse X509 certificates in SSL/TLS messages
Part of https://github.com/seladb/PcapPlusPlus/issues/1835.
diff --git a/Common++/src/Logger.cpp b/Common++/src/Logger.cpp index 96fd74d314..6c72bd4a9b 100644 --- a/Common++/src/Logger.cpp +++ b/Common++/src/Logger.cpp @@ -64,6 +64,8 @@ namespace pcpp return "OFF"; case LogLevel::Error: return "ERROR"; + case LogLevel::Warn: + return "WARN"; case LogLevel::Info...
2
2
2
[{"id": "G0", "claim": "The log when certificate data is incomplete in SSLx509Certificate::getRootAsn1Record should probably be an error rather than a warning.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The log when certificate data is incomplet...
null
seladb__PcapPlusPlus__1926
seladb/PcapPlusPlus
1,926
defect
50c8430f96a2d7e5d2be8f2ad0c357d70f505654
0560caa71bc7fbd5cd9d6180fdb178aeb3ebc8ae
Fix tests to work with out of source builds.
## Summary This PR refactors the project to output the PCPP Test executables inside the default output directory and updates the CI `build_and_test` workflow to use the new location. ## Rationale The previous implementation used built the test executables within the source directories. The rationale for that w...
diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 603987ed80..d9ea2857b2 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -130,7 +130,7 @@ jobs: - name: Test PcapPlusPlus run: | . .venv/bin/activate - ...
3
2
0
[{"id": "G0", "claim": "The changes to the run test scripts go beyond what the PR needs - the run_tests.py refactor (the new Runner class) and the rewritten run_tests_windows.py look unrelated to the out-of-source-builds fix - so they should be reduced to the minimum changes necessary, leaving the larger refactor to a ...
null
seladb__PcapPlusPlus__1927
seladb/PcapPlusPlus
1,927
defect
a4b12efe86c33fa21d4361caa73c08ff00f274dc
bbc8de3a1569de4bfc05ddc4ea36caafcb54a1b3
Bugfixes in X509 decoder
This PR fixes a few bugs: - Support cases where the "version" field doesn't exist (the version in this case should be v1) - Support cases where neither "extensions", "subject unique ID" and "issuer unique ID" exists - Add test for these cases
diff --git a/Packet++/header/X509Decoder.h b/Packet++/header/X509Decoder.h index a4be84b2e3..e5c2bdffb3 100644 --- a/Packet++/header/X509Decoder.h +++ b/Packet++/header/X509Decoder.h @@ -596,10 +596,6 @@ namespace pcpp int m_ExtensionsOffset = -1; X509TBSCertificate(Asn1SequenceRecord* root); - int getIndex...
1
1
1
[{"id": "G0", "claim": "The new assertion comparing getNotAfter() to 2125-07-24 08:27:07 fails on mingw because the 32-bit time_t overflows and the date comes out as 1970-01-01 00:00:0X.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
seladb__PcapPlusPlus__1928
seladb/PcapPlusPlus
1,928
defect
a4b12efe86c33fa21d4361caa73c08ff00f274dc
1a9d44676e8489454f8dd1a3b003991efc3592e7
Replace packet creation macros in tests with cpp functions.
This PR adds machinery to replace `READ_FILE_AND_CREATE_PACKET` and `READ_FILE_AND_CREATE_PACKET_LINKTYPE` macro usages with cpp function `pcpp_tests::utils::createPacketFromHexResource`. Notable classes and functions: - **ResourceProvider:** a resource repository class that handles finding and loading resource fil...
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 61d5722963..37027fd392 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -34,7 +34,7 @@ repos: hooks: - id: clang-format args: ["--style=file", "-i"] # Use the .clang-format file for configuration and apply al...
10
7
0
[{"id": "G0", "claim": "The new test-utility headers should use the .h extension instead of .hpp to stay consistent with the other headers in the project.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "resource.data should be initialized from ve...
null
seladb__PcapPlusPlus__1957
seladb/PcapPlusPlus
1,957
defect
07f33c0adbf954be0ba9c5c675e68e24263e8c77
44dc6e28a620f9cdf39a888d870491445447ed6f
Added const qualified match methods to BfpFilterWrapper.
This PR updates `BpfFilterWrapper` to allow matching with a packet while the filter is marked as `const`. It also extends the wrapper with C++11 move constructors and a new constructor to create an instance with a set filter. It additionally adds `const` qualified match methods to `GenericFilter`.
diff --git a/Pcap++/header/PcapFilter.h b/Pcap++/header/PcapFilter.h index e11a54a33d..cdc1da2e0c 100644 --- a/Pcap++/header/PcapFilter.h +++ b/Pcap++/header/PcapFilter.h @@ -78,31 +78,35 @@ namespace pcpp /// A wrapper class for BPF filtering. Enables setting a BPF filter and matching it against a packet class Bpf...
8
6
1
[{"id": "G0", "claim": "The author asks for a second opinion on whether the onLinkmismatch parameter controlling recompilation on link-type mismatch is a good addition to the matches() API.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new matches()...
null
seladb__PcapPlusPlus__1964
seladb/PcapPlusPlus
1,964
defect
098dd4bced811e3873763ae3d35b7dc618eda0fd
580a14e3ec683fa1d7246d02e1483eac5b2366b2
Fix inclusive `parseUntil` condition in the main packet parse loop.
The `parseUntil` is now fully inclusive and parses until it exhausts a sequence of target protocol types. This allows specifying target protocols that allow chaining of the same protocol types. Simplified the rollback mechanism.
diff --git a/Packet++/src/Packet.cpp b/Packet++/src/Packet.cpp index 4ff44a2ba6..50ecd8b620 100644 --- a/Packet++/src/Packet.cpp +++ b/Packet++/src/Packet.cpp @@ -63,39 +63,95 @@ namespace pcpp m_FirstLayer = createFirstLayer(linkType); - m_LastLayer = m_FirstLayer; - Layer* curLayer = m_FirstLayer; + // As t...
3
3
1
[{"id": "G0", "claim": "Remove the commented-out old parse-loop code from Packet.cpp before merging.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use `auto*` instead of `Layer*` for the parse-loop cursor declaration.", "category": "maintainabi...
null
seladb__PcapPlusPlus__1986
seladb/PcapPlusPlus
1,986
defect
948449c83874215abaca12c5059998a84667eb7d
ad34c72b7fb45d70a8d0c313b4ac899897d3e412
Deprecate match filter with packet
As per this comment chain: https://github.com/seladb/PcapPlusPlus/pull/1957#discussion_r2365562736 Deprecated all instances of `matchPacketWithFilter`.
diff --git a/Examples/IPDefragUtil/main.cpp b/Examples/IPDefragUtil/main.cpp index 24930fe7ad..929ec5af39 100644 --- a/Examples/IPDefragUtil/main.cpp +++ b/Examples/IPDefragUtil/main.cpp @@ -125,7 +125,7 @@ void processPackets(pcpp::IFileReaderDevice* reader, pcpp::IFileWriterDevice* wr if (filterByBpf) { // ...
3
1
0
[{"id": "G0", "claim": "The nullptr guard added in BpfCriteriaSplitter::getFileNumber keeps the original behaviour of silently returning false for a null packet, and the author asks whether throwing an exception instead might be better.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduce...
null
seladb__PcapPlusPlus__2042
seladb/PcapPlusPlus
2,042
defect
44e9085710177be4ed8369ee0ba4c772dbd450ff
d98e35d1875822a9da419a3ca7b1c475cae4980a
Improve parsing options support.
This PR improves the parsing options by adding incremental parsing. The parsing procedure has been extracted from the `setRawData` procedure and placed into `parsePacket`. The new procedure can be called repeatedly on the same packet with different options and will incrementally parse the packet. The packet pars...
diff --git a/Packet++/header/Packet.h b/Packet++/header/Packet.h index 1da952b0ed..dfeda21f25 100644 --- a/Packet++/header/Packet.h +++ b/Packet++/header/Packet.h @@ -10,6 +10,40 @@ /// @brief The main namespace for the PcapPlusPlus lib namespace pcpp { + /// @brief Options struct for configuring packet parsing beha...
8
6
2
[{"id": "G0", "claim": "The parsePacket boolean parameter would be more explicit named positively as incrementalParsing = true (default) instead of fullReparse = false.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PR should not allow creating a Pac...
null
seladb__PcapPlusPlus__2044
seladb/PcapPlusPlus
2,044
defect
44e9085710177be4ed8369ee0ba4c772dbd450ff
32276f3723319e65f446fb16c5d969c69c78d02b
Cleanup file devices
After [decoupling pcap files from libpcap](https://github.com/seladb/PcapPlusPlus/pull/2034) we can clean up some code in the file devices: 1. Change `IFileDevice` to inherit from `IFilterableDevice` and `IPcapStatisticsProvider` instead of `IPcapDevice` 2. Remove `m_DeviceOpened` from `IFileDevice` and implement `i...
diff --git a/Pcap++/header/PcapFileDevice.h b/Pcap++/header/PcapFileDevice.h index 0affe67589..2f529e934c 100644 --- a/Pcap++/header/PcapFileDevice.h +++ b/Pcap++/header/PcapFileDevice.h @@ -4,10 +4,6 @@ #include "RawPacket.h" #include <fstream> -// forward declaration for structs and typedefs defined in pcap.h -st...
1
1
0
[{"id": "G0", "claim": "The explicit `: IFilterableDevice(), IPcapStatisticsProvider()` base-class initializer list on `IFileDevice`'s constructor is unnecessary because the bases are default-constructed anyway.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
seladb__PcapPlusPlus__2057
seladb/PcapPlusPlus
2,057
defect
b6b3075cfe070defd19741d63bfb1fdd8305df50
ec6b42dcc6b47c89fb8329e7503975fdb6398822
Make libpcap / WinPcap / Npcap optional
Allow building PcapPlusPlus without libpcap / WinPcap / Npcap. This PR includes: - Adding a new `PCAPPP_USE_PCAP` CMake option with a default of `ON` to keep it backward compatible. Turning it off will build everything that doesn't require libpcap / WinPcap / Npcap - When libpcap / WinPcap / Npcap is turned off - ...
diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 340b2b3381..34076e1177 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -21,162 +21,7 @@ concurrency: cancel-in-progress: ${{ !(github.ref == 'refs/heads/master' || github.ref...
5
2
0
[{"id": "G0", "claim": "With libpcap now optional, the PCAPPP_BUILD_PCAPPP option is no longer needed since all targets can be built without a packet capture engine.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The #ifdef USE_PCAP guards sprinkled across...
null
seladb__PcapPlusPlus__2082
seladb/PcapPlusPlus
2,082
defect
d1263a24b271c828d981227e3abd437c7abc2b0b
160fa7d9650830cd8527b8d7895e0ed47e4b1c7a
Deduplication of pcap header read procedures.
This PR deduplicates the pcap header read procedures shared between `PcapReaderDevice` and `PcapWriterDevice` in append mode. The affected procedures have been moved to `readPcapHeader` and a mirror `writePcapHeader` functions inside `PcapFileDevice.cpp` that have internal linkage. The PR also removes `PcapWriterDe...
diff --git a/Pcap++/header/PcapFileDevice.h b/Pcap++/header/PcapFileDevice.h index 95d615aeed..46883676e3 100644 --- a/Pcap++/header/PcapFileDevice.h +++ b/Pcap++/header/PcapFileDevice.h @@ -310,40 +310,6 @@ namespace pcpp bool m_NeedsSwap = false; FileTimestampPrecision m_Precision = FileTimestampPrecision::Unkn...
4
2
0
[{"id": "G0", "claim": "The reviewer questions why toString was extracted from a lambda into a free function and sees no point in the extraction since it is used in only one function.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The maintainer is not s...
null
seladb__PcapPlusPlus__2106
seladb/PcapPlusPlus
2,106
defect
507d68d9fa8cbfbc6a5243c5526a60262ac3c794
dda16f9bf2bbc07c82a43c998e1f4cb59637eb3e
Add DPDK tests
- Replace the existing DPDK CI job with one that runs the tests we have for DPDK - Build DPDK locally on the GitHub Actions runner VM and cache it instead of using the docker image - Use DPDK [AF_PACKET PMD](https://doc.dpdk.org/guides/nics/af_packet.html) in order to run the tests in CI with network traffic - Setup...
diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 58f9218ad3..40f7d3fb95 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -312,71 +312,98 @@ jobs: key: ${{ steps.ccache-restore.outputs.cache-primary-key }} dpdk: ...
11
3
2
[{"id": "G0", "claim": "The internal API around MBufRawPacket/RawPacket should be refactored for clarity (e.g. reconsidering #1899 to separate RawPacket and MBufRawPacket under a new base class), but in a separate PR.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"i...
null
seladb__PcapPlusPlus__2114
seladb/PcapPlusPlus
2,114
defect
fe0124fb3e1837c9ac48824d6877a7f588036fcd
928c25e778a7b406806cf8c59539ccaeca607ead
Add DPDK 25.11 support
Fixes https://github.com/seladb/PcapPlusPlus/issues/2066. Per-queue stats were removed in DPDK 25.11 (as mentioned in section 1.2 [here](https://doc.dpdk.org/guides-25.11/rel_notes/release_25_11.html)), and it's now required to use DPDK xstats API instead. The xtats API is more complex than the previous API. Each...
diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index dc35df39e8..38409c03d7 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -316,6 +316,7 @@ jobs: strategy: matrix: include: + - dpdk_version: 25.11.1 ...
3
1
0
[{"id": "G0", "claim": "resolveStatId could return the resolved ID instead of using a uint64_t& out parameter, which would be a simpler API.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "resolveStatIds builds local vectors and then copy-assigns them into ...
null
seladb__PcapPlusPlus__256
seladb/PcapPlusPlus
256
defect
ecac0f6af59a9a5b2d34ba15af0fa48e264bed85
a4884e5a63149bbb00191120dc3e5afaf9a5b56f
Fixing memory leak in TcpReassembly
Bugfix #248 and #250.
diff --git a/Packet++/header/TcpReassembly.h b/Packet++/header/TcpReassembly.h index a104e4ab3f..b03060811e 100644 --- a/Packet++/header/TcpReassembly.h +++ b/Packet++/header/TcpReassembly.h @@ -5,6 +5,9 @@ #include "IpAddress.h" #include "PointerVector.h" #include <map> +#include <list> +#include <time.h> + ...
12
12
1
[{"id": "G0", "claim": "The new non-const getConnectionDataRef() overload looks almost identical to the existing const getter; the reviewer asks whether the duplication is intended.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add one line of space bet...
null
seladb__PcapPlusPlus__270
seladb/PcapPlusPlus
270
defect
47736365ebe0fd2a42a8499997afa5c297cbca04
1219d47f0f34ae6359978ebff7c6a22d67dcd800
HttpRequestFirstLine::setMethod() bugfix
Repeated method invocation spoils the query string. eg "POSTTTT", "PATCHCHCHCH", "CONNECTNECTNECTNECT", "OPTIONSIONSIONSIONS".
diff --git a/Packet++/src/HttpLayer.cpp b/Packet++/src/HttpLayer.cpp index 2ee8cc7355..7d9612ca35 100644 --- a/Packet++/src/HttpLayer.cpp +++ b/Packet++/src/HttpLayer.cpp @@ -429,6 +429,7 @@ bool HttpRequestFirstLine::setMethod(HttpRequestLayer::HttpMethod newMethod) memcpy(m_HttpRequest->m_Data, MethodEnumToStrin...
3
3
2
[{"id": "G0", "claim": "The same missing-assignment bug also exists in HttpRequestFirstLine::setVersion() and HttpResponseFirstLine::setVersion(), and seladb suggests fixing those places too.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "Unit tes...
null
seladb__PcapPlusPlus__287
seladb/PcapPlusPlus
287
defect
9bc14245db5a34c0ad994b8928915962c3f70619
befa86fba251b94c5fdde1edd26948e42e6bbc0d
Improvements in LRUList and IPReassembly
1. Fix for #281 2. Code of `IPReassembly` was simplified: the type of private member `m_PacketLRU` was changed from `LRUList<uint32_t>*` to `LRUList<uint32_t>` 3. Performance improvements in both classes The current implementation of `LRUList::put` creates a new dynamically allocated object by copying the existed ...
diff --git a/Common++/header/LRUList.h b/Common++/header/LRUList.h index e891bc6325..fb9bfd0709 100644 --- a/Common++/header/LRUList.h +++ b/Common++/header/LRUList.h @@ -4,6 +4,10 @@ #include <map> #include <list> +#if __cplusplus > 199711L || _MSC_VER >= 1800 +#include <utility> +#endif + /// @file /** @@ -40...
1
1
1
[{"id": "G0", "claim": "LRUList should keep only one of its two overlapping put() methods — removing the old T* put(const T&) in favor of the optimized version with a defaulted deletedValue parameter — and update all call sites, including the PcapSplitter and TcpReassembly examples, verifying them with tests.", "catego...
null
seladb__PcapPlusPlus__346
seladb/PcapPlusPlus
346
defect
f6181fcab0ba6c0bc54b6955b0e9fd7c376bfca5
a2f670b648d001ccf779b996cf35a8855f913992
Lookup a layer in reverse order (enhancement)
In many cases the lookup in reverse order in packet is faster than in the direct one. This PR adds such feature and improvements in a number of modules.
diff --git a/Packet++/header/Packet.h b/Packet++/header/Packet.h index 40a90390d5..f62152b3f3 100644 --- a/Packet++/header/Packet.h +++ b/Packet++/header/Packet.h @@ -245,21 +245,33 @@ namespace pcpp /** * A templated method to get a layer of a certain type (protocol). If no layer of such type is found, NULL...
1
1
0
[{"id": "G0", "claim": "The new PacketLayerLookupTest should be extended with a few more cases: a packet containing several layers of the same type (e.g. Vxlan1.dat), a call asking for the previous layer of the first layer (expected NULL), and getLayerOfType<...>(true) with a layer type that does not exist in the packe...
null
seladb__PcapPlusPlus__467
seladb/PcapPlusPlus
467
defect
14a418ed4f9b72a832877dc8330e01259f617bf3
a1be79a5710627c4efa1e72a2b5b3359fc12f3ed
Fix IPcapDevice::matchPacketWithFilter when checking empty filter.
Bug: bool IPcapDevice::matchPacketWithFilter(std::string filterAsString, RawPacket* rawPacket) "pcap_compile_nopcap" would not be called untill first, non empty filterAsString.
diff --git a/Pcap++/src/PcapDevice.cpp b/Pcap++/src/PcapDevice.cpp index d525ad2180..988f6aedb4 100644 --- a/Pcap++/src/PcapDevice.cpp +++ b/Pcap++/src/PcapDevice.cpp @@ -74,7 +74,8 @@ bool IPcapDevice::matchPacketWithFilter(std::string filterAsString, RawPacket* r { static std::string curFilter = ""; static str...
2
2
1
[{"id": "G0", "claim": "Instead of adding a static boolean flag, `curFilter` could be given a different initial value (for example `\"--\"`) so that an empty filter string will also be compiled.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "After a fail...
null
seladb__PcapPlusPlus__484
seladb/PcapPlusPlus
484
defect
14a418ed4f9b72a832877dc8330e01259f617bf3
977119ad38367580a00442c0e439358faee4f7bb
Added less than operator to IpAddress
Hi, as I am trying to use the (now, thanks to your refactor, great) IPAddress "base class" as a key for a map, I needed to provide the less-than comparison operator. This PR implements this functionality. Please note that I have implemented the less-than operator so it treats IPv4 < IPv6. Internally, the operator...
diff --git a/Common++/header/IpAddress.h b/Common++/header/IpAddress.h index de2007ade4..cc85e3167e 100644 --- a/Common++/header/IpAddress.h +++ b/Common++/header/IpAddress.h @@ -78,6 +78,11 @@ namespace pcpp */ bool operator==(const IPv4Address& rhs) const { return toInt() == rhs.toInt(); } + /** + * Overl...
4
4
3
[{"id": "G0", "claim": "The PR author should add unit tests for the new less-than operator to Tests/Pcap++Test/Tests/IpMacTests.cpp.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The reordered include block in Tests/Pcap++Test/Tests/IpMacTests.cpp shou...
null
seladb__PcapPlusPlus__523
seladb/PcapPlusPlus
523
defect
3977cd142500a03431397357bebf7f1d61be8ce8
f287461a757cc2abe14f454d1d604eb26fae9b02
Add missing bytes field to TcpStreamData
Closes #522 to add missing byte count due to packet loss, as this currently needs to be parsed out. I've kept the original data string to avoid breaking existing API consumers. I'm not very familiar with PcapPlusPlus internals/dev process, so this is just the most minimal implementation I could think of. I did a qui...
diff --git a/Packet++/header/TcpReassembly.h b/Packet++/header/TcpReassembly.h index 8aee52de2c..833353079c 100644 --- a/Packet++/header/TcpReassembly.h +++ b/Packet++/header/TcpReassembly.h @@ -126,10 +126,11 @@ class TcpStreamData * A c'tor for this class that get data from outside and set the internal members ...
2
2
1
[{"id": "G0", "claim": "Consider adding a getter method isBytesMissing() to TcpStreamData to indicate whether there are missing bytes (equivalent to getMissingByteCount() == 0).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add coverage of the new missi...
null
seladb__PcapPlusPlus__614
seladb/PcapPlusPlus
614
defect
c08390d0178093b310d9de31a82796b8f5083c30
98688619c879dceaed9cf5c6d6586fdcf512882f
Fixed MTU check
Altered MTU check to use the size of the data link payload, rather than the length of the entire packet. A `checkMtu` flag was added to the `sendPacket` and `sendPackets` methods for `PcapLiveDevice`. This determines whether checking the MTU should be performed since there is some overhead when a packet is required to ...
diff --git a/Pcap++/header/PcapLiveDevice.h b/Pcap++/header/PcapLiveDevice.h index 89fbbd386b..070d1dbf24 100644 --- a/Pcap++/header/PcapLiveDevice.h +++ b/Pcap++/header/PcapLiveDevice.h @@ -406,17 +406,39 @@ namespace pcpp */ bool captureActive(); + /** + * Checks whether the packetPayloadLength is larger ...
5
5
1
[{"id": "G0", "claim": "The doxygen for the new checkMtu parameters of the sendPacket/sendPackets overloads should also mention that the default value is false.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The doc comment added by the pull reque...
null
seladb__PcapPlusPlus__687
seladb/PcapPlusPlus
687
defect
0994212b0fe59f60b0d07c06289cfa172c5237bb
b64361d3f883a010eeaeb4d7a404b978bd27b981
Timestamp added to tcpreassembly and OOO buffer clean condition modified
Added Timestamp field to TcpStreamData for this information to be available in callbacks as it might be necessary for certain use cases. Adding a config parameter in TcpReassemblyConfiguration which disables the Out of order buffer clean condition when a data packet from opposite side arrives, Since there are insta...
diff --git a/Packet++/header/TcpReassembly.h b/Packet++/header/TcpReassembly.h index 51b2123be4..9a86182539 100644 --- a/Packet++/header/TcpReassembly.h +++ b/Packet++/header/TcpReassembly.h @@ -129,9 +129,10 @@ class TcpStreamData * @param[in] tcpDataLength The length of the buffer * @param[in] missingBytes The...
8
8
2
[{"id": "G0", "claim": "Fix the typos in the comment explaining the buffer clear condition: `sjould` should be `should` and `paraameter` should be `parameter`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The packet timestamp should be fetched o...
null
seladb__PcapPlusPlus__775
seladb/PcapPlusPlus
775
defect
0de0a4993ad9dcbea00d5a6b1bf0d92c6f725653
eb2bb2c35146a351d03f4cdb127cf35b1d9803c2
PcapLiveDevice/PcapLiveDeviceLists clone
PR for #766 Still have work to do. I think test cases should be updated too. Any help/comment is welcomed.
diff --git a/Pcap++/header/PcapLiveDevice.h b/Pcap++/header/PcapLiveDevice.h index 1db9a610f8..ce7c6e5bc9 100644 --- a/Pcap++/header/PcapLiveDevice.h +++ b/Pcap++/header/PcapLiveDevice.h @@ -108,6 +108,7 @@ namespace pcpp RawPacketVector* m_CapturedPackets; bool m_CaptureCallbackMode; LinkLayerType m_LinkType;...
4
4
1
[{"id": "G0", "claim": "Implement clone() by calling pcap_findalldevs, finding the interface with the same name, constructing a new PcapLiveDevice from it and freeing the list, so the private pcap_if_t* ifaceInfo member is no longer needed.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "int...
null
seladb__PcapPlusPlus__810
seladb/PcapPlusPlus
810
defect
6a9183ae9c156593fa18d6f78037f4ad236d91f9
54e079635f6565bc79dc99d69b63582b9ae95d05
Bugfix #758 - support IPv4 encapsulated IPv6
Fix for #758 Since issue is open for approx 3 months let's clean it up
diff --git a/Packet++/src/IPv4Layer.cpp b/Packet++/src/IPv4Layer.cpp index 0582717f26..f43105d84e 100644 --- a/Packet++/src/IPv4Layer.cpp +++ b/Packet++/src/IPv4Layer.cpp @@ -321,6 +321,9 @@ void IPv4Layer::parseNextLayer() ? static_cast<Layer*>(new ESPLayer(payload, payloadLen, this, m_Packet)) : static_cast<...
2
2
1
[{"id": "G0", "claim": "The new PACKETPP_IPPROTO_IPV6 case in IPv4Layer::parseNextLayer should validate the payload with IPv6Layer::isDataValid and fall back to a PayloadLayer when the data is invalid, as the ESP case above it does.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introd...
null
seladb__PcapPlusPlus__884
seladb/PcapPlusPlus
884
defect
0aea8feb9dcccf0eed7c23db2e6a9361d2192fe2
f1eb4d5c00c68bea217ace124c829e2e89cb0ded
Move to C++11 & replace `pthread` with `std::thread`
Hi, This MR try to remove pthread requiement on Windows by switching to C++ Threads introduce in C++11. I keep pthread on Linux as we use the 'pthread_setaffinity_np()' and there is no equivalement with C++ threads. This is untested!
diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 1f001f14f6..d1dbb3c238 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -316,12 +316,6 @@ jobs: echo "PCAP_SDK_DIR=C:\Npcap-sdk" >> $env:GITHUB_ENV if: matrix...
3
1
0
[{"id": "G0", "claim": "`PcapLiveDevice::getCaptureThreadStart` cannot simply be removed because it is overridden in `PcapRemoteDevice`, so removing it likely breaks remote capture.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The remaining `pthread...
null
seladb__PcapPlusPlus__946
seladb/PcapPlusPlus
946
defect
81f97742dd6d17862afc197dcf55aaf2e8ff23da
69c7cc1f588049bf61b353d19d862bca563e3e8f
ci: enable set-direction on libpcap
@seladb Enabling the set-direction features will return errors in CI. I'm not sure to understand why it's create such issue could you have a look ?
diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 64dc9b34d2..a262edda08 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -35,7 +35,7 @@ jobs: uses: actions/checkout@v2 - name: Configure PcapPlusPlus - r...
1
1
0
[{"id": "G0", "claim": "The test should assert the return of liveDev->open(devConfigWithDirection) directly, i.e. PTF_ASSERT_TRUE(liveDev->open(devConfigWithDirection)), instead of calling open() and then checking PTF_ASSERT_TRUE(liveDev->isOpened()).", "category": "maintainability", "verdict": "supported", "priority":...
null
select2__select2__3324
select2/select2
3,324
defect
ac1680d81dcc60009c5d0fe0dd52e70bc065c140
13cead0bd0dded6033b1c47ca7c74848d1a8436d
Adding container support issue #3222
Fixes issue #3222 Now templateSelection can have access to the parent container so that classes can be added for styling
diff --git a/src/js/select2/selection/multiple.js b/src/js/select2/selection/multiple.js index 01eb9c8822..d73c28b8c5 100644 --- a/src/js/select2/selection/multiple.js +++ b/src/js/select2/selection/multiple.js @@ -50,11 +50,11 @@ define([ this.$selection.find('.select2-selection__rendered').empty(); }; - Mu...
2
2
1
[{"id": "G0", "claim": "The new test should check for the added class with $container.hasClass('testclass') instead of looping over $container[0].classList.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The container parameter should also be in...
null
selectel__pyte__76
selectel/pyte
76
defect
72c6d5d8bcf05049f9515863433713baf64cd703
71332ab08890cabe534a006a10ee9930a3d84856
WIP: Feature/defaultdict as screen buffer
Using defaultdict of defaultdicts as Screen.buffer Python 3: |command | [[]] | defaultdict | |---------|-----------|-------------| |top | 170ms | 161ms | |vi | 44.8ms | 11.4ms | |cat | 108ms | 110ms | |mc | 144ms | 140ms | |spaceinv | 8.01s ...
diff --git a/examples/webterm.py b/examples/webterm.py index 297b469f..cbe36e3e 100644 --- a/examples/webterm.py +++ b/examples/webterm.py @@ -44,7 +44,7 @@ def dumps(self): lines = [] for line in self.screen.dirty: data = [(char.data, char.reverse, char.fg, char.bg) - ...
7
5
1
[{"id": "G0", "claim": "The buffer's default factory should use `self.default_char` instead of `Screen.default_char` — there is no point in emphasizing the attribute is static.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "delete_lines should p...
null
selenide__selenide__2809
selenide/selenide
2,809
defect
10faa4e37d769639aa27884a542646914ed40291
b4990fc6031637d4131b50a8ba10867e1a1d5f7f
#2769 add method `$.scroll()` with direction and distance parameters
## Proposed changes Quite often there is a need to scroll down a particular element on a page (for example left menu on youtube page). This can be useful when content inside the element appears dynamically, i.e. only when you scroll down to it. Less often there is a need to scroll an element to the right. ## Check...
diff --git a/src/main/java/com/codeborne/selenide/SelenideElement.java b/src/main/java/com/codeborne/selenide/SelenideElement.java index 5cc73a93bc..5c9765262d 100644 --- a/src/main/java/com/codeborne/selenide/SelenideElement.java +++ b/src/main/java/com/codeborne/selenide/SelenideElement.java @@ -1229,6 +1229,55 @@ pu...
3
3
1
[{"id": "G0", "claim": "Selenide offers no way to scroll an element to the centre of the screen: otter1990 asks for a new `scrollToCenter()` method, and asolntsev suggests `scrollTo()` could instead scroll the element to the centre.", "category": "enhancement", "verdict": "supported", "priority": "P2", "scope": "pre_ex...
null
selenide__selenide__2842
selenide/selenide
2,842
defect
cc51b00fed330a7dc2cc38f0bb25de07818475cb
0fa37789ff4e2f7d9a35bcae62b1329d1ff0b08c
add method $.scrollIntoCenter()
Also, add tests for all existing scrolling methods.
diff --git a/src/main/java/com/codeborne/selenide/SelenideElement.java b/src/main/java/com/codeborne/selenide/SelenideElement.java index 37ea0e3bab..2cad442578 100644 --- a/src/main/java/com/codeborne/selenide/SelenideElement.java +++ b/src/main/java/com/codeborne/selenide/SelenideElement.java @@ -2,6 +2,7 @@ import...
1
1
0
[{"id": "G0", "claim": "The new ScrollIntoCenter command should simply delegate to the existing `proxy.scrollIntoView(\"{block: 'center'}\")` instead of fetching the WebElement and executing the JavaScript directly.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
selenide__selenide__2924
selenide/selenide
2,924
defect
6285e34db61b6f75ea5bb03556f621ac65a3e5af
e5b7e035af25b6bc7839d1f908922801e5a15bb8
add support for Moon browser automation solution
it's very similar to Selenoid, but the browsers are run in Kubernetes.
diff --git a/modules/moon/README.md b/modules/moon/README.md new file mode 100644 index 0000000000..fe7225633d --- /dev/null +++ b/modules/moon/README.md @@ -0,0 +1,30 @@ +Selenide Moon plugin +================================ + +A [Selenide](https://selenide.org) extension for working with [Moon](https://aerokube.com/...
2
1
1
[{"id": "G0", "claim": "A file path used in the Moon download flow is built from user-provided values, which CodeQL flags as uncontrolled data used in a path expression (potential path traversal / arbitrary file write).", "category": "security", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "...
null
selenide__selenide__2998
selenide/selenide
2,998
defect
729a65526bcc9443739029dc5fa3c0d16d7f7fea
337081325b60726ca6e479c37f40630f83a81515
#2992 Print file paths in a format that Jenkins and GitLab treat as attachments
## Proposed changes For each generated file (screenshots and page sources), print a line in the console in the format `[[ATTACHMENT|/path/to/file]]`. This format is recognised by at least - [GitLab Unit test reports](https://docs.gitlab.com/ci/testing/unit_test_reports/) - [Jenkins JUnit Attachments plugin](https://plu...
diff --git a/gradle/dependencies.gradle b/gradle/dependencies.gradle index cf36fe362d..076bea0f82 100644 --- a/gradle/dependencies.gradle +++ b/gradle/dependencies.gradle @@ -16,6 +16,7 @@ ext { archunitVersion = '1.4.0' jacksonVersion = '2.18.3' javacvVersion = '1.5.11' + systemStubsVersion = '2.1.8' } s...
5
4
1
[{"id": "G0", "claim": "The integration tests fail on CI (Linux) because the full-screenshot module's tests cannot see the statics module's test dependencies; asolntsev asks vtintillier to add the statics test compileClasspath to modules/full-screenshot/build.gradle.", "category": "testing", "verdict": "supported", "pr...
null
selenide__selenide__3078
selenide/selenide
3,078
defect
5695cebfa6d440a9695a470b95f12471e5147e4f
62247d8d636304d130901a8f29e2bcaf4384979d
add method $.scrollIntoView(options)
`ScrollIntoViewOptions` has benefits over boolean or String parameter: 1. A convenient factory method for constructing `ScrollIntoViewOptions` is `instant()` which performs scrolling instantly, thus avoiding flaky tests. 2. compile-safe (compared to String parameter) Also, * deprecated method `$.scrollIntoView(b...
diff --git a/src/main/java/com/codeborne/selenide/ScrollIntoViewOptions.java b/src/main/java/com/codeborne/selenide/ScrollIntoViewOptions.java new file mode 100644 index 0000000000..3f0b715a67 --- /dev/null +++ b/src/main/java/com/codeborne/selenide/ScrollIntoViewOptions.java @@ -0,0 +1,55 @@ +package com.codeborne.sel...
3
2
0
[{"id": "G0", "claim": "The no-argument factory should be named `default` and filled with the documented defaults (behavior null or auto, block start, inline nearest), and since setters exist for `block` and `inline`, a setter for `behavior` should also be added for consistency.", "category": "design", "verdict": "unce...
null
selenide__selenide__3148
selenide/selenide
3,148
defect
a64826af0ff123b61990d11243e66e1f12abd823
aff6babcc05291b320da1ba7d268480058aa32cf
Find elements by label
This PR adds method to find elements by label: ```java $(byLabel("Recipient name")).shouldHave(value("Dear grandma")); ``` #### Full vs partial match You can specify either "full text" (default) or "partial text" match: ```java $(byLabel("Recipient name", fullText())); $(byLabel("Recipient", partialText()...
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9bea775dba..a8288768aa 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -70,7 +70,7 @@ jobs: - name: Checkout uses: actions/checkout@v5 - name: Setup FFmpeg - uses: AnimMouse/setup-ffmpeg@...
3
2
0
[{"id": "G0", "claim": "The private static singleton fields should be dropped and the TextMatchOptions instances constructed inline inside the fullText()/partialText() factory methods instead of being returned from shared fields.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "intro...
null
selenide__selenide__3167
selenide/selenide
3,167
defect
a46fbcb4a25010e4a296ce321f91fe1ed249d655
9399a02e1acfee024c970ec9a65f1ae8ec514e21
Add an ability to get all request/response proxy filters
## Proposed changes Add methods to Selenide proxy: ```java Map<String, RequestFilter> filters = proxy.requestFilters(); List<String> names = proxy.requestFilterNames(); Map<String, ResponseFilter> filters = proxy.responseFilters(); List<String> names = proxy.responseFilterNames(); ``` This fixes #3166 ...
diff --git a/src/main/java/com/codeborne/selenide/proxy/SelenideProxyServer.java b/src/main/java/com/codeborne/selenide/proxy/SelenideProxyServer.java index b96f5ffb63..3475f33826 100644 --- a/src/main/java/com/codeborne/selenide/proxy/SelenideProxyServer.java +++ b/src/main/java/com/codeborne/selenide/proxy/SelenidePr...
2
2
1
[{"id": "G0", "claim": "The tests should cover the real use case: add several 'dummy-' filters and an 'other-' filter, remove all filters starting with 'dummy-', and verify that only the 'dummy-' ones were removed.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "...
null
selenide__selenide__3221
selenide/selenide
3,221
defect
3477ce21dce5b03008a3a094e2ca6cfc7406b5cd
c00dc5c7f81354fbfe4a39d3ed4e2051f56e4692
Forbid remove selenide proxy filters. Add ability to remove all request or response filters separately
Forbid remove selenide proxy filters. Add ability to remove all request or response filters separately: ```java SelenideProxyServer proxy = WebDriverRunner.getSelenideProxy(); proxy.cleanupRequestFilters(); // All request filters (except Selenide owns) proxy.cleanupResponseFilters(); // All response filters (ex...
diff --git a/src/main/java/com/codeborne/selenide/drivercommands/Navigator.java b/src/main/java/com/codeborne/selenide/drivercommands/Navigator.java index 7fbabd988..6603403ff 100644 --- a/src/main/java/com/codeborne/selenide/drivercommands/Navigator.java +++ b/src/main/java/com/codeborne/selenide/drivercommands/Naviga...
2
2
1
[{"id": "G0", "claim": "The newly added public constant SELENIDE_PROXY_FILER_PREFIX is misspelled (\"FILER\" instead of \"FILTER\").", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "removeRequestFilter and removeResponseFilter should throw an exce...
null
selenide__selenide__3234
selenide/selenide
3,234
defect
6a7b94f818a6c8a92650050d300063faf27f39cb
033a466da47340663a78e0de15b26d1d67fab27d
Enable fail fast mechanism in download method for selenium grid
## Proposed changes Enable fail fast mechanism in download method for selenium grid Fix issue #3233 ## Checklist - [x] Checkstyle and unit tests are passed locally with my changes by running `gradlew check chrome_headless firefox_headless` command - [x] I have added tests that prove my fix is effective or that m...
diff --git a/modules/grid/src/main/java/org/selenide/grid/DownloadFileFromGridToFolder.java b/modules/grid/src/main/java/org/selenide/grid/DownloadFileFromGridToFolder.java index be1c4c779..daa16b328 100644 --- a/modules/grid/src/main/java/org/selenide/grid/DownloadFileFromGridToFolder.java +++ b/modules/grid/src/main/...
1
1
1
[{"id": "G0", "claim": "The new failFastOnNotMatchingFile test should also assert that the failing download completes well before the configured 2-minute timeout, to prove the fail-fast mechanism actually cuts the wait short.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
selenide__selenide__3235
selenide/selenide
3,235
defect
b41dfc98f71d930a42e9bb4b7f1ea2242392b612
f40092ca116bac0ab39a5d3326a4a6edfea001a1
shorten format of timeouts shown in error messages
"100 ms." -> "100ms" I've removed space and dot. It's readable, compact and resistant to punctuation edge cases.
diff --git a/modules/error-message-customizer/src/test/java/integration/CustomErrorMessageTest.java b/modules/error-message-customizer/src/test/java/integration/CustomErrorMessageTest.java index d48b2af1ba..7c3c6de419 100644 --- a/modules/error-message-customizer/src/test/java/integration/CustomErrorMessageTest.java ++...
1
1
1
[{"id": "G0", "claim": "The expected elapsed-time range in failFastOnNotMatchingFile is too narrow: average download method execution time is around 6700ms, which does not fit the S1 upper bound of 5000ms (and the 10s download timeout the test now asserts).", "category": "testing", "verdict": "supported", "priority": "...
null
selenide__selenide__3264
selenide/selenide
3,264
defect
842cb5759130ee38c57aeba10988dd3a1829ff12
9b9b30118f6d72dac7ca389f05f68ed29c2ca8b3
add option to skip downloading the full file content
### Feature Now users can call `$.download(file().withoutContent())`. This command will test that the file is downloadable, but keep the file with empty content. ### Motivation It can be useful when the test is downloading a very large file (e.g. 1GB) on Selenium / Grid / Selenoid / Moon, and we don't want to ...
diff --git a/modules/grid/src/test/java/integration/DownloadFileFromGridToFolderTest.java b/modules/grid/src/test/java/integration/DownloadFileFromGridToFolderTest.java index 4bbd533d04..6731af3e8d 100644 --- a/modules/grid/src/test/java/integration/DownloadFileFromGridToFolderTest.java +++ b/modules/grid/src/test/java...
4
2
0
[{"id": "G0", "claim": "DownloadFileWithHttpRequest silently ignores MOCK_CONTENT and performs a full download, and the reviewer asks to respect the option (e.g. via a HEAD request to mock the response) or consciously decide to always download.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "sco...
null
selenide__selenide__3279
selenide/selenide
3,279
defect
cb245e92d09094eacb23c773e92638160377838e
85ca7e120c4cfd593d32a0d6378698fb8f68deb4
#3278 fix video recorder for custom WebDriver management
Fixes #3278 ## Problem Video recorder doesn't work when WebDriver is set via `WebDriverRunner.setWebDriver()` instead of Selenide's built-in driver creation. Zero screenshots are captured and no video is generated, but "Video recorded" is logged misleadingly. ## Root cause Three layers: 1. `VideoRecorder.start()` l...
diff --git a/CHANGELOG.md b/CHANGELOG.md index e0d1f3650..fc977ee3b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 7.15.1 (unreleased) +* #3278 Video recorder: support WebDriverRunner.setWebDriver() for video recording +* #3278 Video recorder: fallback to TakesScreenshot when DevTools/...
5
2
1
[{"id": "G0", "claim": "webDriverFromRunner() should be called inside the or(() -> ...) root so the fallback driver is resolved every time, no matter whether fallbackDriver exists or not, instead of being captured once eagerly.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"},...
null
selenide__selenide__3314
selenide/selenide
3,314
defect
ec60379bc05fb23d67dea566d8674687ffa02ce1
b7b8f8ba2d247a2637f6d3b3e68bfc25de1b56d8
Fix disposables registry leak
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Fixed WebDriver shutdown leak so overwritten/orphaned disposables are reliably cleaned and not double-disposed; disposal continues if one item throws. * **New Features** * Added per-thread sourc...
diff --git a/docs/superpowers/specs/2026-05-03-disposables-registry-leak-fix-design.md b/docs/superpowers/specs/2026-05-03-disposables-registry-leak-fix-design.md new file mode 100644 index 000000000..914276052 --- /dev/null +++ b/docs/superpowers/specs/2026-05-03-disposables-registry-leak-fix-design.md @@ -0,0 +1,97 @...
2
1
0
[{"id": "G0", "claim": "The design doc says `WebdriversRegistryTest` and `WebDriverInstance` are unchanged by this PR (lines 74-75 and 97) even though the PR modifies both, leaving the spec misleading for follow-up work.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"...
null
selenide__selenide__3318
selenide/selenide
3,318
defect
3a77e508c6f23b7fba86f4e88b066e62a389e640
117903ba0a9d6149c69c35984566bd6e1671182c
Style test pages
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * HTML test fixture pages now feature consistent visual styling with a shared stylesheet and "Selenide" branding banner for improved presentation. * **Documentation** * Added comprehensive styl...
diff --git a/docs/superpowers/plans/2026-05-07-test-pages-styling.md b/docs/superpowers/plans/2026-05-07-test-pages-styling.md new file mode 100644 index 000000000..639fa78a5 --- /dev/null +++ b/docs/superpowers/plans/2026-05-07-test-pages-styling.md @@ -0,0 +1,617 @@ +# Test Pages Styling Implementation Plan + +> **Fo...
11
1
1
[{"id": "G0", "claim": "The plan's final acceptance checklist (line 611) still tells the reader to verify a `<div class=\"selenide-test-banner\">Selenide</div>` element although every styled page was shipped with `<header class=\"selenide-test-banner\">`, so running the checklist verbatim would incorrectly report failu...
null
seliumlabs__selium__55
seliumlabs/selium
55
defect
77c5344b98675bc506e69ffd6ae91f97eb2987da
17a4201122a11866d3472c5c99b00d7d751ba9cc
Overhaul Client API
We should now be able to open multiple streams (publishers, subscribers and more to come) from a single client connection!
diff --git a/client/Cargo.toml b/client/Cargo.toml index cb0697f4..77686f32 100644 --- a/client/Cargo.toml +++ b/client/Cargo.toml @@ -24,10 +24,26 @@ bincode = [] [[example]] name = "publish" path = "examples/publish.rs" -required-features = ["bincode"] [[example]] name = "subscribe" path = "examples/subscribe...
2
2
1
[{"id": "G0", "claim": "The publisher's async `clone` method is an unidiomatic name for an async operation and could confuse; it should be renamed (suggested alternative: `duplicate`).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "KEEP_ALIVE_DE...
null
semantic-release__npm__1
semantic-release/npm
1
defect
41ea5398eeca0cd9651dfa082f7da3b1e4b01a0b
0259f0ac53c08dce5477b4896e0986c06b01c16c
Initial release
Implementation as discussed in semantic-release/semantic-release#484. @gr2m can you enable Codecov and Greenkeeper for the repo and add `GH_TOKEN` and `NPM_TOKEN` to Travis ? Thanks Fix semantic-release/semantic-release#126
diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..fa6f8ca3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,131 @@ + +# Created by https://www.gitignore.io/api/macos,windows,linux,node + +### Linux ### +*~ + +# temporary files which can be created if a process still has a handle open of a deleted file ...
7
5
0
[{"id": "G0", "claim": "The comment's link to npm's caching-client.js should be a permanent link (the d081cc6 commit URL) instead of a master-branch link.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "All parseInt statements should be given a rad...
null
semantic-release__semantic-release__1562
semantic-release/semantic-release
1,562
defect
0ef52e7a5f4f4c2bc3daecf7d71eeb1323491374
c98ae387d2bf8d0ea5a541c88248603d45502dfb
fix: prevent false positive secret replacement
Resolve #1558
diff --git a/lib/hide-sensitive.js b/lib/hide-sensitive.js index dea73455f1..3a1158f8e2 100644 --- a/lib/hide-sensitive.js +++ b/lib/hide-sensitive.js @@ -3,7 +3,8 @@ const {SECRET_REPLACEMENT, SECRET_MIN_SIZE} = require('./definitions/constants') module.exports = (env) => { const toReplace = Object.keys(env).fil...
1
1
0
[{"id": "G0", "claim": "Replace the '(?<!^go)private' regex workaround with a more readable explicit early return for GOPRIVATE plus a comment, as laid out in the attached suggestion block.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
semantic-release__semantic-release__1669
semantic-release/semantic-release
1,669
defect
d74ffef788df841a4dcb65dda4d857edd30b13c3
61cc9591acbffebf06f60b147cfad716269c7a2d
Use valid git credentials when multiple are provided
See #1668 for details about the issue. Here I will discuss about the fix implementation. If the given URL works out of the box or if a single token is available in the environment, the behaviour remains unchanged. However if there is multiple tokens available, it will perform a `git.verifyAuth` call for each of the...
diff --git a/lib/get-git-auth-url.js b/lib/get-git-auth-url.js index 2ebb84a10b..cbaaa614d1 100644 --- a/lib/get-git-auth-url.js +++ b/lib/get-git-auth-url.js @@ -4,6 +4,45 @@ const hostedGitInfo = require('hosted-git-info'); const {verifyAuth} = require('./git'); const debug = require('debug')('semantic-release:get-...
1
1
0
[{"id": "G0", "claim": "The test title added by this pull request contains a typo: 'reposirotry' should be spelled 'repository'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
semantic-release__semantic-release__2416
semantic-release/semantic-release
2,416
defect
ab45ab1f8d0d0f728fb026a92ec191bcc88f51f1
406b9ad375e9668f894693c4dc8ceb098b38e321
fix: get correct version if prerelease branch shares version with ...
…other branches Fixes #2415
diff --git a/lib/get-last-release.js b/lib/get-last-release.js index 110fd85f4f..ab18590f68 100644 --- a/lib/get-last-release.js +++ b/lib/get-last-release.js @@ -30,7 +30,9 @@ module.exports = ({branch, options: {tagFormat}}, {before} = {}) => { const [{version, gitTag, channels} = {}] = branch.tags .filter( ...
2
2
1
[{"id": "G0", "claim": "The new test's name ('Get the hightest prerelease valid tag, when other tags share the same HEAD') does not make its goal clear, and should be renamed to express that the real goal is ensuring the pre-release version corresponds with the pre-release defined for that branch.", "category": "mainta...
null
semantic-release__semantic-release__524
semantic-release/semantic-release
524
defect
d4c7605f687d17a9fd5ab9a34e4bc4d541a07396
7bec7fbfd30423d772ff866ee1371b8f687c85ea
Make semantic-release language agnostic
The last language specific thing `semantic-release` relies on is the `package.json`. This PR remove this reliance by allowing to configure `semantic-release` with rc files in addition of the current `release` property in the `package.json`. This way, with the proper plugins, `semantic-release` can release any type ...
diff --git a/README.md b/README.md index f01d566e08..746fc27c6e 100644 --- a/README.md +++ b/README.md @@ -167,6 +167,7 @@ semantic-release These options are currently available: - `branch`: The branch on which releases should happen. Default: `'master'` +- `repositoryUrl`: The fit repository URL. Default: git orig...
2
2
0
[{"id": "G0", "claim": "The README line for the `repositoryUrl` option misspells \"fit\" and should read \"the git repository URL\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The README should document what format the git repository URL can h...
null
semantic-release__semantic-release__530
semantic-release/semantic-release
530
defect
0c67ba517fd6dd42959ee263ad50a6c7c30d57af
073229da0ea11359ad7e075e9ba5711ff1c028aa
Run npm registry in Docker
Run local npm registry for test with [npm-docker-couchdb](https://github.com/npm/npm-docker-couchdb). Unfortunately it's not possible to run Docker on Travis/OSX or on Appveyor/Windows See https://github.com/appveyor/ci/issues/1717 and https://github.com/travis-ci/travis-ci/issues/5738
diff --git a/.gitignore b/.gitignore index 694e047ed1..fa6f8ca32a 100644 --- a/.gitignore +++ b/.gitignore @@ -129,7 +129,3 @@ $RECYCLE.BIN/ package-lock.json yarn.lock - -# Registry tests -test/helpers/registry/couch -test/helpers/registry/data diff --git a/.travis.yml b/.travis.yml index 8dcc787d90..e08cb38b4f 10...
2
2
2
[{"id": "G0", "claim": "Change the port the test npm registry binds on the host: it uses CouchDB's default port 5984, so for anyone running CouchDB locally the tests fail with 'Bind for 0.0.0.0:5984 failed: port is already allocated'.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "intr...
null
semantic-release__semantic-release__617
semantic-release/semantic-release
617
defect
7e860c7915f07b383abc3554d0de2ab16f3c3008
0d0ce11b4dc389badc078b235ff94f375ac92e14
fix: fix the `--no-ci` arg parsing
The `noCi` is no properly set based on the `--no-ci` CLI arg and it is overwritten by the `noCi` option. Fix #616
diff --git a/cli.js b/cli.js index 1f8e1365cc..7c91653210 100755 --- a/cli.js +++ b/cli.js @@ -48,8 +48,11 @@ module.exports = async () => { program.outputHelp(); process.exitCode = 1; } else { + const opts = program.opts(); + // Set the `noCi` options as commander.js sets the `ci` options ...
1
1
0
[{"id": "G0", "claim": "Fix the typo \"strats\" to \"starts\" in the comment about commander.js setting the `ci` option.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
semantic-release__semantic-release__759
semantic-release/semantic-release
759
defect
c02b5cac6b38f38f3aa2aaf0208090d4c57191d8
98b6d36a2096d90537275ef3e2ef16775be2d5c0
fix: verify the local branch is up to date with the remote one
Fix #709
diff --git a/index.js b/index.js index dee083da48..0f9aabb8c8 100644 --- a/index.js +++ b/index.js @@ -13,7 +13,7 @@ const getLastRelease = require('./lib/get-last-release'); const {extractErrors} = require('./lib/utils'); const getGitAuthUrl = require('./lib/get-git-auth-url'); const logger = require('./lib/logger'...
3
2
0
[{"id": "G0", "claim": "Fix the typo in the new isBranchUpToDate JSDoc in lib/git.js: 'The repositoru branch' should read 'The repository branch'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The default arguments added to the push test helper (...
null
semaphoreui__semaphore__2397
semaphoreui/semaphore
2,397
defect
959fd549ef81dbbc83c0323427a61ac6afb2f54f
69817a38f21b638767c17a572c3fe2111b421d4b
feat(be): Add Ansible Vault Password Client Script
This adds the ability to use Ansible Vault Password Client Script support for decrypting Ansible Vault. See https://docs.ansible.com/ansible/latest/vault_guide/vault_managing_passwords.html#storing-passwords-in-third-party-tools-with-vault-password-client-scripts Script name must end in `-client` excluding the exten...
diff --git a/api-docs.yml b/api-docs.yml index 3ca854bf82..8e0b972686 100644 --- a/api-docs.yml +++ b/api-docs.yml @@ -782,12 +782,21 @@ definitions: TemplateVault: type: object properties: - vault_key_id: - type: integer - minimum: 1 name: type: string example: ...
2
2
2
[{"id": "G0", "claim": "Storing the vault client script file name in the secret is not the right approach; the TemplateVault model should be extended with a `type` (secret/script) field and a script filename field instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": ...
null
semaphoreui__semaphore__2923
semaphoreui/semaphore
2,923
defect
63a16b75996fc65b452699abb4544592cf7cce8c
6b5495a76ccf6925e7d6279152dd6d6b6b7b9748
fix(be):alert email content encoding, support smtp ssl
Fixed alert email content encoding, added smtp tls support
diff --git a/services/tasks/alert.go b/services/tasks/alert.go index db7e332701..ff30c67b5b 100644 --- a/services/tasks/alert.go +++ b/services/tasks/alert.go @@ -92,6 +92,7 @@ func (t *TaskRunner) sendMailAlert() { if err := mailer.Send( util.Config.EmailSecure, + util.Config.EmailTls, util.Config.Email...
2
2
2
[{"id": "G0", "claim": "sendSSL sets InsecureSkipVerify: true, disabling TLS certificate verification in production code.", "category": "security", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The email content (template name, task status/result and message) may contain untru...
null
semaphoreui__semaphore__3191
semaphoreui/semaphore
3,191
defect
1bde5c92eb4289c54f5e925efcb739be602bc8e4
c4d8a832bbd741e63cc0f66cc125dd4a6a99e7fb
ah2
- **feat(tasks): memory storage impl** - **feat: redis impl** - **feat(tasks): redis impl**
diff --git a/api/tasks/tasks.go b/api/tasks/tasks.go index 0d7f68fb41..9d8125c75d 100644 --- a/api/tasks/tasks.go +++ b/api/tasks/tasks.go @@ -1,9 +1,10 @@ package tasks import ( - "github.com/semaphoreui/semaphore/pkg/task_logger" "net/http" + "github.com/semaphoreui/semaphore/pkg/task_logger" + "github.com/...
3
2
2
[{"id": "G0", "claim": "The default CreateTaskPool now uses RedisTaskStateStore with the Redis client hardcoded to localhost:6379, a breaking change from in-memory storage that leads to runtime failures in environments where Redis is not available or configured differently.", "category": "correctness", "verdict": "supp...
null
semaphoreui__semaphore__3253
semaphoreui/semaphore
3,253
defect
886bb6cd0bc7ef505a527081695e128378ef8d4b
9bc59922973a228a5ca0ad38844cfaaef2bac7cb
Fix integration extracted values priority and ensure they are added when task environment is empty
## Problem When triggering an integration via API with a JSON body, extracted values were not being added to the job environment if the task definition had an empty environment. This caused jobs to fail with errors about missing environment variables that should have been extracted from the webhook payload. ## Root C...
diff --git a/api/integration.go b/api/integration.go index c58427ecc2..c7d9075f07 100644 --- a/api/integration.go +++ b/api/integration.go @@ -289,10 +289,12 @@ func GetTaskDefinition(integration db.Integration, payload []byte, r *http.Reque if err != nil { return } + } - for k, v := range extractedEnvResu...
1
1
1
[{"id": "G0", "claim": "Task definition variables have higher priority than extracted values, so extracted environment variables must not overwrite existing task-definition environment variables in GetTaskDefinition.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
semaphoreui__semaphore__3318
semaphoreui/semaphore
3,318
defect
ddcf31ff595516132924462a6197474d220103db
76c7d9d259fd2664a6cee539a0d420a2bc3e5a98
custom views
- **feat(views): add migrations** - **feat(views): migration for boltdb** - **feat(view): bolt migration** - **feat(views): add fields** - **feat(views): add view options** - **feat(views): add sorting column** - **feat(views): add columns** - **feat(views): implement sql** - **feat(views): hidden flag**
diff --git a/db/Migration.go b/db/Migration.go index 8c421c72cd..2f8eb5d315 100644 --- a/db/Migration.go +++ b/db/Migration.go @@ -114,6 +114,7 @@ func GetMigrations(dialect string) []Migration { {Version: "2.16.2"}, {Version: "2.16.3"}, {Version: "2.16.8"}, + {Version: "2.17.0"}, } return append(initSc...
3
2
2
[{"id": "G0", "claim": "The Bolt migration writes project_id back as the zero-padded string returned by getProjectIDs, so json.Unmarshal into db.View's int ProjectID fails and Bolt installations that apply the migration cannot list views; convert projectID to an integer before marshaling.", "category": "correctness", "...
null
semaphoreui__semaphore__3347
semaphoreui/semaphore
3,347
defect
99395c96e1e88325fa974fd77ebdde9f659564cc
12188e29429be0f44b15fb0958f18146a848a2b6
cli import project
- **feat(cli): import project mock** - **chore(cli): add backup.json to git ignore**
diff --git a/.gitignore b/.gitignore index 50910701e4..3552343e4a 100644 --- a/.gitignore +++ b/.gitignore @@ -22,6 +22,7 @@ api/public/**/* /database.boltdb.lock /database_test.boltdb .DS_Store +/backup.json node_modules/ /.idea/ diff --git a/cli/cmd/project.go b/cli/cmd/project.go new file mode 100644 index 00...
3
2
2
[{"id": "G0", "claim": "In resolveImportUser, errors returned by store.GetAllAdmins() are silently ignored, which could mask underlying database issues.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The project import command allows both --dir and ...
null
semaphoreui__semaphore__3358
semaphoreui/semaphore
3,358
defect
094d400eac7ceead6f83aa8288e36aebb8e57008
8bef563c57f7171db86890b2251eeaebd8c908ea
project roles
- **feat(roles): support project roles** - **feat(roles): project roles** - **feat(backup): project roles** - **feat(roles): add project roles page** - **refactor(roles): make slug to primary key** - **fix(roles): export/import roles** - **fix(roles): import template perms**
diff --git a/api/helpers/context.go b/api/helpers/context.go index 4f17072c90..3362f6650f 100644 --- a/api/helpers/context.go +++ b/api/helpers/context.go @@ -26,6 +26,6 @@ func UserFromContext(r *http.Request) *db.User { return GetFromContext(r, "user").(*db.User) } -func GetRole(r *http.Request) db.Role { +func ...
6
4
2
[{"id": "G0", "claim": "The Bolt implementation of GetProjectOrGlobalRoleBySlug filters roles by a non-nil ProjectID equal to the project, so a slug belonging to a global role always returns ErrNotFound and template-role overrides for global roles are silently ignored; the lookup should also return the matching global ...
null
semaphoreui__semaphore__3400
semaphoreui/semaphore
3,400
defect
a96cef92a0da8f078fa9a54369c735bb37bd5f36
64626f9e0957c6af8fd629609d74567d99dea097
feat(be): support args for terraform apps
https://github.com/semaphoreui/semaphore/issues/3397
diff --git a/.gitignore b/.gitignore index 3552343e4a..ab28e66091 100644 --- a/.gitignore +++ b/.gitignore @@ -19,6 +19,7 @@ api/public/**/* /.dredd/config.json /database.boltdb /database.sqlite +/database.sqlite-journal /database.boltdb.lock /database_test.boltdb .DS_Store diff --git a/db/config_test.go b/db/con...
1
1
1
[{"id": "G0", "claim": "In makeCmd, the code appends util.Config.Apps[t.Name].AppArgs after the existing argument list, so configured arguments end up after the Terraform subcommand and its flags; use cases like wrapping Terraform with podman/docker or global flags such as -chdir require AppArgs to precede the subcomma...
null
semaphoreui__semaphore__3612
semaphoreui/semaphore
3,612
defect
e7c773e8dab6654222f3d129cf6af83c25d7193c
9a27808b5bb034c60601a68c4f8366fe705abf9a
home to template dir
- **feat(be): use template dir as HOME** - **feat(be): home dir config option**
diff --git a/db/Repository.go b/db/Repository.go index 4b1e1297e7..af26932aa8 100644 --- a/db/Repository.go +++ b/db/Repository.go @@ -44,6 +44,18 @@ func (r Repository) GetDirName(templateID int) string { return r.getDirNamePrefix() + "template_" + strconv.Itoa(templateID) } +// GetHomePath returns the per-templa...
5
2
2
[{"id": "G0", "claim": "The HomeDirMode doc block on ConfigType is out of sync with the implemented values and behavior — it mentions \"template_home\" (and a \"src\" subdirectory under HOME) while the config rule/default use \"template_dir\" and repositories are cloned directly into the template directory — please upd...
null
semaphoreui__semaphore__3750
semaphoreui/semaphore
3,750
defect
84c9b8ae186afaec46694be871bc80fb8ab9f7f3
18f7855295a43f6508c42cfe56af655e6c9d7de6
aws sm
- **feat: add AWS secret manager support** - **feat(aws): sync button**
diff --git a/.gitignore b/.gitignore index 35729bbbf5..5e1197d1b1 100644 --- a/.gitignore +++ b/.gitignore @@ -50,4 +50,5 @@ __debug_bin* /pro_impl/ /go.work.x /go.work -/go.work.sum \ No newline at end of file +/go.work.sum +/.claude \ No newline at end of file diff --git a/db/SecretStorage.go b/db/SecretStorage.go...
2
1
1
[{"id": "G0", "claim": "On a new aws_sm item, `useIamRole` is initialized to true because `item.params.access_key_id` is unset, hiding both credential fields so the default create flow submits without a secret and fails backend validation (\"secret must be set\") unless the user discovers they must uncheck IAM role fir...
null
semaphoreui__semaphore__3793
semaphoreui/semaphore
3,793
defect
7f892d73f9e12525875a5e3e71679292f2575e94
bc0ccade0ca4ac86a36e35e8d85b0bbd08c9e05f
refactor/sync flag
- **feat(secrets): add sync flag and sync paths table** - **fix(secrets): layout** - **feat(secrets): auto sync**
diff --git a/cli/cmd/root.go b/cli/cmd/root.go index 8ece64100c..6d72591c09 100644 --- a/cli/cmd/root.go +++ b/cli/cmd/root.go @@ -96,6 +96,7 @@ func runService() { ) accessKeyService := server.NewAccessKeyService(store, encryptionService, store) secretStorageService := server.NewSecretStorageService(store, store...
3
1
1
[{"id": "G0", "claim": "The v2.18.1 migration creates the new sync-path table but never copies existing params.sync_paths data into it, so in upgraded instances previously configured sync mappings become empty in API/UI responses and both manual and scheduled sync effectively stop until users manually recreate all path...
null
semaphoreui__semaphore__461
semaphoreui/semaphore
461
defect
26ac51bacb7e52ba29fa46e87ee57b1d7862d807
99d5f201fa8f138f576c92297a527fede7b791e4
Create tmp dir if not existent before job run
This PR is for #460 it adds a function to check if the tmpDir exists at the start of a task run, and if not attempts to create it. If the creation fails it will return an error and halt execution of the task
diff --git a/api/tasks/runner.go b/api/tasks/runner.go index b6b409d344..52c4aeb09a 100644 --- a/api/tasks/runner.go +++ b/api/tasks/runner.go @@ -60,6 +60,13 @@ func (t *task) prepareRun() { t.log("Preparing: " + strconv.Itoa(t.task.ID)) + err := checkTmpDir(util.Config.TmpPath) + if err != nil { + t.log("Creat...
2
1
1
[{"id": "G0", "claim": "The test should use the standard library's ioutil.TempDir, which already generates a random name, instead of hand-rolling a random directory name with randString in the test.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "C...
null
sematic-ai__sematic__102
sematic-ai/sematic
102
defect
2a6ff010ccd1e517e54dad2831862c20324e4830
b6c04067972e22201c429ea400b7c31d763897c4
Add Resolutions table and data access APIs
Add a table to hold resolution objects, and add the DB and HTTP API endpoints to interact with it. This is a pre-req for putting K8s behind the API, because we need to put the docker image URI and user settings into the DB for the server to know how to tell k8s about them. Note that this PR doesn't actually *hook th...
diff --git a/sematic/api/BUILD b/sematic/api/BUILD index 7b62ed0b2..5938cc804 100644 --- a/sematic/api/BUILD +++ b/sematic/api/BUILD @@ -22,6 +22,7 @@ sematic_py_lib( "//sematic/api/endpoints:edges", "//sematic/api/endpoints:meta", "//sematic/api/endpoints:notes", + "//sematic/api/endp...
5
5
1
[{"id": "G0", "claim": "The state machine is not needed at this time: the model could start as a simple data container for what is known at creation time (image sha, git commit, owner), which would also remove the need for the PUT endpoint.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "int...
null
sematic-ai__sematic__158
sematic-ai/sematic
158
defect
3a9db98a88502eff68379ea687c1ec218509201b
e984d6cb00fc198c2eedb42ae20abfb8c07cc239
Log uploads
We want to display logs in the UI; first we need to ingest them! This PR makes it so that we do that. A side-effect of this is that `kubectl logs` won't give you the full logs of an execution. However, I've made it so when you do `kubectl logs <my pod>` it will show you another kubectl command you can do to follow the ...
diff --git a/sematic/BUILD b/sematic/BUILD index f94288ece..5f08f7d2f 100644 --- a/sematic/BUILD +++ b/sematic/BUILD @@ -130,6 +130,7 @@ sematic_py_lib( srcs = ["storage.py"], deps = [ ":user_settings", + "//sematic/utils:retry", ], pip_deps = [ "boto3", diff --git a/sematic...
6
6
0
[{"id": "G0", "claim": "The environment-variable constant should be named KUBERNETES_POD_NAME_ENV_VAR with value \"KUBERNETES_POD_NAME\" instead of POD_NAME_ENV_VAR / \"POD_NAME\".", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The private helpe...
null
sematic-ai__sematic__205
sematic-ai/sematic
205
defect
fcd1d8c7c12a185a0736dcbbd342734a9ca8071b
b3ac648c403248ce02e44779b1a9ef613be02049
Fix GitInfo generation when git executable not installed
When the `git` executable is not installed, importing the third party `git-python` package fails. Docker images build without `git` will fail when scheduled in Kubernetes. This PR removes the dependency of code that would run on the backend server on the `git-python` package, and introduces a local safeguard for use...
diff --git a/sematic/db/models/BUILD b/sematic/db/models/BUILD index bddbf46b0..41b87d4f8 100644 --- a/sematic/db/models/BUILD +++ b/sematic/db/models/BUILD @@ -44,6 +44,15 @@ sematic_py_lib( ], ) +sematic_py_lib( + name = "git_info", + srcs = ["git_info.py"], + pip_deps = [], + deps = [ + ":...
1
1
1
[{"id": "G0", "claim": "Add a test that merely imports sematic.utils.git and asserts via sys.modules.keys() that the git third-party dependency was not loaded as a side effect.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
sematic-ai__sematic__258
sematic-ai/sematic
258
defect
76f13709003d9b60abb947c7cedffb2aff7a4515
90dc6e6c0f995da8dc3731b408f55adac547f272
Fix max_parallelism for deached mode
The `max_parallelism` configuration wasn't passed to the detached `CloudResolver`, meaning detached execution ignored it. This PR passes it through the worker command line interface. ## Testing Discovered by @augray on [this branch](https://github.com/sematic-ai/sematic/tree/augray/parallel-reproduce). Valida...
diff --git a/sematic/api/endpoints/resolutions.py b/sematic/api/endpoints/resolutions.py index d78f81d42..921c4c243 100644 --- a/sematic/api/endpoints/resolutions.py +++ b/sematic/api/endpoints/resolutions.py @@ -124,7 +124,13 @@ def schedule_resolution_endpoint( ) -> flask.Response: resolution = get_resolution(r...
2
2
1
[{"id": "G0", "claim": "The leftover debug line `logger.error(\"SHOULD NOT BE HERE!\")` added to `_can_schedule_future` should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The newly added `--max_parallelism` CLI flag should use a h...
null
sematic-ai__sematic__297
sematic-ai/sematic
297
defect
107b23f50c278f352054e8e8f88d1715bdc5bbff
cd00f188de9cc37326c9ceb35d65b7ab6b04d0c1
More & earlier validation when using @func
Closes #47, #133 Prior to now, if you used `Any` as a type annotation for a Sematic func, you got a general "not a supported type" message. We have a recommendation to use `object` instead. This makes it so the error message instructs users to use this alternative explicitly. It also makes it so that invalid type an...
diff --git a/sematic/calculator.py b/sematic/calculator.py index ef6b9800a..8203ae79c 100644 --- a/sematic/calculator.py +++ b/sematic/calculator.py @@ -24,6 +24,7 @@ from sematic.resolvers.resource_requirements import ResourceRequirements from sematic.retry_settings import RetrySettings from sematic.types.casting i...
7
4
0
[{"id": "G0", "claim": "The seven sequential inspect.is* calls building is_coroutine_like should be collapsed into a single any(...) over the predicates for readability.", "category": "readability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The is_method_like and is_corout...
null
sematic-ai__sematic__467
sematic-ai/sematic
467
defect
a963ca768ccb1956dcc87d5d8cd1bc8c998cca74
6e78b1fad3597e1a21c6a7991b2bdad910c89727
Kuberay wrapper plugin
We will need a way to convert between a "user-oriented" way to specify a Ray cluster (python dataclass object, describing in terms of cpu counts, memory, gpu information), and an "infra oriented" way (a Kuberay K8s CRD for a RayCluster). This PR provides an implementation of a conversion between these two representatio...
diff --git a/sematic/plugins/BUILD b/sematic/plugins/BUILD index 59e4d4093..753463769 100644 --- a/sematic/plugins/BUILD +++ b/sematic/plugins/BUILD @@ -8,6 +8,12 @@ sematic_py_lib( ], ) +sematic_py_lib( + name = "abstract_kuberay_wrapper", + srcs = ["abstract_kuberay_wrapper.py"], + deps = [], +) + s...
10
7
1
[{"id": "G0", "claim": "The 'basic' kuberay wrapper module should be renamed, with 'standard' suggested as a better name.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The newly added UnsupportedError reads as if the error itself is unsupported, so it s...
null
sematic-ai__sematic__661
sematic-ai/sematic
661
defect
123631f7e3ee7a9000fb2b2e6d4d6e1ae4aea6cd
3c45a94dfa632b9cb54c3cd37a77c49743d212b3
Add more compact ser/des for simple dataclasses
We sometimes want to serialize/deserialize dataclass instances that have more simple and straightforward serialization than the one we use for func inputs/outputs. In particular, our normal dataclass serialization: - supports polymorphism (subclasses of dataclasses can be used in place of root classes, and ser/des s...
diff --git a/sematic/types/types/dataclass.py b/sematic/types/types/dataclass.py index 31e7df4c1..f3a34f250 100644 --- a/sematic/types/types/dataclass.py +++ b/sematic/types/types/dataclass.py @@ -1,7 +1,19 @@ # Standard Library import copy import dataclasses -from typing import Any, Callable, Dict, Literal, Optiona...
4
3
1
[{"id": "G0", "claim": "Reviewer asks why not create a `SimpleDataclass` base class and register a serializer for it, so that any class satisfying the guarantees can simply inherit from that class.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The functio...
null
sematic-ai__sematic__781
sematic-ai/sematic
781
defect
afc8b187b3bffeaf6765533b13f0822f157c6820
1d379b551731d08960b3144319d151a57f13be98
Refactoring "garbage" endpoints into existing search
Refactor the orphaned run/resolution query endpoints to look like run/resolution searches. Queries look something like: ``` /api/v1/runs?filters='{"orphaned_jobs": {"eq": true}}' ``` Testing ------- In addition to unit tests, intentionally orphaned some jobs and then deployed these changes (including the cle...
diff --git a/sematic/api/endpoints/artifacts.py b/sematic/api/endpoints/artifacts.py index 4fc9d471b..cd1d2b886 100644 --- a/sematic/api/endpoints/artifacts.py +++ b/sematic/api/endpoints/artifacts.py @@ -25,8 +25,12 @@ @sematic_api.route("/api/v1/artifacts", methods=["GET"]) @authenticate def list_artifacts_endpoin...
8
7
1
[{"id": "G0", "claim": "The new request parameter should be named 'fields' instead of 'include', matching the query-string key it is read from.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The chained assignment 'contained_extra_filters = garbage_filte...
null
sematic-ai__sematic__808
sematic-ai/sematic
808
defect
0e404335df29fc78eb554bf637a5b53042a77259
e9a56df78c4fdd28f06f2d162872578b4f2fab0b
#536 : Feature/add set type support
Add support for set feature. Issue: https://github.com/sematic-ai/sematic/issues/536
diff --git a/docs/developers/manual.md b/docs/developers/manual.md index c5f3382f7..758ab2571 100644 --- a/docs/developers/manual.md +++ b/docs/developers/manual.md @@ -60,4 +60,4 @@ This is if you want to package a dev Sematic version for installation somewhere $ make install-dev-deps # if not done before $ make ui...
5
5
4
[{"id": "G0", "claim": "The pull request adds set type support without any tests; the author asks where to add them and whether docs need updating.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new set.py has no Bazel BUILD target and is not added ...
null
sems-server__sems__269
sems-server/sems
269
defect
22043a747f01e052a44ba90c34e71f6c5491463c
50fb217b1649f38942ab606bd6397deebb790e36
Improve RFC 3261 MUST compliances
Two MUST-level RFC 3261 compliance gaps addressed: 1. Content-Length body trimming (Section 18.3) The SIP parser now uses the Content-Length header value to determine the exact body boundary instead of consuming all remaining bytes after headers. This is a no-op for TCP (the async parser already segments by Content-...
diff --git a/core/SipCtrlInterface.cpp b/core/SipCtrlInterface.cpp index 6ef2a686a..7eab827fd 100644 --- a/core/SipCtrlInterface.cpp +++ b/core/SipCtrlInterface.cpp @@ -47,6 +47,7 @@ #include "sip/udp_trsp.h" #include "sip/ip_util.h" #include "sip/tcp_trsp.h" +#include "sip/parse_extensions.h" #include "log.h" ...
6
5
3
[{"id": "G0", "claim": "register_supported_extension and is_extension_supported should use AmLock RAII instead of manual lock/unlock to avoid leaks and deadlocks on early returns or exceptions.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "get_...
null
sems-server__sems__270
sems-server/sems
270
defect
b2bbe1a14939ca3c768c66c4d50c24318cdf179b
f1b46a6e87f4d7e4bd7e0c8b5794782c8e933e2e
Add CSeq method validation, Proxy-Require handling, and Allow in 405
Three additional RFC 3261 MUST-level compliance fixes: 1. CSeq method validation (Section 8.1.1.5): The parser now rejects requests where the CSeq method does not match the request-line method with 400 Bad Request. 2. Proxy-Require handling (Section 16.3): Incoming requests with Proxy-Require headers are now chec...
diff --git a/apps/sbc/SBCCallLeg.cpp b/apps/sbc/SBCCallLeg.cpp index 2b3f76205..2e991c208 100644 --- a/apps/sbc/SBCCallLeg.cpp +++ b/apps/sbc/SBCCallLeg.cpp @@ -542,7 +542,11 @@ void SBCCallLeg::onSipRequest(const AmSipRequest& req) { (it->filter_list.find(method) != it->filter_list.end()); if (is_filtered) { ...
3
2
2
[{"id": "G0", "claim": "Add unit tests to core/tests/test_parser.cpp covering the new CSeq method-vs-request method validation, for both mismatched known methods (INVITE with \"CSeq: 1 BYE\") and mismatched OTHER_METHOD tokens.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {...
null
sems-server__sems__272
sems-server/sems
272
defect
80c032f45279e45560aec8de08f720726ce57727
95ae5eb4854e339e7a654f06f8d17f97168b0e3b
Fix/issue63 ip normalization
This pull request improves the handling of SIP interface lookups, especially for IPv6 addresses, by introducing a helper function that normalizes bracket usage. It refactors existing code to use this helper for consistent and reliable interface resolution, addresses a previous bug with IPv6 bracket mismatches, and adds...
diff --git a/core/AmBasicSipDialog.cpp b/core/AmBasicSipDialog.cpp index 7228a363c..dfed1a94e 100644 --- a/core/AmBasicSipDialog.cpp +++ b/core/AmBasicSipDialog.cpp @@ -193,7 +193,7 @@ int AmBasicSipDialog::getOutboundIf() string dest_uri; string dest_ip; string local_ip; - multimap<string,unsigned short>::it...
5
5
2
[{"id": "G0", "claim": "The fct_chk/fct_chk_eq_int macro expansions with zero formatting arguments trip CodeQL's too-few-arguments warning for fct_xchk_fn.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The fct_chk/fct_chk_eq_int macro expansions wi...
null
sems-server__sems__281
sems-server/sems
281
defect
8cbe6f566007d828688cc388dfa435344cfdb037
849d81a7ef9b36a04d4013bf614fdf83b3b334c5
Fix three RFC 3261 MUST compliance violations in core SIP stack
1. Fix Timer E/G retransmission double-shift bug (Section 17.1.2.2, 17.2.1): retr_timer was already shifted by n, but the T2 cap comparison shifted it again (retr_timer<<n), causing the cap to apply one retransmission too late. 2. Add 505 Version Not Supported response (Section 8.2.2.1): Requests with non-SIP/2.0 ve...
diff --git a/core/SipCtrlInterface.cpp b/core/SipCtrlInterface.cpp index 57930b88d..5949fb272 100644 --- a/core/SipCtrlInterface.cpp +++ b/core/SipCtrlInterface.cpp @@ -644,6 +644,15 @@ inline bool _SipCtrlInterface::sip_msg2am_request(const sip_msg *msg, if(req.max_forwards < 0) req.max_forwards = AmConfig::Max...
2
1
1
[{"id": "G0", "claim": "The new MALFORMED_SIP_VERSION parse path needs unit tests in core/tests/test_parser.cpp asserting that a bad request-line SIP version returns MALFORMED_SIP_VERSION, that err_msg is set to \"Version Not Supported\", and that mandatory headers (Via/To/From/Call-ID/CSeq) are still parsed so a 505 c...
null
senbox-org__s3tbx__105
senbox-org/s3tbx
105
defect
92bf03d48942e550a03bd4f588829092433af35b
326c7bab8a1de82c12b7872027028f42c764f927
SIIITBX 404 tasks
SIIITBX-407: Enhance Landsat L1 Collection 2 support (added angle bands) SIIITBX-409: Support Level 1 of Landsat TM, MSS and ETM from Collection 2 SIIITBX-410: Correction for Level 1 of Landsat TM, MSS and ETM from Collection 1
diff --git a/s3tbx-landsat-reader/src/main/java/org/esa/s3tbx/dataio/landsat/geotiff/AbstractLandsatMetadata.java b/s3tbx-landsat-reader/src/main/java/org/esa/s3tbx/dataio/landsat/geotiff/AbstractLandsatMetadata.java index ead6707cdb..61b9d9073e 100644 --- a/s3tbx-landsat-reader/src/main/java/org/esa/s3tbx/dataio/lands...
4
4
4
[{"id": "G0", "claim": "The test LandsatQAFactoryTest.testCollectionOLIQA currently fails.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Instead of baking the 0.01 factor into the unit string (\"0.01 deg\"), that value should be used as a scaling facto...
null
sendgrid__sendgrid-java__228
sendgrid/sendgrid-java
228
defect
338cb04c4099bcbe8a8f5b55e106b06f699c332d
2c0183d7770a841ce417897d5a8241b85af4a7a2
Changes serialization type from default to non-empty.
Fixes #216. Settings will be serialized anyway even if no parameters are set and defaults are used.
diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/BccSettings.java b/src/main/java/com/sendgrid/helpers/mail/objects/BccSettings.java index 176387fa..79f6cc5c 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/BccSettings.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/BccSettings.java @...
2
1
0
[{"id": "G0", "claim": "In the new serialization tests the variable holding the serialized JSON should be named jsonOne instead of jsonTwo.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The same default-skipping serialization fix should also be...
null
sendgrid__sendgrid-java__365
sendgrid/sendgrid-java
365
defect
2110e54e37230349d9859a52311d70136c82d984
aec5a54f276ca90b0710c5768e7ef1eff6ea7eff
Test to check year in license file
<!-- Please explain WHAT you changed. The title should be descriptive, for example: * *Fixed a typo in the apikeypermissions.md page* * *Added the maximum number of domain whitelabels you can create to domains.md* * *Fixing the number of days a batch id is valid in scheduling_parameters.md* If this PR fixe...
diff --git a/LICENSE.md b/LICENSE.md index 84a49643..1e1037a5 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2013-2017 SendGrid +Copyright (c) 2013-2017 SendGrid, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and ...
1
1
1
[{"id": "G0", "claim": "The new LicenseTest does not appear to run in the Travis build, likely because the file sits in the wrong path; move it to where the other tests that run in Travis live.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
sendgrid__sendgrid-java__449
sendgrid/sendgrid-java
449
defect
816451fd1ad6334e9235f11437a1b10d03f9b3ff
b8710435fcbe891f8faadcf2fa776fefa478cc5f
Dynamic templates support
Fixes #447 Hello everyone, this is my first contribution! I'am really excited in fix any problem that I may have missed, although I believe everything is ok. :smiley: # Changes # - Implemented a helper similar to what we have for the legacy templates - Update thed USE_CASES.md example to demonstrate the new D...
diff --git a/USE_CASES.md b/USE_CASES.md index 5ec48991..7eb4b1b1 100644 --- a/USE_CASES.md +++ b/USE_CASES.md @@ -7,12 +7,99 @@ This documentation provides examples for specific use cases. Please [open an iss * [How to View Email Statistics](#email_stats) <a name="transactional-templates"></a> -# Transactional Tem...
5
4
1
[{"id": "G0", "claim": "Add a batch convenience method such as addDynamicTemplateData(Map<String, String>) or setDynamicTemplateData(Map<String, String>) to Personalization.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "dynamicTemplateData should be a M...
null
sendgrid__sendgrid-java__569
sendgrid/sendgrid-java
569
defect
fa601b1ea177073942e851d42b27cc5620de8053
663a27f4c533d40c748021c9093a7be5c6d29599
Twilio Branding + CLA Policy Update
This PR updates the Twilio SendGrid branding and implements a new CLA policy.
diff --git a/.github/PULL_REQUEST_TEMPLATE b/.github/PULL_REQUEST_TEMPLATE index bd65d2ff..4aa9c567 100644 --- a/.github/PULL_REQUEST_TEMPLATE +++ b/.github/PULL_REQUEST_TEMPLATE @@ -1,6 +1,7 @@ <!-- We appreciate the effort for this pull request but before that please make sure you read the contribution guidelines g...
1
1
0
[{"id": "G0", "claim": "The USAGE.md line added by this PR duplicates the brand name, reading \"Twilio Twilio SendGrid Marketing Campaigns\" where one \"Twilio\" would do.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sendgrid__sendgrid-java__622
sendgrid/sendgrid-java
622
defect
180d408519c626a7fbaf9b1816161c653e96b877
8fa79e69b86d6da8754bcf8dd54c3e41faf8ddf3
feat: verify signature from event webhook
<!-- We appreciate the effort for this pull request, but before that, please make sure you read the contribution guidelines, then fill out the blanks below. Please format the PR title appropriately based on the type of change: <type>[!]: <description> Where <type> is one of: docs, chore, feat, fix, test. Add a...
diff --git a/pom.xml b/pom.xml index 3463b417..c7bb48e2 100644 --- a/pom.xml +++ b/pom.xml @@ -303,5 +303,10 @@ <version>2.1.0</version> <scope>test</scope> </dependency> + <dependency> + <groupId>org.bouncycastle</groupId> + <artifactId>bcprov-jdk15on</artifactId> + <version>1.65</vers...
7
7
2
[{"id": "G0", "claim": "Create constants or an enum for the hardcoded webhook header values.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Rename the 'eventsettings' package/directory to 'eventwebhook'.", "category": "maintainability", "verdict": "suppo...
null
sendgrid__sendgrid-java__706
sendgrid/sendgrid-java
706
defect
49e68952346b4a10cfd257eed5915ae535ae0db8
c812617fc8172944874c52b00216fea6467965cc
feat: allow personalization of the From name and email for each email recipient
[Internal reference](https://issues.corp.twilio.com/browse/DI-744)
diff --git a/examples/helpers/mail/Example.java b/examples/helpers/mail/Example.java index 8ff7ed42..bffcdfdb 100644 --- a/examples/helpers/mail/Example.java +++ b/examples/helpers/mail/Example.java @@ -57,22 +57,26 @@ public static Mail buildKitchenSink() { to2.setName("Example User"); to2.setEmail("test1@ex...
2
2
0
[{"id": "G0", "claim": "The getFrom() getter can be simplified by dropping the redundant null check and just returning from.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The personalizations use-case documentation should add a comment noting t...
null