-
Notifications
You must be signed in to change notification settings - Fork 1.2k
backport: auto batch 209 #6698
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
backport: auto batch 209 #6698
Changes from all commits
87a75ea
9f11216
32b96fc
083a8b2
1cd9ebd
001d7ba
2725e91
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -7,11 +7,14 @@ | |||
| #include <clientversion.h> | ||||
| #include <fs.h> | ||||
| #include <logging.h> | ||||
| #include <serialize.h> | ||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 25234: missing changes in ci/dash/lint-tidy.sh (which is ci/test/06_script_b.sh) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||||
| #include <streams.h> | ||||
|
|
||||
| #include <algorithm> | ||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chainVerify the necessity of the algorithm header. While the 🏁 Script executed: #!/bin/bash
# Description: Check if std::algorithm functions are used in this file
# Expected: Find usage of std::sort, std::find, std::min_element, etc.
rg -A 2 -B 2 "std::(sort|find|search|min_element|max_element|copy|transform|for_each|count|binary_search)" src/util/asmap.cppLength of output: 127 🏁 Script executed: #!/bin/bash
# Display the first 200 lines of src/util/asmap.cpp to inspect for any <algorithm> dependencies
echo "====== src/util/asmap.cpp (lines 1–200) ======"
sed -n '1,200p' src/util/asmap.cppLength of output: 8483 Remove unused The Locations:
Suggested diff: --- a/src/util/asmap.cpp
+++ b/src/util/asmap.cpp
@@
-#include <algorithm>📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||
| #include <bit> | ||||
| #include <cassert> | ||||
| #include <map> | ||||
| #include <cstdio> | ||||
| #include <utility> | ||||
| #include <vector> | ||||
|
|
||||
| namespace { | ||||
|
|
||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,6 +7,7 @@ | |
|
|
||
| #include <fs.h> | ||
|
|
||
| #include <algorithm> | ||
| #include <cstdio> | ||
| #include <limits> | ||
| #include <string> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,17 +3,18 @@ | |
| // Distributed under the MIT software license, see the accompanying | ||
| // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||
|
|
||
| #include <span.h> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chainHeader inclusions modernization looks good. The header changes properly align with the code usage:
However, I notice Also applies to: 11-11, 15-17 🏁 Script executed: #!/bin/bash
# Check if sstream header is needed for stringstream usage
rg -A 3 -B 3 "stringstream" src/util/strencodings.cppLength of output: 262 Add missing The file uses • File: Suggested diff: #include <vector>
+#include <sstream>
#include <span.h>
#include <ostream>
#include <string>
#include <cassert>🤖 Prompt for AI Agents |
||
| #include <util/strencodings.h> | ||
| #include <util/string.h> | ||
|
|
||
| #include <tinyformat.h> | ||
|
|
||
| #include <algorithm> | ||
| #include <array> | ||
| #include <cstdlib> | ||
| #include <cassert> | ||
| #include <cstring> | ||
| #include <limits> | ||
| #include <optional> | ||
| #include <ostream> | ||
| #include <string> | ||
| #include <vector> | ||
|
|
||
| static const std::string CHARS_ALPHA_NUM = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
Fix YAML formatting and undeclared alias issues.
The static analysis identifies several problems that need to be addressed:
CIRRUS_EPHEMERAL_WORKER_TEMPLATE_ENVwhich is not declared🏁 Script executed:
Length of output: 742
🏁 Script executed:
Length of output: 257
🏁 Script executed:
Length of output: 239
Group tasks under a top‐level
tasks:key and fix undefined aliastasks:sequence so you don’t repeattask:at the root (avoid duplicate mapping keys).&CIRRUS_EPHEMERAL_WORKER_TEMPLATE_ENValongside your other templates (or remove its usage).<<: *TEMPLATE(no space before the colon).Example diff:
And in your templates section (near
&BASE_TEMPLATE,&MAIN_TEMPLATE), add:🧰 Tools
🪛 YAMLlint (1.37.1)
[error] 194-194: duplication of key "task" in mapping
(key-duplicates)
[warning] 196-196: too many spaces before colon
(colons)
[warning] 203-203: too many spaces before colon
(colons)
[warning] 207-207: too many spaces before colon
(colons)
[error] 207-207: found undeclared alias "CIRRUS_EPHEMERAL_WORKER_TEMPLATE_ENV"
(anchors)
🤖 Prompt for AI Agents