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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
wagtail__wagtail__13420 | wagtail/wagtail | 13,420 | defect | 38812ee006955d21803c530fcfc2896202fae708 | ca85fc2cceffaaa1846823caddf43f4b3d6e9b98 | Fix register_icons hook to pass accumulated icons to each hook | Fixes https://github.com/wagtail/wagtail/issues/13190
On a side note, I find the way some hooks behave a bit inconsistent. There are hooks that follow a similar pattern—such as "passing a list to the hook function"—but differ in how they expect that list to be handled. In some cases, you’re expected to modify the li... | diff --git a/wagtail/admin/icons.py b/wagtail/admin/icons.py
index ed0903479460..07b33b5f3e2c 100644
--- a/wagtail/admin/icons.py
+++ b/wagtail/admin/icons.py
@@ -1,5 +1,4 @@
import hashlib
-import itertools
import re
from functools import lru_cache
@@ -13,8 +12,10 @@
@lru_cache(maxsize=None)
def get_icons():
... | 2 | 2 | 1 | [{"id": "G0", "claim": "The pull request should add tests for the hook behaviour.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The styleguide view must surface icons the same way (passing accumulated icons to each hook), ideally via a shared function,... | null |
wagtail__wagtail__13447 | wagtail/wagtail | 13,447 | defect | 04988ec6eed9c35941ccc297f33b3042314ddbd9 | 45f61bc09c8bffa3bb3f22f8539e2047704b6686 | Removed pytest configuration. Issue: #13435 | Issue no.: #13435
Issue: Remove pytest configuration
To solve the issue, conftest.py file and /.pytest_cache/ from .gitignore file were removed. Nothing except those were touched.
Note: This PR is same as PR #13441 that was closed automatically due to repo issue. | diff --git a/.gitignore b/.gitignore
index fb915162ae48..1a4d508d3181 100644
--- a/.gitignore
+++ b/.gitignore
@@ -16,7 +16,6 @@ npm-debug.log*
*.idea/
/*.egg/
/.cache/
-/.pytest_cache/
/storybook-static
/wagtail/tests/test-media/
diff --git a/conftest.py b/conftest.py
deleted file mode 100644
index 65b41cdd2924... | 1 | 1 | 0 | [{"id": "G0", "claim": "The [tool.pytest.ini_options] block at pyproject.toml lines 107-110 also needs to be removed.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}] | null |
wagtail__wagtail__13476 | wagtail/wagtail | 13,476 | defect | bb5b11128b27453c172d65bc2e8f10457bd5a8ad | 90a0fbc754838ddc3a9d87005309a666c8523c04 | Showing warning/info in the keyboard_shortcuts dialog | This PR addresses #13475
Changes I have made.
1. I have removed the testcase when the modal is opening only when keyboard_shortcuts are enabled.
2. I have update the opening of modal by pressing "?" key irrespective of the keyboard shortcuts are enabled or not.
3. Showing info when keyboard_shortcuts are enable... | diff --git a/client/src/controllers/KeyboardController.test.js b/client/src/controllers/KeyboardController.test.js
index bbb7bbcf223f..399b4462dc8a 100644
--- a/client/src/controllers/KeyboardController.test.js
+++ b/client/src/controllers/KeyboardController.test.js
@@ -57,32 +57,6 @@ describe('KeyboardController', () ... | 4 | 4 | 2 | [{"id": "G0", "claim": "Revert the changes to KeyboardController (shouldLoad unconditionally returning true instead of honouring the keyboard-shortcuts preference) and the related test changes.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new ... | null |
wagtail__wagtail__13490 | wagtail/wagtail | 13,490 | defect | d002b51fb5d575a3d17718e15caece23dbfec996 | 95a05ab7357fa101073d110e3e383d71a1bb7041 | Use correct converter depending on pk type for ModelViewSet | This prevents 500 errors when accessing urls with a too permissive converter for pk.
How to reproduce:
- create ModelViewSet for a model with an `IntegerField` (default `AutoField`) or an `UUIDField` as pk
- try to access a view with a bad pk, that cannot be converted by the ORM, e.g. /admin/snippets/mysnippet/e... | diff --git a/wagtail/admin/views/generic/chooser.py b/wagtail/admin/views/generic/chooser.py
index 403bb87194f5..d279cc6ed84a 100644
--- a/wagtail/admin/views/generic/chooser.py
+++ b/wagtail/admin/views/generic/chooser.py
@@ -516,7 +516,7 @@ def get_object(self, pk):
def get(self, request, pk):
try:
- ... | 6 | 6 | 2 | [{"id": "G0", "claim": "The new property and its uses should be named `pk_path_converter` after Django's \"path converter\" terminology, with a proper docstring, and the ImproperlyConfigured message should say the class's pk_path_converter is not a registered path converter.", "category": "design", "verdict": "supporte... | null |
wagtail__wagtail__13618 | wagtail/wagtail | 13,618 | defect | 4873aea023aab96a2e76144e9589eae574db6c4a | 57d55c92bc7bc302cccc673869a417e25c77674b | Issue 13614: ReferenceIndex not handling properly multiple ManyToOne fields. | Closes #13614, closes #11482, and closes #11808.
`ReferenceIndex.describe_source_field` was throwing `AttibuteError` for relations where `field` and `child_field` were `ManyToOneRel`. I've extended the `ManyToOneRel` case with going deeper into `model_path_components` when `child_field` is also `ManyToOneRel`
| diff --git a/wagtail/models/reference_index.py b/wagtail/models/reference_index.py
index 2633f9bb92c3..55eb51ba9547 100644
--- a/wagtail/models/reference_index.py
+++ b/wagtail/models/reference_index.py
@@ -783,6 +783,11 @@ def reverse_related_field(self):
# the on_delete attribute is stored.
return s... | 4 | 4 | 2 | [{"id": "G0", "claim": "The nested-child traversal added to describe_source_field() should call get_field() from child_field.related_model._meta rather than the original field.related_model._meta; as written, a nested field with a different name would throw a FieldDoesNotExist error.", "category": "correctness", "verdi... | null |
wagtail__wagtail__13647 | wagtail/wagtail | 13,647 | defect | bf441536f9c5cc0be96dde694a94b29529d86924 | fe71ada1c31a331debcec44b0cbe2ae3476c51a1 | Fixed #13646 -- Add routablefullpageurl template tag |
This PR fixes #13646
Adds the `routablefullpageurl` template tag to provide absolute URLs for routable pages, consistent with the existing `fullpageurl tag`.
Thanks @thibaudcolas for report.
| diff --git a/wagtail/contrib/routable_page/templatetags/wagtailroutablepage_tags.py b/wagtail/contrib/routable_page/templatetags/wagtailroutablepage_tags.py
index c13661505e9f..d814c8d976f2 100644
--- a/wagtail/contrib/routable_page/templatetags/wagtailroutablepage_tags.py
+++ b/wagtail/contrib/routable_page/templateta... | 2 | 2 | 0 | [{"id": "G0", "claim": "The defensive coding in the new routablefullpageurl tag (returning an empty string when base_url is empty and stripping a leading slash from routed_url), which routablepageurl does not have, may not be needed and the tag should perhaps fail hard instead.", "category": "design", "verdict": "suppo... | null |
wagtail__wagtail__13700 | wagtail/wagtail | 13,700 | defect | aef965a3fd76159d69cf7643fb0573d441762284 | 131dddf6335798d14661f2df8e19abd2f7ceb291 | Add missing button fragment renderer to page listing results template | Fixes #13466
While working with PageListingViewSet, I found that header buttons (like the export button) weren't updating their URLs when applying filters or search.
This is because the [index_results.html](cci:7://file:///Users/ritik/wagtail/wagtail/admin/templates/wagtailadmin/pages/index_results.html:0:0-0:0) ... | diff --git a/wagtail/admin/templates/wagtailadmin/pages/index_results.html b/wagtail/admin/templates/wagtailadmin/pages/index_results.html
index 5d01593411b6..63caabc5b7e3 100644
--- a/wagtail/admin/templates/wagtailadmin/pages/index_results.html
+++ b/wagtail/admin/templates/wagtailadmin/pages/index_results.html
@@ -1... | 2 | 2 | 2 | [{"id": "G0", "claim": "The added buttons fragment template must be updated after #13731 to use data-w-teleport-mode-value=\"innerHTML\" instead of data-w-teleport-reset-value=\"true\".", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The change needs... | null |
wagtail__wagtail__13731 | wagtail/wagtail | 13,731 | defect | 6dc93696f8c87d218ff48f28c33e13e6008a3d37 | f3621caf381c62131a79b2a012d320d006b18e81 | Add `mode` value to `w-teleport` to allow different DOM update strategies | Was working on this for #13649 but I figured this could stand alone on its own easily enough, so I thought I'd open a separate PR to ease reviewing.
I updated our own usages to switch from the old `resetValue` + append logic to the more appropriate `innerHTML`/`textContent` modes. Consider testing the following to e... | diff --git a/client/src/controllers/TeleportController.test.js b/client/src/controllers/TeleportController.test.js
index 9fe7318e8891..b238d54d20e1 100644
--- a/client/src/controllers/TeleportController.test.js
+++ b/client/src/controllers/TeleportController.test.js
@@ -365,6 +365,35 @@ describe('TeleportController', (... | 2 | 1 | 1 | [{"id": "G0", "claim": "Removing the runInlineScripts(templateFragment) call breaks inline-script execution when teleporting (seen when the PR is stacked on #13649 and in JSDOM), so the call should be kept together with node-based insertion operations.", "category": "correctness", "verdict": "supported", "priority": "P... | null |
wagtail__wagtail__13766 | wagtail/wagtail | 13,766 | defect | 40c9b1fdff19bad5b9997c0366ed5cb642edd557 | 35cc65bc73461262febc938b428d135b3e5738ea | Lower default JPEG quality from 85 to 76 | See #13636 for rationale for the change and data for the specific values. | diff --git a/docs/reference/settings.md b/docs/reference/settings.md
index 6367e9ad505d..265dd7d2f9e5 100644
--- a/docs/reference/settings.md
+++ b/docs/reference/settings.md
@@ -430,7 +430,7 @@ be renamed to have an extension no matter what data they contain.
WAGTAILIMAGES_JPEG_QUALITY = 75
```
-Change the global ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The 7.3 release notes should add a sentence clarifying whether the new image quality defaults do or do not affect existing renditions.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
wagtail__wagtail__13866 | wagtail/wagtail | 13,866 | defect | 2c0376f953d1bf8f06b936e709def8f834592cac | b176da0d478a27b3776e2d8fb2f73c588c71c405 | Make image descriptions searchable | Fixes #13864
### Description
This PR fixes the issue where the description field of images was not being indexed in Wagtail search. Previously, only the title field was indexed, which meant searches relying on keywords in the description would not return expected results.
### AI usage
None - tho copilot help... | diff --git a/wagtail/images/models.py b/wagtail/images/models.py
index ddbc20d1b95d..b110b2d3688e 100644
--- a/wagtail/images/models.py
+++ b/wagtail/images/models.py
@@ -363,6 +363,7 @@ def usage_url(self):
index.SearchField("title", boost=10),
index.AutocompleteField("title"),
index.FilterF... | 3 | 2 | 2 | [{"id": "G0", "claim": "Adding the filter field and a search field for description as done in this pull request may be causing an indexing error, which the commenter hit when trying the same thing (cause not established).", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"i... | null |
wagtail__wagtail__13917 | wagtail/wagtail | 13,917 | defect | 0d45148cadc1a9617ef67f59285e4991d3c9edad | 33a1e99eed7d6d82864857d2f6b76fa07142b615 | Prevent dropdowns from closing after a successful autosave | <!-- For guidance on making a great pull request, be sure to check https://github.com/wagtail/wagtail/blob/main/.github/CONTRIBUTING.md -->
<!-- Insert the issue number that you're fixing here, if any -->
Fixes #13898
### Description
<!-- Please describe the problem you're fixing. -->
This removes the `h... | diff --git a/client/src/controllers/DropdownController.ts b/client/src/controllers/DropdownController.ts
index e100523a0557..33b22513a621 100644
--- a/client/src/controllers/DropdownController.ts
+++ b/client/src/controllers/DropdownController.ts
@@ -2,43 +2,6 @@ import { Controller } from '@hotwired/stimulus';
import... | 1 | 1 | 0 | [{"id": "G0", "claim": "The added comment misspells \"dropdown\" as \"dropddown\" and should be corrected, as suggested for both the templatetag and the generic view copies.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
wagtail__wagtail__13948 | wagtail/wagtail | 13,948 | defect | 3f261d831003017d26dece999433d32749290656 | e10341282b7991b5f878cfc78d68bd8ddfa7040c | Fix `WorkflowState.user_can_cancel` logic | Fixes #11795
### Description
The logic for when a user can cancel a workflow is contained by `WorkflowState.user_can_cancel()`
https://github.com/wagtail/wagtail/blob/3f261d831003017d26dece999433d32749290656/wagtail/models/workflows.py#L237-L259
and is:
- if the object (page, snippet) is lockable, and it... | diff --git a/wagtail/admin/tests/test_workflows.py b/wagtail/admin/tests/test_workflows.py
index 5fc309125377..63ec04b52bc5 100644
--- a/wagtail/admin/tests/test_workflows.py
+++ b/wagtail/admin/tests/test_workflows.py
@@ -30,6 +30,7 @@
from wagtail.models import (
GroupApprovalTask,
GroupPagePermission,
+ ... | 3 | 3 | 0 | [{"id": "G0", "claim": "The not-lockable case should be handled by overriding the test method on the TestSubmitSnippetToWorkflowNotLockable subclass instead of a runtime isinstance(self.object, LockableMixin) check with skip inside the shared test.", "category": "maintainability", "verdict": "supported", "priority": "P... | null |
wagtail__wagtail__14062 | wagtail/wagtail | 14,062 | defect | ff889e88827f8458608e5e786601f89f3241b767 | c2ba7ac9f165d0f6526ac37bc171ac5d02ad7bf8 | Fix StreamBlock group ordering to follow declaration order | Fixes #14051
cc @joeyjurjens @thibaudcolas
## Summary
StreamBlock/StreamField groups were previously ordered alphabetically by group name.
This PR updates ordering to follow block declaration order, which gives editors more intentional control over how groups appear.
This keeps the existing `Meta.group` API ... | diff --git a/wagtail/blocks/stream_block.py b/wagtail/blocks/stream_block.py
index 80bff4d0ab7d..a230e9b82f49 100644
--- a/wagtail/blocks/stream_block.py
+++ b/wagtail/blocks/stream_block.py
@@ -1,4 +1,3 @@
-import itertools
import json
import uuid
from collections import OrderedDict, defaultdict
@@ -101,10 +100,8 @... | 2 | 2 | 0 | [{"id": "G0", "claim": "The `sorted_child_blocks` name is misleading now that it does not sort, and should be renamed to something like `ordered_` that does not imply an actual sorting operation.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Th... | null |
wagtail__wagtail__14146 | wagtail/wagtail | 14,146 | defect | ed71957950e8ba1f23cb9ed8c000dc7987731ed3 | a0e39599bd45dbaf4dfe185d343ea310a1e1cdf7 | Use choice labels in snippet listing | <!-- For guidance on making a great pull request, be sure to check https://github.com/wagtail/wagtail/blob/main/.github/CONTRIBUTING.md -->
<!-- Insert the issue number that you're fixing here, if any -->
Fixes #10815
### Description
<!-- Please describe the problem you're fixing. -->
This PR fixes snippet ... | diff --git a/wagtail/admin/views/generic/models.py b/wagtail/admin/views/generic/models.py
index 2c5a5d6493f8..cdb0ad485a1b 100644
--- a/wagtail/admin/views/generic/models.py
+++ b/wagtail/admin/views/generic/models.py
@@ -259,10 +259,20 @@ def _get_custom_column(self, field_name, column_class=Column, **kwargs):
... | 3 | 3 | 0 | [{"id": "G0", "claim": "Build the get_FOO_display accessor name with an f-string and drop the temporary value_func variable, checking getattr directly.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The assertions on individual td contents are r... | null |
wagtail__wagtail__8626 | wagtail/wagtail | 8,626 | defect | 1f43d8ef51e455b92e42447fdc190d5ec83ec53c | e06d0a63104a9ced8b82129d697afa11f27a7815 | Adopted new Tabs in Workflow History Detail page | Adopted New Tabs UI.
Refactored the code and removed redundant scss and javascript.
Fixes #8562.
Before:

After:
.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The base API url should be '.../api/v1' to match th... | null |
wakatime__wakatime-cli__1071 | wakatime/wakatime-cli | 1,071 | defect | f1850130eb870343c318736d023f1c58311bd3ff | 5c24f5736b8a961334e283a8c71e9aed1a74cdb2 | Rate limiting by default | Sends heartbeats at most once every 2 minutes, unless:
`--heartbeat-rate-limit-seconds 0`
OR
`settings.heartbeat_rate_limit_seconds = 0` | diff --git a/cmd/heartbeat/heartbeat.go b/cmd/heartbeat/heartbeat.go
index ef8847b7b..2af0ae2fe 100644
--- a/cmd/heartbeat/heartbeat.go
+++ b/cmd/heartbeat/heartbeat.go
@@ -4,9 +4,11 @@ import (
"errors"
"fmt"
"strings"
+ "time"
apicmd "github.com/wakatime/wakatime-cli/cmd/api"
offlinecmd "github.com/wakati... | 9 | 9 | 3 | [{"id": "G0", "claim": "USAGE.md is missing an update documenting the new heartbeat_rate_limit_seconds setting.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The rate-limited save block should declare the error in the if statement (err :=) instea... | null |
wakatime__wakatime-cli__830 | wakatime/wakatime-cli | 830 | defect | 61e8ebe62afad80eab68bec3fc480c87b9dc6b8d | 9e2f3bcf4b6a177c6b366b49b69e34f4b9537f93 | New flag --send-diagnostics-on-errors | Also can be enabled in `~/.wakatime.cfg` with `settings.send_diagnostics_on_errors`. | diff --git a/cmd/logfile/logfile.go b/cmd/logfile/logfile.go
index de256e23e..296654e40 100644
--- a/cmd/logfile/logfile.go
+++ b/cmd/logfile/logfile.go
@@ -15,9 +15,10 @@ const defaultFile = ".wakatime.log"
// Params contains log file parameters.
type Params struct {
- File string
- ToStdout bool
- Verbose bo... | 4 | 4 | 0 | [{"id": "G0", "claim": "The fields of logfile.Params, including the new SendDiagsOnErrors field, should be kept in alphabetical order as the codebase convention does.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "In LoadParams, the Params liter... | null |
wakatime__wakatime-cli__859 | wakatime/wakatime-cli | 859 | defect | df8a4e8f130c5560dbe558639977226396bee66d | a7a4456c58294d588161a42661312434142e1b7f | UrlEncode X-Machine-Name header | Fixes https://github.com/wakatime/jetbrains-wakatime/issues/250 by url encoding the `X-Machine-Name` header because it's value comes from user input.
The WakaTime API now urldecodes `X-Machine-Name` header on incoming heartbeats, deployed today. | diff --git a/pkg/api/option.go b/pkg/api/option.go
index be73c147..4c3ab4c7 100644
--- a/pkg/api/option.go
+++ b/pkg/api/option.go
@@ -34,17 +34,6 @@ func WithAuth(auth BasicAuth) (Option, error) {
}, nil
}
-// WithHostname sets the X-Machine-Name header to the passed in hostname.
-func WithHostname(hostname strin... | 2 | 2 | 0 | [{"id": "G0", "claim": "The clean-up/formatting of the hostname and timezone strings should be done at the entry point where values are read and the options are wired (e.g. in params.go or at the WithHostname/WithTimezone call sites), not inside the API client options.", "category": "design", "verdict": "supported", "p... | null |
wakatime__wakatime-cli__895 | wakatime/wakatime-cli | 895 | defect | 0f41c3b0e0b53725885f96436c7fba22454bc26b | 373d82416dfa9ee3b066eec7a45c8a542f361643 | Catch panic from bbolt open connection | This PR catches any panic from `bolt.Open` and log it as error or warning depending the context where it's called. This is a way to avoid breaking the cli when there's a corrupted bolt file. It also fixes few typos.
Closes #848 | diff --git a/pkg/offline/error.go b/pkg/offline/error.go
new file mode 100644
index 000000000..7cd06d6ee
--- /dev/null
+++ b/pkg/offline/error.go
@@ -0,0 +1,20 @@
+package offline
+
+import (
+ "fmt"
+)
+
+// ErrOpenDB is an error returned when the database cannot be opened.
+type ErrOpenDB struct {
+ Err error
+}
+
+/... | 1 | 1 | 0 | [{"id": "G0", "claim": "The word `connection` in ErrOpenDB.Message's log output should be removed because people reading the logs will think it means a network connection.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
wal-g__wal-g__105 | wal-g/wal-g | 105 | defect | 94fe9120ed2e5eddfcdd662b37d90fca63cf3159 | 00af9e3d27e08101ec1a34e8f0b7453a82197ecc | Check WAL file existence before upload | Issue: https://github.com/wal-g/wal-g/issues/104
A first pass attempt at not overwriting WAL files.
I did not see any way to set up unit tests for this. The `commands_test.go` file looked to just do parsing tests.
Manually building this and testing it did work though.
```
$ wal-g wal-push /var/lib/postgres... | diff --git a/commands.go b/commands.go
index f31cd804a2..c2aa25b8a1 100644
--- a/commands.go
+++ b/commands.go
@@ -593,6 +593,20 @@ func DownloadAndDecompressWALFile(pre *S3Prefix, walFileName string, dstLocation
// HandleWALPush is invoked to perform wal-g wal-push
func HandleWALPush(tarUploader *TarUploader, dirA... | 3 | 3 | 3 | [{"id": "G0", "claim": "The new not-overwriting early return in HandleWALPush should exit with a non-zero status so Postgres sees archive_command as failed and keeps the WAL file around.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The existence c... | null |
wal-g__wal-g__1149 | wal-g/wal-g | 1,149 | defect | e49e3bfd0fb747ec7d8abab08cb1e72eeca84c0d | 5c57c9185f1ca8b75fc338f0af91ff5eb258a1a7 | more straightforward decompression logic | `Decompressor` interface is poorly designed.
Typical design pattern for decryption, decrompression is wrapping streams.
So `Decompressor` should receive `io.Reader` (with compressed data) and return `io.Reader` (with decompressed data) | diff --git a/Makefile b/Makefile
index b0e91344e0..702ca165f6 100644
--- a/Makefile
+++ b/Makefile
@@ -190,6 +190,9 @@ unittest:
go list ./... | grep -Ev 'vendor|submodules|tmp' | xargs go vet
go test -mod vendor -v $(TEST_MODIFIER) -tags "$(BUILD_TAGS)" ./internal/
go test -mod vendor -v $(TEST_MODIFIER) -tags "... | 3 | 1 | 0 | [{"id": "G0", "claim": "The call to readTrailingZeros should carry a comment pointing to the trailing zero bytes issue https://github.com/wal-g/wal-g/issues/22.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "readTrailingZeros should not allocate a... | null |
wal-g__wal-g__1181 | wal-g/wal-g | 1,181 | defect | ef0f135c37a5e60b30d65404c98b0771e78fc9e5 | a609be7e6a2d0d11241a9b277bc0cc1973d7f22a | DecryptAndDecompressTar: return ReadCloser instead of taking Writer | This allows tryExtractFiles to drop io.Pipe in favor of feeding the decompression reader directly into the tar interpreter
In production we've seen a few databases which'll continuously fail to download some parts from their base backups. This issue persists across base backups & forks
This issue has been reprodu... | diff --git a/internal/compress_and_encrypt.go b/internal/compress_and_encrypt.go
index 29a79b747c..7eeb8804df 100644
--- a/internal/compress_and_encrypt.go
+++ b/internal/compress_and_encrypt.go
@@ -42,7 +42,7 @@ func CompressAndEncrypt(source io.Reader, compressor compression.Compressor, cry
var compressedWriter i... | 1 | 1 | 0 | [{"id": "G0", "claim": "Removing the writingSemaphore logic is questioned because it was useful to limit the number of tarballs being concurrently unpacked.", "category": "performance", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
wal-g__wal-g__1223 | wal-g/wal-g | 1,223 | defect | 4ef9f23df25fe392f67587e4a710b0b1949f1253 | 34558e7b764be41c72c7863e96756e938f9ad538 | fix mysql backup of a lagging replica | # fix MySQL backup of a lagging replica
### Describe what this PR fix
Suppose we have a standard primary => secodary replication schema.
Primary works fine, and wal-g have uploaded `primary.0001` - `primary.0099` binlogs to storage.
Secondary instance is lagging and 5 hours behind the master, it's currently apply... | diff --git a/cmd/mysql/find_binlog.go b/cmd/mysql/find_binlog.go
new file mode 100644
index 0000000000..3a90d00611
--- /dev/null
+++ b/cmd/mysql/find_binlog.go
@@ -0,0 +1,35 @@
+package mysql
+
+import (
+ "github.com/spf13/cobra"
+ "github.com/wal-g/tracelog"
+ "github.com/wal-g/wal-g/internal"
+ "github.com/wal-g/wal... | 4 | 1 | 0 | [{"id": "G0", "claim": "The empty-gtid fallback in HandleBinlogFind may be used by users in a way that breaks their backup-recovery process, and its valid usage is unclear.", "category": "design", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Typo in the MySQL flavor error mes... | null |
wal-g__wal-g__1297 | wal-g/wal-g | 1,297 | defect | df3929f0e5d1dd6792cbac267dc298062b5f80db | 351f3a7e967a27fd44b94875347d4886adbad460 | [WIP] Multithread downloading directory | ### Database name
Databases with physical backups
# Pull request description
Second part of working with directories. Downloader | diff --git a/internal/bundle.go b/internal/bundle.go
index dbaf72cf52..a2618b51be 100644
--- a/internal/bundle.go
+++ b/internal/bundle.go
@@ -37,13 +37,13 @@ type Bundle struct {
func NewBundle(
directory string, crypter crypto.Crypter,
- tarBallFilePacker TarBallFilePacker, tarSizeThreshold int64,
- excludedFile... | 7 | 6 | 3 | [{"id": "G0", "claim": "Remove the TarInterpreter-specific \"Interpret:\" prefix from the error messages and log messages of the now general-purpose local file helpers (WriteLocalFile, CreateLocalFile).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "clai... | null |
wal-g__wal-g__1374 | wal-g/wal-g | 1,374 | defect | 925d2c42c88c8b825ecf9d912144f95a1ddcb939 | 23543b4e57d5a07dd562ce453446d19ec1038363 | Implement max file size for mysql | Add config WALG_STREAM_SPLITTER_MAX_FILE_SIZE witch set maximum one file size for backup | diff --git a/internal/config.go b/internal/config.go
index 9a8e624adb..11d02622d5 100644
--- a/internal/config.go
+++ b/internal/config.go
@@ -81,6 +81,7 @@ const (
SerializerTypeSetting = "WALG_SERIALIZER_TYPE"
StreamSplitterPartitions = "WALG_STREAM_SPLITTER_PARTITIONS"
StreamSplitterBlockSize =... | 5 | 4 | 1 | [{"id": "G0", "claim": "The setting constant and its env variable should be named StreamSplitterMaxFileSize / WALG_STREAM_SPLITTER_MAX_FILE_SIZE instead of StreamMaxFileSize / WALG_STREAM_MAX_FILE_SIZE.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ... | null |
wal-g__wal-g__1397 | wal-g/wal-g | 1,397 | defect | 5b98d7142f153a9723c57a9f326cc77b87aeda13 | 7efc3c12cbeecc3d5d9eb8cd20f02ed57d5286f7 | Add restore-point-list command for gp | Greenplum
Add restore-point-list command for Greenplum | diff --git a/cmd/gp/restore_point_list.go b/cmd/gp/restore_point_list.go
new file mode 100644
index 0000000000..988c395995
--- /dev/null
+++ b/cmd/gp/restore_point_list.go
@@ -0,0 +1,33 @@
+package gp
+
+import (
+ "github.com/spf13/cobra"
+ "github.com/wal-g/tracelog"
+ "github.com/wal-g/wal-g/internal"
+ "github.com/... | 4 | 4 | 2 | [{"id": "G0", "claim": "The new restore-point-list command (whose functionality is very similar to backup-list) has no unit tests; the author asks whether to write unit tests for these functions.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "stripResto... | null |
wal-g__wal-g__1447 | wal-g/wal-g | 1,447 | defect | a0a60048831cf59e7019d353d07aa8a1704bdc1a | ac35a17b5852d42c8f2eab009b5e73b2736dd81c | Add Postgres partial restore by database names | ### Database meta
Adds additional field in filesMetadata to store database names. Now databases can be restored during partial backup with names specifying.
Automatically restores system database.
| diff --git a/cmd/pg/backup_fetch.go b/cmd/pg/backup_fetch.go
index 2ecf0c1a6b..cf69e5ae47 100644
--- a/cmd/pg/backup_fetch.go
+++ b/cmd/pg/backup_fetch.go
@@ -20,8 +20,8 @@ For information about pattern syntax view: https://golang.org/pkg/path/filepath/
reverseDeltaUnpackDescription = "Unpack delta backups in reverse... | 9 | 7 | 1 | [{"id": "G0", "claim": "The names metadata collected for every backup may grow large (about half of filesMetadata size), which is a size concern.", "category": "performance", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The 'Names metadata is disabled for remote backup' log l... | null |
wal-g__wal-g__1499 | wal-g/wal-g | 1,499 | defect | b51149d45ab422f801c598a3b05eb070e92af9b1 | 1b2ba9b44c215361c2d6ddae0c78ba4725e6da76 | wal-fetch command in daemon mode | ### Database name
Postgresql
# Pull request description
Support wal-g wal-fetch command in daemon mode
| diff --git a/.github/workflows/dockertests.yml b/.github/workflows/dockertests.yml
index 7bf161fdd4..89ec02217b 100644
--- a/.github/workflows/dockertests.yml
+++ b/.github/workflows/dockertests.yml
@@ -106,6 +106,7 @@ jobs:
'make TEST="pg_backup_mark_permanent_no_error_test" pg_integration_test',
... | 2 | 2 | 1 | [{"id": "G0", "claim": "GetFolderReader returns a pointer to the StorageFolderReader interface instead of the interface itself, forcing call sites to dereference it.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The wal-fetch success log line should rea... | null |
wal-g__wal-g__153 | wal-g/wal-g | 153 | defect | 4115bd19da0170ecc05618a623939662f52dabf1 | 80b0eabe24f2c111d6ae160bfd8ccb64be5e9524 | Fix subfolders for backwards compatibility | Recent refactoring changed subfolder hierarchy, this commit brings back old folder trees. | diff --git a/internal/backup.go b/internal/backup.go
index c1d3adc7f7..5583eb3e4c 100644
--- a/internal/backup.go
+++ b/internal/backup.go
@@ -34,7 +34,7 @@ type Backup struct {
}
func NewBackup(folder StorageFolder, name string) *Backup {
- return &Backup{folder, name}
+ return &Backup{folder.GetSubFolder(BaseBack... | 3 | 3 | 3 | [{"id": "G0", "claim": "Using path.Join to build S3 object paths in GetSubFolder is platform-dependent and may produce wrong paths on other platforms such as Windows.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Applying GetSubFolder(BaseBackupPat... | null |
wal-g__wal-g__1530 | wal-g/wal-g | 1,530 | defect | feb60cc7d25056c443b310f99639c6effe32c01c | a1d87c779dd4763713bb9cdf360a031f98562971 | Dead lock fix | ### Database name
MySQL, MongoDB
### Describe what this PR fix
Splitreader now doesn't stuck when get error from remote folder.
### Please provide steps to reproduce (if it's a bug)
Just download internal/testutils/s3_error_folder.go, internal/stream_push_helper_test.go and launch go test
### Please add con... | diff --git a/internal/splitmerge/splitmerge_test.go b/internal/splitmerge/splitmerge_test.go
index 09d13344b3..23f52ce5bd 100644
--- a/internal/splitmerge/splitmerge_test.go
+++ b/internal/splitmerge/splitmerge_test.go
@@ -2,14 +2,16 @@ package splitmerge
import (
"bytes"
+ "context"
"fmt"
"io"
"math/rand"
... | 5 | 4 | 0 | [{"id": "G0", "claim": "The pull request's reformatting mangled the ASCII-art comment in splitmerge_test.go, and the approach from the linked discussion should be used to keep the comment well-formatted.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim... | null |
wal-g__wal-g__1535 | wal-g/wal-g | 1,535 | defect | b34e4b867897dc45388d9578e53f56182b1657df | 8ebcb78c2980cb3db97e175b7d340a67aa4dea3e | Now supported: additional headers for s3 requests | ### Database name
postgres
# Pull request description
Added headers to s3 requests
| diff --git a/pkg/storages/s3/folder.go b/pkg/storages/s3/folder.go
index 8a3c6ba154..2d51c07908 100644
--- a/pkg/storages/s3/folder.go
+++ b/pkg/storages/s3/folder.go
@@ -44,6 +44,7 @@ const (
UseListObjectsV1 = "S3_USE_LIST_OBJECTS_V1"
RangeBatchEnabled = "S3_RANGE_BATCH_ENABLED"
RangeQueriesMaxRe... | 2 | 2 | 1 | [{"id": "G0", "claim": "getHeaders should use string keys and values instead of map[interface{}]interface{}, since header keys and values are known to be strings and the only use is casting them all to string.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim"... | null |
wal-g__wal-g__1550 | wal-g/wal-g | 1,550 | defect | 5b6fe11b6735e005deb841d9c2a7232df26629b7 | 56dac6026c40a580a5f4a1684a434eea3db2d411 | Allow to specify storage names in PG commands | This is one of the changes directed to support failover storages in all PostgreSQL commands. Such PG commands as `backup-push`, `backup-fetch`, `wal-push` and some others already support failover storages that are used in case the primary one is dead. Currently, all storages specified in the config file can be used.
... | diff --git a/cmd/daemonclient/main.go b/cmd/daemonclient/main.go
index fe0a07a080..c35d04a7bd 100644
--- a/cmd/daemonclient/main.go
+++ b/cmd/daemonclient/main.go
@@ -54,11 +54,11 @@ var (
commands = map[string]*commandOpts{
"wal-push": {
msgType: daemon.WalPushType,
- args: []string{"wal_filepath"},
+ ... | 2 | 1 | 1 | [{"id": "G0", "claim": "Target storage should be controlled by a config setting (and for daemon mode that should be the only option) instead of adding an argument to the daemon client protocol, since changing the protocol breaks backward compatibility.", "category": "design", "verdict": "supported", "priority": "P1", "... | null |
wal-g__wal-g__1559 | wal-g/wal-g | 1,559 | defect | 953036f7482b0f33c7602aebacd9d91d0476ebf9 | af948e55bc726874bda2dbface208de811fc5d6a | Add gpg key id to the envelope encryption header | feat key id in encrypted file headers to clearly identify which key was used.
also add debug info with found key id | diff --git a/internal/crypto/envelope/enveloper.go b/internal/crypto/envelope/enveloper.go
index 01c885fef5..54301821a5 100644
--- a/internal/crypto/envelope/enveloper.go
+++ b/internal/crypto/envelope/enveloper.go
@@ -7,5 +7,5 @@ type Enveloper interface {
Name() string
ReadEncryptedKey(r io.Reader) ([]byte, error... | 2 | 2 | 0 | [{"id": "G0", "claim": "In Encrypt, the key variable should use the short declaration (key, err := crypter.enveloper.DecryptKey(...)) instead of declaring it separately with var.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The literal size 4 ... | null |
wal-g__wal-g__1582 | wal-g/wal-g | 1,582 | defect | 2e0d92cfb06acbf3f19ce8963ebe1085479083d6 | e6b9b7172959807f43e820d71b308f061fc64fd2 | Recheck storages and don't wait cache to expire if they all are dead | In several previous PRs I introduced the failover storages feature, which allows to use multiple storages with different priorities so if the first storage is dead, the second can be used.
In that code, repetative checks and caching is used: if the requested storage status is outdated in the cache, a special request... | diff --git a/internal/multistorage/cache/che b/internal/multistorage/cache/che
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/internal/multistorage/cache/file.go b/internal/multistorage/cache/file.go
index a7ae24d0dd..ef43a5dfb2 100644
--- a/internal/multistorage/cache/file.go
+++ b/internal/multist... | 3 | 2 | 0 | [{"id": "G0", "claim": "The field that holds the inter-process cache file location should be named to make clear it is a path rather than a file itself (e.g. `cacheFilePath`).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The cache-persisting l... | null |
wal-g__wal-g__1608 | wal-g/wal-g | 1,608 | defect | 39dafae6ccbb28bdaac7458ac3b2b39fab52b51a | 813622e62271970bd200d7031b2b3e6d3d01786b | Retry fetch file | Now file retries are not controlled by user. Seems it is better to set it in config | diff --git a/docs/Greenplum.md b/docs/Greenplum.md
index 6195832f74..221004aa64 100644
--- a/docs/Greenplum.md
+++ b/docs/Greenplum.md
@@ -25,6 +25,7 @@ AWS_ACCESS_KEY_ID: "aws_access_key_id"
WALG_UPLOAD_CONCURRENCY: 5
WALG_PGP_KEY_PATH: "/path/to/PGP_KEY"
WALG_DOWNLOAD_CONCURRENCY: 5
+WALG_DOWNLOAD_FILE_RETRIES: 10... | 2 | 2 | 1 | [{"id": "G0", "claim": "The Greenplum config example should set WALG_DOWNLOAD_FILE_RETRIES to 15 (the documented default) instead of 10.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new retry test should use something different from wall-clo... | null |
wal-g__wal-g__1609 | wal-g/wal-g | 1,609 | defect | 39dafae6ccbb28bdaac7458ac3b2b39fab52b51a | 07eb3cd0a2ea0c9e6d8c5cf51aeaf41d4bafed51 | Fix delete garbage in gp | ### Database name
Greenplum
# Pull request description
When we call delete garbage for greenplum, it sorts wals by timestamp. But for permanent backups restore point could be in later wal. So I changed time check to segment lsn check from restore point metadata
Also changed gpstop -M flag from "immediate" to "fa... | diff --git a/docker/gp_tests/scripts/tests/test_functions/util.sh b/docker/gp_tests/scripts/tests/test_functions/util.sh
index ea5f189915..6547d92d91 100755
--- a/docker/gp_tests/scripts/tests/test_functions/util.sh
+++ b/docker/gp_tests/scripts/tests/test_functions/util.sh
@@ -51,7 +51,7 @@ cleanup() {
}
stop_clus... | 1 | 1 | 0 | [{"id": "G0", "claim": "The added comment says the target restore point should be started before or right at the provided ts while the condition filters on meta.FinishTime, so the reviewer asks whether meta.StartTime should be used instead or, if FinishTime is intended, that the comment be changed.", "category": "docum... | null |
wal-g__wal-g__1680 | wal-g/wal-g | 1,680 | defect | 4ce7950b55aed58418611fc56c1e044dbc5a63ff | 9b73eeec87e0c77ec03815c9f2488880e2691ba4 | added IsTablespaceMapExists test | ### Database name
Wal-g provides support for many databases, please write down name of database you uses.
# Pull request description
### Describe what this PR fix
// problem is ...
### Please provide steps to reproduce (if it's a bug)
// it can really help
### Please add config and wal-g stdout/stderr lo... | diff --git a/internal/databases/postgres/query_runner.go b/internal/databases/postgres/query_runner.go
index 3cc5dcf649..8037045892 100644
--- a/internal/databases/postgres/query_runner.go
+++ b/internal/databases/postgres/query_runner.go
@@ -443,7 +443,6 @@ func (queryRunner *PgQueryRunner) GetPhysicalSlotInfo(slotNam... | 1 | 1 | 0 | [{"id": "G0", "claim": "It would be better to make TestIsTablespaceMapExists a parametrized (table-driven) test, as in the linked uploader_test.go example.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
wal-g__wal-g__1684 | wal-g/wal-g | 1,684 | defect | ef3bdc901cf778a6dc5397eec48ef66b18c556eb | de6677d1f80ba73a09120842e954979384965d67 | Add glob pattern support in storagetools | ### Database name
Wal-g provides support for many databases, please write down name of database you uses.
# Pull request description
Add glob pattern support for storagetools ls, rm and cat commands
### Describe what this PR fix
// problem is ...
### Please provide steps to reproduce (if it's a bug)
// it ... | diff --git a/cmd/common/st/cat_object.go b/cmd/common/st/cat_object.go
index f8fc578218..7d6db3bbae 100644
--- a/cmd/common/st/cat_object.go
+++ b/cmd/common/st/cat_object.go
@@ -21,10 +21,11 @@ var catObjectCmd = &cobra.Command{
Short: catObjectShortDescription,
Args: cobra.ExactArgs(1),
Run: func(cmd *cobra.Co... | 2 | 1 | 1 | [{"id": "G0", "claim": "Unit tests should also be added for the cat handler and the list handler (not only the remove handler).", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Running 'st ls' without arguments panics with index out of range [0] with leng... | null |
wal-g__wal-g__1695 | wal-g/wal-g | 1,695 | defect | 8270f7772cad2aaed7b21f21081a88117b69a059 | 2480af6f633f01fa0fccddaee5bfbce59c958842 | unit test for internal/backup.go/FetchMetadata | Выполнение ToDo в рамках курса.
// TODO : unit tests
func (backup *Backup) FetchMetadata(metadataDto interface{}) error {
return FetchDto(backup.Folder, metadataDto, backup.getMetadataPath())
}
студентка Мухаметдинова Валерия
### Database name
Wal-g provides support for many databases, please write down nam... | diff --git a/internal/backup_fetch_test.go b/internal/backup_fetch_test.go
index 9915393e8d..4a5f0485d2 100644
--- a/internal/backup_fetch_test.go
+++ b/internal/backup_fetch_test.go
@@ -2,12 +2,15 @@ package internal_test
import (
"bytes"
+ "encoding/json"
+ "path"
+ "strings"
"testing"
+ "time"
+ "github.com... | 1 | 1 | 0 | [{"id": "G0", "claim": "Remove the '// TODO : unit tests' comment above internal/backup.go's FetchMetadata and rebase the branch on master so the linters pass.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "pre_existing"}] | null |
wal-g__wal-g__1720 | wal-g/wal-g | 1,720 | defect | a2c015d8d22289877f548c3ee2a9cbed5695ce33 | a9fc3783e515d87215605852babd4cc941948929 | add test cases for tryFindHighestTimelineID | ### Database name
Wal-g provides support for many databases, please write down name of database you uses.
# Pull request description
### Describe what this PR fix
// problem is ...
### Please provide steps to reproduce (if it's a bug)
// it can really help
### Please add config and wal-g stdout/stderr lo... | diff --git a/internal/databases/postgres/timeline_check_runner.go b/internal/databases/postgres/timeline_check_runner.go
index c3dc78acc6..f9d5478b71 100644
--- a/internal/databases/postgres/timeline_check_runner.go
+++ b/internal/databases/postgres/timeline_check_runner.go
@@ -72,7 +72,6 @@ func newTimelineCheckResult... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new test table should also cover numeric timeline IDs (like \"50922468\") and invalid names (like \"5092RRRR\").", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
wal-g__wal-g__1806 | wal-g/wal-g | 1,806 | defect | 4a0bd8d31b20d835fc56c1dbb1bbc45509894da9 | 4ec8be36bca97f1d25cd055487511c70703d1df0 | Add JournalSize to backup sentinels | ### Database name
MySQL
# Pull request description
It can be useful to know journal size from one backup to another to estimate recovery time or bill user.
### Describe what this PR fix
Add JournalSize in sentinels and evaluate the sum of binlog size in the semi interval (time of the previous backup; time of n... | diff --git a/internal/databases/mysql/backup_push_handler.go b/internal/databases/mysql/backup_push_handler.go
index 8dbbc83a7b..4c40e74ada 100644
--- a/internal/databases/mysql/backup_push_handler.go
+++ b/internal/databases/mysql/backup_push_handler.go
@@ -32,6 +32,11 @@ func HandleBackupPush(
tracelog.WarningLogg... | 4 | 4 | 3 | [{"id": "G0", "claim": "The sentinel selected by getLastUploadedBackupSentinel is the latest one, not the oldest, so the 'oldest' variable name misstates what the code holds and returns.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Selecting j... | null |
wal-g__wal-g__1836 | wal-g/wal-g | 1,836 | defect | 3569c85ec1a85c0827b35c36879ce9fb9bb80e39 | 3e29e16afe069773fdae5d8b39d92565d4a395bc | fix IsDirectoryEmpty error | ### Database name
MongoDB
# Pull request description
### Describe what this PR fix
Prolem is that MongoDB datadir used whitelist regexp, but IsDirectoryEmpty didn't metioned it
### Please provide steps to reproduce (if it's a bug)
Restore MongoDB
### Please add config and wal-g stdout/stderr logs for deb... | diff --git a/internal/concurrent_downloader.go b/internal/concurrent_downloader.go
index d91d6ac272..8be7b1d047 100644
--- a/internal/concurrent_downloader.go
+++ b/internal/concurrent_downloader.go
@@ -2,6 +2,7 @@ package internal
import (
"fmt"
+ "regexp"
"strings"
"github.com/pkg/errors"
@@ -10,12 +11,14 ... | 2 | 2 | 2 | [{"id": "G0", "claim": "CleanupMongodDBPath matches the whitelist against the full path while EnsureEmptyDBPath matches it against the bare name, so the same configured regexp is applied to two different subjects.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1"... | null |
wal-g__wal-g__1842 | wal-g/wal-g | 1,842 | defect | 061e85923bfdcdeb5281df9225fe3c8a9bb44d1b | 35446028e7d2a6836f1779743b8af22997642ab8 | Fixing [issue](https://github.com/wal-g/wal-g/issues/1809) | ### Database name
Postgres
# Pull request description
When failover storages are enabled and wal-g is used without daemond it don't ever cache storage state in shared file while doing walg-push. This PR fixes it.
### Describe what this PR fix
Fixing [issue](https://github.com/wal-g/wal-g/issues/1809)
### Pl... | diff --git a/internal/multistorage/stats/cache/file.go b/internal/multistorage/stats/cache/file.go
index 4e57043404..3231b904cd 100644
--- a/internal/multistorage/stats/cache/file.go
+++ b/internal/multistorage/stats/cache/file.go
@@ -5,6 +5,7 @@ import (
"fmt"
"io"
"os"
+ "syscall"
"time"
)
@@ -14,9 +15,19 ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new code reads the file's access time via the Linux-only `syscall.Stat_t` cast and is unix-specific (and atime may not be updated under `noatime`), so the portable `info.ModTime()` should be used instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introd... | null |
wal-g__wal-g__1874 | wal-g/wal-g | 1,874 | defect | fade5e6d54832e584ea8cff0692672ad50f1f7ae | 27d7f3cc66fd674ff2cbba10d17b4e943069080d | Add JournalInfo deletion logic | ### Database name
MySQL
# Pull request description
Corresponding to the comments in my previous PR (#1806), I create the PR about the deletion logic of `JournalInfo`.
There is a thing that we should notice. `JournalInfo` of a backup contains information about binlogs we can use for PiTR recovery. So when the ... | diff --git a/cmd/mysql/delete.go b/cmd/mysql/delete.go
index 2ab79f00c2..bbcd8f48a4 100644
--- a/cmd/mysql/delete.go
+++ b/cmd/mysql/delete.go
@@ -74,7 +74,25 @@ func runDeleteTarget(cmd *cobra.Command, args []string) {
backupSelector, err := internal.NewBackupNameSelector(backupName, true) //todo: add selection by u... | 8 | 8 | 2 | [{"id": "G0", "claim": "The test script should use its own S3 bucket following the 'mysql_xxx' naming convention (and register it in docker-compose.yaml) so tests can run concurrently instead of reusing the existing mysqlfullxtrabackupbucket.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "i... | null |
wal-g__wal-g__1950 | wal-g/wal-g | 1,950 | defect | 5b993a9c112ec3e115c2f4f6eac0ac136fde9518 | cf5264e986a33c8514b80faae7e8f052f7e9c854 | refactoring oplog replay | 1) supported LATEST and LATEST_BACKUP pitr aliases 2) added additionalIntervalAfterBackup for saving additional oplog time for backup
### Database name
Wal-g provides support for many databases, please write down name of database you uses.
# Pull request description
### Describe what this PR fixes
// problem... | diff --git a/cmd/mongo/oplog_replay.go b/cmd/mongo/oplog_replay.go
index 698fee48a9..4f01158d26 100644
--- a/cmd/mongo/oplog_replay.go
+++ b/cmd/mongo/oplog_replay.go
@@ -2,23 +2,17 @@ package mongo
import (
"context"
- "encoding/json"
"os"
"syscall"
"github.com/spf13/cobra"
"github.com/wal-g/tracelog"
-... | 1 | 1 | 0 | [{"id": "G0", "claim": "The comment the pull request adds in SelectPurgingOplogArchives, '// retain if arch is part of [backup.start: backup.end +', looks like it should end with ']' instead of a trailing '+'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
wal-g__wal-g__1974 | wal-g/wal-g | 1,974 | defect | 6ea13b90a3198bd5c8f8ac2ae323f28e33cf9f06 | 7dba55815f5179967f9a5f21d30dd9df14f2f168 | Fix failed restore gp cbdb | ### Database name
greenplumn and cloudberrydb
# Pull request description
### Describe what this PR fixes
- Instead of hard-coding wal-g in the /usr/bin directory, users are allowed to specify its location by configuring environment variables.
- Fix failed to restore CloudberryDB,After the full backup is comple... | diff --git a/internal/databases/greenplum/backup_fetch_handler.go b/internal/databases/greenplum/backup_fetch_handler.go
index dffbad4b00..ea5805cab8 100644
--- a/internal/databases/greenplum/backup_fetch_handler.go
+++ b/internal/databases/greenplum/backup_fetch_handler.go
@@ -204,7 +204,7 @@ func (fh *FetchHandler) c... | 3 | 3 | 2 | [{"id": "G0", "claim": "The newly added function should be renamed from MaskedHostName to MaskHostName or TransformHostName.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The generated WAL-switch command is incompatible with Greenplum 6.x: it s... | null |
wal-g__wal-g__2003 | wal-g/wal-g | 2,003 | defect | ca4feeeba7bae8e438a5adcb25c93656f2eabda3 | b844829d5e465f268c2414b7e501baab05eec10d | DIRECT-IO Reader for PostgreSQL | ### Database name
PostgreSQL
# Pull request description
### Describe what this PR fixes
Problem is disk-cache flushing when using wal-g push-backup, this PR solves the problem.
Without patch:

| diff --git a/internal/databases/mysql/generic_meta_interactor.go b/internal/databases/mysql/generic_meta_interactor.go
index f539654aa6..5fe1e50194 100644
--- a/internal/databases/mysql/generic_meta_interactor.go
+++ b/internal/databases/mysql/generic_meta_interactor.go
@@ -24,7 +24,6 @@ func NewGenericMetaFetcher() Ge... | 2 | 1 | 0 | [{"id": "G0", "claim": "The Fetch test for a nonexistent sentinel should also check the error's type, e.g. require.ErrorAs(t, err, &storage.ObjectNotFoundError{}), instead of only asserting that an error occurs.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cla... | null |
wal-g__wal-g__2146 | wal-g/wal-g | 2,146 | defect | a714a5ee856de253268ca97e59df1ec6d5b09eae | 28d600a6a84abbabb95db95a12ddfc39bb3171b3 | Fix backup with SSE-C bug | # Pull request description
Fixes backup with SSE-C enabled bug (#2027).
Added headers in pkg\storages\s3\folder.go Exists, CopyObject and ReadObject funcs.
## Tests
Added unit tests for fix pkg\storages\s3\folder_ssec_test.go. Cases covered:
- Correct headers injection with SSE-C configured.
- Correct object ... | diff --git a/pkg/storages/s3/folder.go b/pkg/storages/s3/folder.go
index b4271be24f..eee99f92f5 100644
--- a/pkg/storages/s3/folder.go
+++ b/pkg/storages/s3/folder.go
@@ -2,6 +2,8 @@ package s3
import (
"context"
+ "crypto/md5"
+ "encoding/base64"
"fmt"
"io"
"path"
@@ -60,6 +62,15 @@ func (folder *Folder) Ex... | 4 | 2 | 1 | [{"id": "G0", "claim": "The SSE-C header block in Exists duplicates the same logic later in the file, so the duplicated part should be separated into a function.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The author should confirm that the M... | null |
wal-g__wal-g__2156 | wal-g/wal-g | 2,156 | defect | 574602faedefa6fcb809c7a22543c2885060ab8f | 0ed657f8b33347a88a1522d2dcb71c604d487c25 | Add 'none' compression method | ### Database name
Any database
# Pull request description
Add 'none' compression method ([Issue #767](https://github.com/wal-g/wal-g/issues/767))
| diff --git a/docs/README.md b/docs/README.md
index 6d52830e58..39f19ae9f8 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -69,8 +69,8 @@ To configure where WAL-G stores backups, please consult the [Storages](STORAGES.
### Compression
* `WALG_COMPRESSION_METHOD`
-To configure the compression method used for back... | 1 | 1 | 0 | [{"id": "G0", "claim": "The 'none' compression can be registered by adding it directly to compression_default.go instead of via a separate none_enabled.go file.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
wal-g__wal-g__217 | wal-g/wal-g | 217 | defect | 671aa8c3065cdf795987024e7073c3063b83ea9f | 3d99b9323710b0351468bac95992469787813a6b | refactoring logic of delete before [FIND_FULL] backup_name | it's part of big refactoring and a lot of code will be deleted at the end of it | diff --git a/cmd/delete.go b/cmd/delete.go
index d7cee558ff..3ee50a3b2a 100644
--- a/cmd/delete.go
+++ b/cmd/delete.go
@@ -5,13 +5,15 @@ import (
"github.com/pkg/errors"
"github.com/spf13/cobra"
"github.com/wal-g/wal-g/internal"
+ "github.com/wal-g/wal-g/internal/storages/storage"
"github.com/wal-g/wal-g/intern... | 10 | 10 | 1 | [{"id": "G0", "claim": "Compute the object's path with strings.TrimPrefix instead of path.Join in GetRelativePath.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "DeleteBeforeTarget should take a single predicate over an object in the store as its paramet... | null |
wal-g__wal-g__2206 | wal-g/wal-g | 2,206 | defect | 65b1588b5593ca539c201f7dceeafef50f36cdad | 8d7313852f4632154bef47e11c2354d1a3c25efc | Optimize oplog listing for large-scale MongoDB deployments | Summary
- When dealing with a large number of oplog archives in storage, the previous implementation listed all oplog archives in the S3 prefix b... | diff --git a/.gitignore b/.gitignore
index 7b240c6896..f341c2114b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -45,3 +45,9 @@ venv/
#Ctags tags file
tags
+
+
+# AI tools files and directories
+.claude
+AGENTS.md
+.mcp.json
diff --git a/internal/databases/mongo/archive/loader.go b/internal/databases/mongo/archive/loa... | 5 | 3 | 1 | [{"id": "G0", "claim": "The new function's doc comment names it ListOplogArchivesStartAfter while the function is actually ListOplogArchivesSegment, so the comment should match the real name.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "ListFo... | null |
wal-g__wal-g__2225 | wal-g/wal-g | 2,225 | defect | 9a92b2ff5648ccf3ebb7b3902797f9596fa2e4b4 | e3b622495f7c2dd3a4b7e972c2f43a80bf7251dd | add save configfile env | Fixes #2031 | diff --git a/cmd/common/common.go b/cmd/common/common.go
index 4487c0a15f..f4a7dc3fcd 100644
--- a/cmd/common/common.go
+++ b/cmd/common/common.go
@@ -51,7 +51,7 @@ func Init(cmd *cobra.Command, dbName string) {
cmd.InitDefaultVersionFlag()
conf.AddConfigFlags(cmd, hiddenConfigFlagAnnotation)
- cmd.PersistentFlag... | 3 | 3 | 1 | [{"id": "G0", "claim": "The new --config flag usage string line is too long and triggers the linters.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "conf.CfgFile should be resolved (from the env var) inside conf.InitConfig when empty, so callers... | null |
wal-g__wal-g__241 | wal-g/wal-g | 241 | defect | 84e479ba79196fb80aab3cd70fd09a7ff079d46e | d950249e8e05dd2a1111c75522dd85c7a081fb36 | Added GetMaxConcurrency unit tests | * Exporting GetMaxConcurrency so it could be tested outside package
* Added GetMaxConcurrency unit tests
| diff --git a/internal/utility.go b/internal/utility.go
index ed5f83c175..a2a9f011b7 100644
--- a/internal/utility.go
+++ b/internal/utility.go
@@ -76,17 +76,17 @@ func ResolveSymlink(path string) string {
}
func getMaxDownloadConcurrency(defaultValue int) int {
- return getMaxConcurrency("WALG_DOWNLOAD_CONCURRENCY"... | 1 | 1 | 1 | [{"id": "G0", "claim": "The case of an invalid (non-numeric) WALG_UPLOAD_CONCURRENCY value is left untested, and GetMaxConcurrency should not Fatal/panic/os.Exit there but return an error to the caller.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
wal-g__wal-g__252 | wal-g/wal-g | 252 | defect | a640e1a5db3336d96a1bb39b1b9b99f148b88c70 | 71e7b00d2ff774640c3b7e318c78dc624b6702bd | Added --pretty and --json flags to backup-list command | https://github.com/wal-g/wal-g/issues/132#issuecomment-438986963 | diff --git a/Gopkg.lock b/Gopkg.lock
index 4b30757825..c4818c8e4e 100644
--- a/Gopkg.lock
+++ b/Gopkg.lock
@@ -223,6 +223,17 @@
revision = "89f1e6ac7276b61d885db5e5aed6fcbedd1c7e31"
version = "v3.2.0"
+[[projects]]
+ digest = "1:4ef2c452afd1700966b7263f2e6bb8999ea636be18ce4d3960c02cd74b5da4b8"
+ name = "githu... | 5 | 4 | 2 | [{"id": "G0", "claim": "The pull request's author should document the new --pretty and --json backup-list flags in the docs.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "WriteBackupListAsJson should use JSON marshalling instead of manual fmt for... | null |
wal-g__wal-g__313 | wal-g/wal-g | 313 | defect | 473ec5b255dac97b92eba3c8b60e0a0ec10e9cc3 | 7fb0f11cf186f59a9bef38ec43279e3cac580f8d | Refactoring of tests | Made a refactoring of tests, namely:
- moved some general functionality from test package to testtools or utility
- deleted duplicate code (such as function `Min` and struct `ErrorReader`)
I've made this PR because I want to fix coverage for tests (now coverage described in README doesn't work). It will be simpler... | diff --git a/internal/compression/compression_test.go b/internal/compression/compression_test.go
index 2965b1d106..ba52d44b22 100644
--- a/internal/compression/compression_test.go
+++ b/internal/compression/compression_test.go
@@ -9,13 +9,6 @@ import (
"testing"
)
-func min(a, b int) int {
- if a < b {
- return a... | 1 | 1 | 1 | [{"id": "G0", "claim": "Test helpers used only by the backup_fetch_handler tests (SimplePath, NewBackupFileListBuilder) were moved into the testtools package, making testtools a strange package that is not an independent, reusable entity; the reviewer questions why the code was moved there and asks that all such single... | null |
wal-g__wal-g__315 | wal-g/wal-g | 315 | defect | 99851a778ddfd51b952be441a3ac83ad650ded5b | f038bfd855a98bc17bf4496592d379cca24e7d62 | Add aws/kms + minio/sio symmetric client side encryption. | Add aws/kms + minio/sio symmetric client side encryption.
`WALG_CSE_KMS_ID` env var specifies KMS key id.
`WALG_CSE_KMS_REGION` env var specifies KMS key region.
Encryption:
- Generate unique symmetric key for every backup;
- Encrypt key with AWS KMS;
- Encrypt backup with symmetric key (minio/sio DARE 32 b... | diff --git a/Gopkg.lock b/Gopkg.lock
index 203683ba2d..3b19158157 100644
--- a/Gopkg.lock
+++ b/Gopkg.lock
@@ -50,7 +50,7 @@
version = "v0.4.16"
[[projects]]
- digest = "1:e3bb374225bfecd4f8d8bd099216802dccbc3ceeb0d185b891eba4eb095857cf"
+ digest = "1:d6ea693db6c6588b4831fd333454721144f4a2533824ef3d22243cd519c4... | 3 | 2 | 1 | [{"id": "G0", "claim": "If the WALG_CSE_KMS_* settings are S3-only, they should be renamed to use the WALG_S3_CSE_ prefix.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The errors in Encrypt/Decrypt should be wrapped with a proper description instead of t... | null |
wal-g__wal-g__447 | wal-g/wal-g | 447 | defect | 57d0f4cc84efe04213aa166228a4d815f8b36218 | 4e5fc4ee5eaa373f2b81f739b42f145788e3db5a | Add unit tests to utility.TryFetchTimeRFC3999; minor refactor; | Attempt number 2
I closed previous PR because master was force pushed back after I've cloned it | diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index ef3ee9a312..03826166b2 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -8,6 +8,7 @@ David Fetter <david@fetter.org>
Dustin Chaloupka <dustin.chaloupka@banno.com>
Ferhat Elmas <elmas.ferhat@gmail.com>
Georgy Rylov <g0dj4n@gmail.com>
+Grigory Kryachko <gskryachko@gmail.co... | 1 | 1 | 0 | [{"id": "G0", "claim": "TryFetchTimeRFC3999 would treat a string like \"201920191015T211200Z\" as valid and return the trailing timestamp; the reviewer considers such a string invalid and asks whether it works.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}] | null |
wal-g__wal-g__486 | wal-g/wal-g | 486 | defect | 2414686962ddf895ecc8a149d31e0359cb07d61b | d5373909d3dea699b64fe0f0fc9a9cddf66c3b4e | Add unit tests | Added unit tests for `IsDirectoryEmpty` function in `internal/backup.go`
___
### Tests
- `true` when:
- empty
- doesn't exist (looks strange, I would treat this like error, but program uses this logic)
- `false` when:
- one file
- several files
- nested directory | diff --git a/internal/backup.go b/internal/backup.go
index 6bf131e9cf..4f9b8c7ef7 100644
--- a/internal/backup.go
+++ b/internal/backup.go
@@ -232,9 +232,10 @@ func IsPgControlRequired(backup *Backup, sentinelDto BackupSentinelDto) bool {
return needPgControl
}
-// TODO : unit tests
+
func isDirectoryEmpty(direct... | 2 | 2 | 0 | [{"id": "G0", "claim": "The pull request's change to the last line of internal/backup_test.go (dropping the file's trailing newline) is unnecessary and should be dropped.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "In the new tests in interna... | null |
wal-g__wal-g__54 | wal-g/wal-g | 54 | defect | fbe8d21db937bcacbbde662fd6744e8c82a199af | 30904410b84d470f9d498a7a8a008a91ac808477 | run go vet and cleanup errors | Pretty standard cleanup. I'm most worried about https://github.com/wal-g/wal-g/commit/30904410b84d470f9d498a7a8a008a91ac808477, because there might be a hidden reliance on the embedding, but that's why the new Write methods prefer the lz4 writer. | diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000000..7cd07aa3e5
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+cmd/wal-g/wal-g
diff --git a/Makefile b/Makefile
index 06d18630b9..0cf1633de1 100644
--- a/Makefile
+++ b/Makefile
@@ -4,9 +4,10 @@ PKG_FILES = $(wildcard *.go)
.PHONY : test install all... | 1 | 1 | 0 | [{"id": "G0", "claim": "The embedded-type change is not necessary to satisfy go vet; named initialization of the composite literal (fb.w = &walg.Lz4CascadeClose2{Writer:lz4.NewWriter(f), Underlying:wc, Underlying2: f}) would be enough.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduc... | null |
wal-g__wal-g__686 | wal-g/wal-g | 686 | defect | 5af55642726d4b053504514aa55688e1dffa7a10 | d830557f645d8da24b0387d3586854aa892e5433 | Improve pagefile unit tests | I've refactored some of the existing pagefile_test.go tests for existing pagefile functionality and wrote a couple of new ones for new functionality introduced in pull requests https://github.com/wal-g/wal-g/pull/609 and https://github.com/wal-g/wal-g/pull/670 | diff --git a/internal/incremental_page_reader_test.go b/internal/incremental_page_reader_test.go
index 61905567c6..4d9796839b 100644
--- a/internal/incremental_page_reader_test.go
+++ b/internal/incremental_page_reader_test.go
@@ -114,7 +114,7 @@ func TestFullScanInitialize(t *testing.T) {
pageReader := internal.Incr... | 8 | 6 | 1 | [{"id": "G0", "claim": "Move the TestIncrement struct definition from the bottom of pagefile_test.go to the beginning of the file.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a comment (or a link to the documentation of the format) explai... | null |
wal-g__wal-g__746 | wal-g/wal-g | 746 | defect | 62eb316360c2dfab8b464edcb293210225da488d | bfbe968b8700865a36b586738f3fd5f0d4e5ded1 | Add wal-verify command | In this PR I propose wal-verify command.
After launching wal-verify, WAL-G connects to the Postgres cluster and fetches the current cluster segment number and timeline.
Then, it traverses the WAL segments history in reversed chronological order and checks the WAL segments history integrity (finds missing segments... | diff --git a/cmd/pg/wal_verify.go b/cmd/pg/wal_verify.go
new file mode 100644
index 0000000000..0a79fc3576
--- /dev/null
+++ b/cmd/pg/wal_verify.go
@@ -0,0 +1,44 @@
+package pg
+
+import (
+ "github.com/spf13/cobra"
+ "github.com/wal-g/tracelog"
+ "github.com/wal-g/wal-g/internal"
+ "os"
+)
+
+const (
+ WalVerifyUsage ... | 5 | 4 | 2 | [{"id": "G0", "claim": "The new method buildGetLsn should be renamed to match its documented name BuildGetCurrentLSN.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "getCurrentLsn should return a default value (empty string) as the first return v... | null |
wal-g__wal-g__807 | wal-g/wal-g | 807 | defect | 7e40a83dea9a61fe8096feb07bad3e30ffd1edfc | 5448adc95c45d92a94cfeb9ec67a5dce3bd5a84f | Allow the wal segment size to be set as a variable | Postgres 11+ allows the wal segment size to be adjusted in initdb, `wal-segsize`. This PR allows you to set the value that Wal-g uses.
Also reported in #765 and #779
I'm not sure `SetWalSize` should be in `pg.go`, let me know if it should be moved.
| diff --git a/cmd/pg/pg.go b/cmd/pg/pg.go
index e4ced3ae0e..da7ce60abb 100644
--- a/cmd/pg/pg.go
+++ b/cmd/pg/pg.go
@@ -2,6 +2,7 @@ package pg
import (
"fmt"
+ "github.com/spf13/viper"
"os"
"strings"
@@ -25,6 +26,9 @@ var (
PersistentPreRun: func(cmd *cobra.Command, args []string) {
err := internal.Ass... | 2 | 2 | 1 | [{"id": "G0", "claim": "A test fails on CI because the PR's test does not restore the default WAL segment size after changing it.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The error message `bytes_per_wal_segment of the server does not match ex... | null |
wal-g__wal-g__899 | wal-g/wal-g | 899 | defect | cff3bf606389a88be5ec9759db3e4b23819b7b27 | 5ffe56aeddc956d943226113f81293c4a11fdaf7 | [Feature Request] Adding additional metadata file to pg WAL | Creating PR for the issue reported in https://github.com/wal-g/wal-g/issues/865.
| diff --git a/PostgreSQL.md b/PostgreSQL.md
index 994a5e811b..b0173c81bc 100644
--- a/PostgreSQL.md
+++ b/PostgreSQL.md
@@ -127,6 +127,20 @@ To configure the size of one backup bundle (in bytes). Smaller size causes granu
To configure the wal segment size if different from the postgres default of 16 MB
+* `WALG_UPL... | 15 | 11 | 5 | [{"id": "G0", "claim": "Add an explicit value for \"no metadata\" for WALG_UPLOAD_WAL_METADATA, since an environment variable can override a config variable and \"not specified\" alone may then be ambiguous.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cla... | null |
wal-g__wal-g__950 | wal-g/wal-g | 950 | defect | 71fe4cb1cc224ed6a41e1776bf8e4fe5ca2ecda0 | 9f2ecddfbfdce05c6f2b01a4936dedb817c9c9be | rename .ready archive status files | Hello!
I would like to propose a PR, which introduces the walE-like behavior of renaming `.ready` status files into `.done` for successfully upladed WAL segments.
It allows to save time by not attempting to upload already uploaded files.
This behaivor is enabled by `--pg-ready-rename` flag.
Feedback and thought on... | diff --git a/internal/config.go b/internal/config.go
index 628ad23267..fc857494a1 100644
--- a/internal/config.go
+++ b/internal/config.go
@@ -62,6 +62,7 @@ const (
NameStreamRestoreCmd = "WALG_STREAM_RESTORE_COMMAND"
MaxDelayedSegmentsCount = "WALG_INTEGRITY_MAX_DELAYED_WALS"
PrefetchDir ... | 4 | 3 | 1 | [{"id": "G0", "claim": "The ReadyRename field and constructor parameter should not be public/exported.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The pull request needs a test covering the new .ready-rename functionality.", "category": "testing", "ve... | null |
wal-g__wal-g__977 | wal-g/wal-g | 977 | defect | 055e12cb9ca568aecb35ceb33aa3058d34fc5ddb | 8a28009f58cabae98cb177d8f8e7862c2d836123 | WIP wal-restore | That what I think:
1) I'm scary what I don't handle this case: we need wal segments that names already exists in local wal directory and need to rewrite them (Can this happen?). Because in current logic if we have wal segment with some name we can't download this wal file from external storage.
2) This right that... | diff --git a/cmd/pg/wal_restore.go b/cmd/pg/wal_restore.go
new file mode 100644
index 0000000000..276672c162
--- /dev/null
+++ b/cmd/pg/wal_restore.go
@@ -0,0 +1,34 @@
+package pg
+
+import (
+ "github.com/spf13/cobra"
+ "github.com/wal-g/storages/fs"
+ "github.com/wal-g/tracelog"
+ "github.com/wal-g/wal-g/internal"
+)... | 4 | 4 | 2 | [{"id": "G0", "claim": "The author is unsure whether wal-restore should delete/overwrite existing local files whose names match missed WAL segments, since without a later pg_rewind the local WAL files could be left inconsistent.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {... | null |
wala__WALA__1029 | wala/WALA | 1,029 | defect | 31b5db3198eed7ed8dfca80e0b24bba604f5f932 | 6565326969a82f51fbf7d2b5a43665b8e7b50a7e | Fix Assumption in CodeScanner that Overlooks Dex Files; Add Regression Test to MultiDexScopeTest | - Added a method Collection<NewSiteReference> getNewSites() to the IBytecodeMethod interface
- Implemented getNewSites() in DexIMethod
- Modified CodeScanner#getNewSites(com.ibm.wala.classLoader.IMethod) to just invoke IBytecodeMethod.getNewSites() in its else case.
- Made getNewSites() in ShrikeCTMethod public
- R... | diff --git a/com.ibm.wala.core/src/main/java/com/ibm/wala/classLoader/CodeScanner.java b/com.ibm.wala.core/src/main/java/com/ibm/wala/classLoader/CodeScanner.java
index 7320c8a3a7..3e207109b0 100644
--- a/com.ibm.wala.core/src/main/java/com/ibm/wala/classLoader/CodeScanner.java
+++ b/com.ibm.wala.core/src/main/java/com... | 5 | 5 | 0 | [{"id": "G0", "claim": "Remove the @SuppressWarnings(\"unchecked\") on getNewSites if it is not needed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Get rid of the unrelated whitespace-only changes in the commented-out block of DexIMethod.getH... | null |
wala__WALA__1128 | wala/WALA | 1,128 | defect | aa3a1a238d3d51be1f889fe33652c3b2397e5cc6 | b12dfe9564478581bc6b9ba800364f6b831a4fe3 | Add Error Prone to build | We only run Error Prone on JDK 11 builds, as recent Error Prone releases do not run on JDK 8. We also disable WARNING level checks for now, to reduce the noise in the build output (we get hundreds of WARNING-level messages from Error Prone, which we should try to fix gradually).
This PR also fixes all ERROR-level i... | diff --git a/build.gradle b/build.gradle
index bf98df91b4..89e4ee7f88 100644
--- a/build.gradle
+++ b/build.gradle
@@ -15,6 +15,7 @@ plugins {
id 'com.github.sherter.google-java-format' version '0.9'
id 'de.undercouch.download'
id 'nebula.lint' version '17.2.3'
+ id 'net.ltgt.errorprone' version '2.0.2' apply fal... | 5 | 5 | 0 | [{"id": "G0", "claim": "Define a file-scope variable for the Java-9-compatibility predicate (e.g. `final useErrorProne = JavaVersion.current().isJava9Compatible()`) instead of calling the predicate repeatedly at each use site.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduc... | null |
wala__WALA__1196 | wala/WALA | 1,196 | defect | 231b737b9e53d0d5e1aad70c69e096df139f65dd | 92a63ef790d8cb852c94ea6b3e838da2eb8c8d86 | Remove obsolete Travis CI material | We stopped using Travis CI nearly two years ago: #853 on January 2, 2021. However, we still had a few leftover remnants of Travis-specific logic. Let's get rid of that obsolete material too.
Note that we previously had a few Rhino tests that we pretended to skip only on Travis, but which we were actually skipping ... | diff --git a/buildSrc/src/main/kotlin/com/ibm/wala/gradle/publishing.gradle.kts b/buildSrc/src/main/kotlin/com/ibm/wala/gradle/publishing.gradle.kts
index 479846f258..59f4fef638 100644
--- a/buildSrc/src/main/kotlin/com/ibm/wala/gradle/publishing.gradle.kts
+++ b/buildSrc/src/main/kotlin/com/ibm/wala/gradle/publishing.... | 1 | 1 | 0 | [{"id": "G0", "claim": "Tests that load their input from a URL should be kept disabled on CI, since running them there is a recipe for flakiness.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}] | null |
wala__WALA__1275 | wala/WALA | 1,275 | defect | 89de874efbc3369097e03b85493f4a3beb8e1a44 | a4f07e84c0c90f3f60ff54b07d2f7a40c439d844 | Properly handle static interface methods as entrypoints | When a static Interface method is selected as an Entrypoint, WALA creates an invokeinterface instead of an invokestatic instruction in FakeRootMethod. This will lead to an out-of-array read when resolving the receiver for an interface invocation.
A test can be simply an Android app generated by Android Studio for a ... | diff --git a/core/src/main/java/com/ibm/wala/ipa/callgraph/Entrypoint.java b/core/src/main/java/com/ibm/wala/ipa/callgraph/Entrypoint.java
index b21c8edfab..3708983f30 100644
--- a/core/src/main/java/com/ibm/wala/ipa/callgraph/Entrypoint.java
+++ b/core/src/main/java/com/ibm/wala/ipa/callgraph/Entrypoint.java
@@ -70,17... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request should add a unit test for the changed static-interface-method dispatch behavior in Entrypoint.makeSite, rather than only an Android sample app.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
wala__WALA__1301 | wala/WALA | 1,301 | defect | 7b8d005f9eb42b7d80f8d36b07c4618cc439d7ad | 5f897530221e7bca2886c58719f2aaa5340a818b | Port a few JUnit 4 odds and ends to JUnit 5 | These miscellaneous uses of JUnit 4 escaped my attention in other recent conversion passes. | diff --git a/cast/js/rhino/src/test/java/com/ibm/wala/cast/js/rhino/test/HTMLCGBuilder.java b/cast/js/rhino/src/test/java/com/ibm/wala/cast/js/rhino/test/HTMLCGBuilder.java
index 5c066b348b..8fdb6e260f 100644
--- a/cast/js/rhino/src/test/java/com/ibm/wala/cast/js/rhino/test/HTMLCGBuilder.java
+++ b/cast/js/rhino/src/te... | 3 | 2 | 0 | [{"id": "G0", "claim": "Since this code is being edited, the try/finally should be cleaned up into a try-with-resources for the tmp variable, which would also remove the need to catch IOException.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "T... | null |
wala__WALA__1355 | wala/WALA | 1,355 | defect | 675cee88cd6fbfe82e7ad20f5d98e97430acb574 | ab162270a854c67daa23d901f0c56429e145c0e0 | analysisScope toJson function | Added a new function to serialize an `AnalysisScope` to JSON format. | diff --git a/core/build.gradle.kts b/core/build.gradle.kts
index b505e41d7b..f23e4c12eb 100644
--- a/core/build.gradle.kts
+++ b/core/build.gradle.kts
@@ -59,6 +59,7 @@ dependencies {
api(projects.util) { because("public interface CallGraph extends interface NumberedGraph") }
testFixturesImplementation(libs.ant)
... | 6 | 5 | 2 | [{"id": "G0", "claim": "Delete the stray lines at the top of AnalysisScope.java (the commented-out Gson import and the extra blank lines around the Gson import).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In toJson() use LinkedHashMap instea... | null |
wala__WALA__1395 | wala/WALA | 1,395 | defect | 18a521cfbbd7ee322f696411f03ab2b35ddbd6ee | b775e07591ab1fa0cf33419ad0960f15e939e813 | Improved Enhanced Bounds Implementation with enhanced memory utilization and better handling of reflective vertices | This pull request includes changes to several files related to the implementation of a bounded call graph strategy and improvements in memory utilization and reflective vertices handling.
FieldBasedCallGraphBuilder.java: Introduces support for reflective call vertices for invocations of call and apply, enhancing th... | diff --git a/cast/js/rhino/src/test/java/com/ibm/wala/cast/js/rhino/callgraph/fieldbased/test/TestBoundedFieldBasedCG.java b/cast/js/rhino/src/test/java/com/ibm/wala/cast/js/rhino/callgraph/fieldbased/test/TestBoundedFieldBasedCG.java
index 69f9de1ad4..f783291882 100644
--- a/cast/js/rhino/src/test/java/com/ibm/wala/ca... | 1 | 1 | 0 | [{"id": "G0", "claim": "Commented-out dead code lines like these should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
wala__WALA__1398 | wala/WALA | 1,398 | defect | 09a71511f0d499a758d6ce08ffb394d5e3e04020 | 68a131a60cd1f232da9de261f349d99b39a966b7 | Fix JUnitEntryPoints annotation check | Fixes #1373
| diff --git a/core/build.gradle.kts b/core/build.gradle.kts
index f23e4c12eb..58d5bb498b 100644
--- a/core/build.gradle.kts
+++ b/core/build.gradle.kts
@@ -65,6 +65,9 @@ dependencies {
testRuntimeOnly(sourceSets["testSubjects"].output.classesDirs)
// add the testSubjects source files to enable SourceMapTest to pas... | 2 | 1 | 1 | [{"id": "G0", "claim": "The new test method basic() declares the checked exception CancelException, which it never throws, causing an ECJ compilation failure.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "A test with a test method declared in an in... | null |
wala__WALA__1419 | wala/WALA | 1,419 | defect | 96cb8983ada720d0a42ddff27f0feb598f5a748a | 54157a57cdca167c12347bbc6398d84e16e77efa | Support building and running on JDK 22 | We don't immediately crash on JDK 22 bytecodes, but new bytecode features have not been tested.
We modify the `TestList` test input to avoid a blowup when running `SlicerTest.testList`. https://github.com/openjdk/jdk/commit/b62e774e6a531db934de04211724a2a8159d94db introduced calls to `String.format` from `Integer.p... | diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml
index 8cfa854af7..735dc358cb 100644
--- a/.github/workflows/continuous-integration.yml
+++ b/.github/workflows/continuous-integration.yml
@@ -26,6 +26,8 @@ jobs:
java: 17
- os: ubuntu-latest
... | 2 | 1 | 0 | [{"id": "G0", "claim": "The changes to TestList.java (switching the test input from List<Integer> to List<String>) seem unrelated to supporting JDK 22 and need justification.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "An explanation of why the... | null |
wala__WALA__1476 | wala/WALA | 1,476 | defect | 6d623927c336dc6178021748b56def10da321265 | a81546d0e6d49226c798e4fa245ba6cb50b19a12 | Add lambda support to CHACallGraph | Fixes #1459
To support lambdas, we re-use logic from the `LambdaMethodTargetSelector` to handle calls that use `invokedynamic`. `CHACallGraph` only includes edges for methods reachable from given entrypoints, and our handling of lambdas adds new synthetic classes to the class hierarchy (representing the classes ge... | diff --git a/cast/src/main/java/com/ibm/wala/cast/ipa/cha/CrossLanguageClassHierarchy.java b/cast/src/main/java/com/ibm/wala/cast/ipa/cha/CrossLanguageClassHierarchy.java
index 8ac0198537..86997bcea5 100644
--- a/cast/src/main/java/com/ibm/wala/cast/ipa/cha/CrossLanguageClassHierarchy.java
+++ b/cast/src/main/java/com/... | 8 | 8 | 0 | [{"id": "G0", "claim": "In CrossLanguageClassHierarchy.clearCaches, prefer a tacit style using hierarchies.values().forEach(IClassHierarchy::clearCaches) over the explicit for loop, though the author may keep the explicit loop if preferred.", "category": "maintainability", "verdict": "supported", "priority": "P2", "sco... | null |
wala__WALA__1539 | wala/WALA | 1,539 | defect | c037f6f659662a24a9667822c21ad388d3214d26 | e4975bcf3b043a90640e54cb61693418f918de78 | Remove :ide:jdt:test | The sources in this subproject define no tests and are not used by any other code in this main WALA repository. As far as I can tell, that code is all dead code, making this a dead subproject.
Fixes #1538. | diff --git a/ide/jdt/test/.settings/org.eclipse.jdt.core.prefs b/ide/jdt/test/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 0d9a8a083e..0000000000
--- a/ide/jdt/test/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,450 +0,0 @@
-eclipse.preferences.version=1
-instance/org.eclipse.core.net/o... | 1 | 1 | 0 | [{"id": "G0", "claim": "DemandCastChecker.java should be retained and moved to core/src/main/java/com/ibm/wala/examples/drivers instead of being deleted.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
wala__WALA__1879 | wala/WALA | 1,879 | defect | c4d4a56c1bcfa441906cee847bfa160ed9ef3385 | 16ccf240f7858aedef9b7c4e99d0163cb5c52fb6 | Use `JrtModule` consistently to handle standard library on modern JDKs | Fixes #1876
Before this change, we would load standard library `jmod` files for recent JDKs from a well-known place in the filesystem. But, certain JDK distributions like Temurin no longer distribute such files directly. This change allows WALA to run on such JDKs, by loading the standard library files via the pr... | diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml
index 206b0259d9..fab4c1a20d 100644
--- a/.github/workflows/continuous-integration.yml
+++ b/.github/workflows/continuous-integration.yml
@@ -56,7 +56,7 @@ jobs:
21
25
26
- ... | 9 | 8 | 1 | [{"id": "G0", "claim": "The new stdlib-loading code duplicated in AnalysisScopeReader.processScopeDefLine and SourceDirCallGraph.doit should be factored out into a common routine, unless there is a reason to keep them separate.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introdu... | null |
wala__WALA__359 | wala/WALA | 359 | defect | 1c6a6b0cbd2a6d747dab52ae932326c8c2b7d8cf | 4e538b9ad71ebf5aab296f1a7ce877390628c331 | Impl of IMethod.is(Wala)Synthetic and IClass.isSynthetic | So far IMethod.isSynthetic referred to WALA-generated helper functions
and there was no equivalent to check whether an IMethod is synthetic in
terms of compiler-generated.
- To make naming consistent this patch first renames the isSynthetic to
isWalaSynthetic to clearly indicate that a given IMethod was generated
... | diff --git a/com.ibm.wala.cast.java/src/com/ibm/wala/cast/java/ipa/callgraph/AstJavaSSAPropagationCallGraphBuilder.java b/com.ibm.wala.cast.java/src/com/ibm/wala/cast/java/ipa/callgraph/AstJavaSSAPropagationCallGraphBuilder.java
index f868e3a125..7230b45395 100644
--- a/com.ibm.wala.cast.java/src/com/ibm/wala/cast/java... | 1 | 1 | 0 | [{"id": "G0", "claim": "The Javadoc 'Is this method created by WALA?' on isWalaSynthetic should be rephrased to say 'Is the implementation of this method a model generated by WALA?', since in many cases the method exists in the original bytecode and WALA only hijacks the implementation.", "category": "documentation", "... | null |
wala__WALA__389 | wala/WALA | 389 | defect | bc0309b5ba9c8c59abdf3ee8fd94a83e1beec3c9 | e5dd3d5ae8222ab0165db59c64a4eb988c3c4b08 | fix the java.lang.StringIndexOutOfBoundsException in TypeArgument.par… | Fix the [issue 388](https://github.com/wala/WALA/issues/388) | diff --git a/com.ibm.wala.core.tests/src/com/ibm/wala/core/tests/typeargument/TypeArgumentTest.java b/com.ibm.wala.core.tests/src/com/ibm/wala/core/tests/typeargument/TypeArgumentTest.java
new file mode 100644
index 0000000000..7f55946bed
--- /dev/null
+++ b/com.ibm.wala.core.tests/src/com/ibm/wala/core/tests/typeargum... | 2 | 2 | 2 | [{"id": "G0", "claim": "Add a test case that crashes under the old parsing code and works with the patch, so the StringIndexOutOfBoundsException fix is covered by a regression test.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Rather than iterating ov... | null |
wala__WALA__447 | wala/WALA | 447 | defect | 1699567aa153bd9b07512e85b2f7a18998ff327e | 790d4a0479f5108613884052076f61fbd597ab42 | Some support for JDK 11 in Java bytecode frontend | This is work-in-progress WALA support for JDK 11, based on #371. Full WALA support for JDK 11 will require significantly more work, but I thought it would be best to commit the changes to master incrementally rather than trying to fix everything all at once.
The main functional change here is from #371: on JDK 11, ... | diff --git a/.travis.yml b/.travis.yml
index daa07fa925..799c1211a4 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -32,6 +32,15 @@ env:
- secure: jacvGPYX4ugG/HgwJEEpWnllWsS/ipX+qRJ7qM5mbDYryeqsz0eiaxBxQ6IpDyj0v6O4DUi74lSQs/UxCWcUxvOn/5AweCZfoF1U8vt1xivanR4MbC2kr6rJ6ohICuJ4PHDS4IffncgaP3Y8cfExHq6+d0tbibYkjRIiMUGpSi... | 1 | 1 | 0 | [{"id": "G0", "claim": "Prefer a method reference instead of a lambda in getBootClassPathJars: use `.map(Path::toString)` rather than `.map(x -> x.toString())`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
wala__WALA__500 | wala/WALA | 500 | defect | bd341d863ef0cc7cecc58e8a2395203ab42c5346 | f25fc0c5c1591cb40249ef3ba1aa2ce0cba6e8a9 | Fix two bugs with handling of lambdas | This PR fixes two issues with handling of lambdas in WALA:
* handling of method references to constructors (#445)
* handling of cases where the lambda both has parameters and captures values
See the new test cases `testMethodRefs()` and `testParamsAndCapture()`.
As part of the fixes, we significantly refactor t... | diff --git a/com.ibm.wala.core.testdata/src/lambda/MethodRefs.java b/com.ibm.wala.core.testdata/src/lambda/MethodRefs.java
new file mode 100644
index 0000000000..d4e348a1a7
--- /dev/null
+++ b/com.ibm.wala.core.testdata/src/lambda/MethodRefs.java
@@ -0,0 +1,74 @@
+package lambda;
+
+import java.util.function.BiConsumer... | 1 | 1 | 0 | [{"id": "G0", "claim": "The statement lambda assigned to getTargetRef in testMethodRefs should be rewritten as an expression lambda.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
wala__WALA__607 | wala/WALA | 607 | defect | 5c644f938a5054f080b62b037d3fc7c7c4f3fa2d | 002179cfe58ec89ea744a255723e24d27b39ff7f | Windows build and test improvements | These changes fix various failures in building or testing WALA on Windows. More work remains to be done before WALA on Windows passes all of its own tests, but these are constructive steps in that direction. | diff --git a/build.gradle b/build.gradle
index 5c8d8ee7fb..d4acdbe518 100644
--- a/build.gradle
+++ b/build.gradle
@@ -93,6 +93,7 @@ subprojects { subproject ->
// :com.ibm.wala.cast.test:compileTestJava, which requires JNI support that ECJ does not offer.
tasks.withType(JavaCompile) {
it.ext.originalToolChain =... | 3 | 3 | 2 | [{"id": "G0", "claim": "The no-op \"shellCheck\" task registration on Windows should be explained with a comment.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "There is no CI job to keep the Windows build/test progress from regressing.", "categ... | null |
wala__WALA__701 | wala/WALA | 701 | defect | 180854c75cf161648da3f89e27d7fbe7531a2d5d | efdc13f508e7ef61d767eae424f4ee0a0abcf5ce | Build more files in "build" subdirectories | Avoid cluttering subprojects' directories with generated files. Instead, prefer to generate files in various `build` subdirectories. This makes it easier to recognize what's part of the source tree and what's built.
Clean up Git ignore patterns accordingly.
This doesn't address the non-`build` generated-files pro... | diff --git a/.gitignore b/.gitignore
index 7a488bf468..5ddaed6c87 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,16 +1,10 @@
-*.DS_Store
-*.class
-*.out
+**/.settings/org.eclipse.buildship.core.prefs
*.swp
-*/bin/
*~
-.classpath
-.metadata/
+.DS_Store
.project
+/*/.classpath
+/*/bin/
/.gradle/
/.vscode/settings.js... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add Javadoc to the new ExtractingToPredictableFileNames class indicating its purpose.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
wala__WALA__725 | wala/WALA | 725 | defect | 82da022e0d62e46b9639a1ae921d126b76389d10 | d218f9e6678bce365699571b073897205f6d8fb4 | Switch from dx to d8 for converting jar to dex | `dx` is deprecated so this modernizes our test code. Also, using `d8` means we don't need to pull in the Android SDK as a `testCompile` dependence in `com.ibm.wala.dalvik`, since `d8` can be pulled from a Maven repository. We still require the Android SDK as a `testRuntime` dependence.
Apparently `d8` strips out a... | diff --git a/build.gradle b/build.gradle
index abf57af255..984c7fb9b0 100644
--- a/build.gradle
+++ b/build.gradle
@@ -58,6 +58,8 @@ subprojects { subproject ->
repositories {
mavenCentral()
+ // to get r8
+ google()
}
eclipse {
diff --git a/com.ibm.wala.core/src/main/java/com/ibm/wala/classLoader/IBytec... | 3 | 3 | 0 | [{"id": "G0", "claim": "The new 'com.android.tools:r8:1.6.84' dependency should be moved just before the 'junit:junit:4.13' line, since dependencies are kept in sorted order.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The newly added reposit... | null |
wala__WALA__814 | wala/WALA | 814 | defect | 316b0bcdb5994cea645133da1f091bae78be5173 | 3bf9a503a70a7790c98cea796c85e9f8f9b5f8e7 | add k-limited object sensitivity (#801) | First of all, I am sorry to submit the pr after so long. Considering that if `HeapContextSelector` is introduced, it may not be consistent with the existing logic of `GetClassContextSelector`, `CloneContextSelector`, etc., eventually there may be problems in processing reflection. So I finally changed the implementatio... | diff --git a/com.ibm.wala.core/src/main/java/com/ibm/wala/core/tests/util/TestConstants.java b/com.ibm.wala.core/src/main/java/com/ibm/wala/core/tests/util/TestConstants.java
index 808a0149d2..828fcf47c4 100644
--- a/com.ibm.wala.core/src/main/java/com/ibm/wala/core/tests/util/TestConstants.java
+++ b/com.ibm.wala.core... | 5 | 5 | 0 | [{"id": "G0", "claim": "Add the WALA copyright header (with copyright years 2002-2020) to every newly-created file in this pull request.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a proper Javadoc comment explaining what the AllocationStri... | null |
wala__WALA__912 | wala/WALA | 912 | defect | 0e74742e8fdb10f9c94f6ab6750e3940e39faad6 | 7753421118d3c5b0fa487b34d6b6449700c8f676 | Test private interface methods | Also adds relevant Gradle scripting to only run the test when executing on a JDK 11+ VM | diff --git a/.idea/encodings.xml b/.idea/encodings.xml
index 15a15b218a..3df63f1e2e 100644
--- a/.idea/encodings.xml
+++ b/.idea/encodings.xml
@@ -1,4 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
- <component name="Encoding" addBOMForNewFiles="with NO BOM" />
+ <component name="Encoding">
+ ... | 5 | 5 | 2 | [{"id": "G0", "claim": "The test subject should be an interface containing a private method (as in the cited blog post) rather than a class, since the pull request is meant to test private interface methods.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cla... | null |
wala__WALA__955 | wala/WALA | 955 | defect | 9054a34050050975ed2d1732dd8d7867942c1d8c | 2aaa57fa52379a6472be61f24f8dfe8050567845 | Update Java version selection strategy; resolve all Eclipse diagnostics | ### Resolve Eclipse errors following a pristine import
IntelliJ IDEA can configure a different Java version for each `SourceSet` within each Gradle subproject. Eclipse, unfortunately, can only configure one Java version per subproject. Therefore, Java 11+ material that was previously in `com.ibm.wala.core` needs t... | diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml
index b178f882fd..b592ae3f7a 100644
--- a/.github/workflows/continuous-integration.yml
+++ b/.github/workflows/continuous-integration.yml
@@ -49,7 +49,7 @@ jobs:
# testing ECJ compilation on any one OS is s... | 1 | 1 | 1 | [{"id": "G0", "claim": "Msridhar is not convinced the java.toolchain approach is what they want: for the foreseeable future WALA release target compatibility will be 1.8, so even when running on a Java 11+ VM the javac source/target compatibility flags may still need to be set to 1.8 to mimic running an actual WALA rel... | null |
wala__WALA__971 | wala/WALA | 971 | defect | a514fe9cad698353d9dd963533efb0b6abda6c2e | d45d0e36e1863a735387e5a6e5e0a94aaf378bba | Add a basic graph implementation | This way, we have an implementation that does not require node numbering, as an example and to use in tests, etc. | diff --git a/com.ibm.wala.util/build.gradle b/com.ibm.wala.util/build.gradle
index e7f29ebc49..f34f952192 100644
--- a/com.ibm.wala.util/build.gradle
+++ b/com.ibm.wala.util/build.gradle
@@ -4,6 +4,12 @@ plugins {
eclipse.project.natures 'org.eclipse.pde.PluginNature'
+dependencies {
+ testImplementation(
+ 'jun... | 3 | 3 | 1 | [{"id": "G0", "claim": "The copyright headers of the new BasicEdgeManager.java and BasicGraph.java are inappropriate for brand-new code written by a non-IBM employee: they assign copyright to IBM for the year range 2002-2021 and credit IBM Corporation with the initial implementation.", "category": "documentation", "ver... | null |
wala__WALA__975 | wala/WALA | 975 | defect | 301d08734c173d131dbe03f63aff8e0ce762790d | 181dd9fbccb4b4c8a127aeed379b7cb4905e64cb | Revive IFDSExplorerExample | Fixes #921
Previously we did not test that the SWT-related code in `com.ibm.wala.ide.tests` actually ran correctly, and we ended up with some classpath issues not detected by just building the code (e.g., a dependence that required Java 11). This PR fixes these issues, and adds a unit test so we don't regress in t... | diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml
index 3d21dfd7a1..c36e63934b 100644
--- a/.github/workflows/continuous-integration.yml
+++ b/.github/workflows/continuous-integration.yml
@@ -47,11 +47,11 @@ jobs:
java-version: ${{ matrix.java }}
... | 2 | 1 | 0 | [{"id": "G0", "claim": "The wala.testdata.txt file should not be duplicated in com.ibm.wala.ide.tests; Gradle should copy the original from com.ibm.wala.core as part of the processTestResources task instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", ... | null |
wala__WALA__986 | wala/WALA | 986 | defect | a573617fbe116b1d792b80dc9f0660e7f74e4273 | b039d0cdfe69f1cfe0a83784dacfdf8b63623d83 | Conform to Java package naming conventions | Java package names conventionally start with lower-case letters. | diff --git a/com.ibm.wala.core.java11/src/test/java/com/ibm/wala/core/tests/jdk11/privateInterfaceMethods/PrivateInterfaceMethodsTest.java b/com.ibm.wala.core.java11/src/test/java/com/ibm/wala/core/tests/jdk11/privateInterfaceMethods/PrivateInterfaceMethodsTest.java
index c5d00dd586..111555c738 100644
--- a/com.ibm.wal... | 1 | 1 | 1 | [{"id": "G0", "claim": "Renaming the package com.ibm.wala.dataflow.IFDS to com.ibm.wala.dataflow.ifds will break any WALA client using the IFDS code, and since IFDS is an acronym it is questionable whether the rename is worth the disruption.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "in... | null |
wandb__wandb__10996 | wandb/wandb | 10,996 | defect | 585fa6a2d296b98542bc1bbe2a9bdf2de2d7fec0 | 523df5df9729206be9d96c574dfc1c83ddca1d58 | feat: add purge-cache cli command | Description
-----------
<!--
Include reference to internal ticket "Fixes WB-NNNNN" and/or GitHub issue "Fixes #NNNN" (if applicable)
-->
What does the PR do? Include a concise description of the PR contents.
Adds a new CLI command to purge W&B cached files. Includes logs, runhistory, and artifacts. | diff --git a/CHANGELOG.unreleased.md b/CHANGELOG.unreleased.md
index 825a3aa7d48..be44d233b91 100644
--- a/CHANGELOG.unreleased.md
+++ b/CHANGELOG.unreleased.md
@@ -21,6 +21,7 @@ Section headings should be at level 3 (e.g. `### Added`).
- The automations API now support basic zscore automation events (@matthoare117-wa... | 4 | 3 | 0 | [{"id": "G0", "claim": "Use pathlib instead of glob/os.path for file traversal in purge_cache (and prefer pathlib throughout the new code).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Use click.confirm for the deletion confirmation prompt ins... | null |
wandb__wandb__11223 | wandb/wandb | 11,223 | defect | 3f64fb1415ab21d5b549beae17e7848c8ab33e17 | 5894e7631a9c03468dde4889e5e6ed6c8c37ddb4 | feat(sdk): add `update_state()` method to Run class | Description
-----------
<!--
Include reference to internal ticket "Fixes WB-NNNNN" and/or GitHub issue "Fixes #NNNN" (if applicable)
-->
- Fixes https://wandb.atlassian.net/browse/WB-28071
Add `update_state()` method to the `Run` class in the Public API, enabling users to transition runs from terminal states (`... | diff --git a/tests/system_tests/test_core/test_public_api.py b/tests/system_tests/test_core/test_public_api.py
index dabee4f35cf..4508c6de1d3 100644
--- a/tests/system_tests/test_core/test_public_api.py
+++ b/tests/system_tests/test_core/test_public_api.py
@@ -334,6 +334,54 @@ def test_run_delete(wandb_backend_spy):
... | 8 | 6 | 2 | [{"id": "G0", "claim": "The Args docstring line for `state` should be reworded to \"The target run state. Only `\"pending\"` is supported.\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The update_state docstring summary line should be reworded... | null |
wandb__wandb__11242 | wandb/wandb | 11,242 | defect | f8a477323ec0a1666f2c8eeb619cd54714faab11 | b87ef9ea6cd3484101dbc12fd6b63ddda3e3c7cb | fix(artifacts): fetch new presigned download url when expires | The new version of https://github.com/wandb/wandb/pull/11215
Description
-----------
- Fixes WB-30412
When server side sign a download url with a short expiration time and the file is large, the presigned url can expire. Existing multipart download would fail directly because it does not fetch a new presigned... | diff --git a/tests/system_tests/test_artifacts/test_wandb_artifacts_full.py b/tests/system_tests/test_artifacts/test_wandb_artifacts_full.py
index 935b11efce6b..dde6ec351141 100644
--- a/tests/system_tests/test_artifacts/test_wandb_artifacts_full.py
+++ b/tests/system_tests/test_artifacts/test_wandb_artifacts_full.py
@... | 8 | 7 | 0 | [{"id": "G0", "claim": "The unit tests should use established mocking tools (pytest-mock's mocker.spy/mock_open and the responses library) instead of the hand-crafted MockFile/ThrowingMockFile/MockHttpSession classes, and simulate the closed-file error with an OSError rather than ValueError.", "category": "testing", "v... | null |
wandb__wandb__11243 | wandb/wandb | 11,243 | defect | 22c40f369e7cda04bb7438a38777bb0c2070ccc7 | 4aa81fd38e89dd04909d4fc381e53aea06df3f62 | feat(sdk): support auth for federated identity in public api | Description
-----------
<!--
Include reference to internal ticket "Fixes WB-NNNNN" and/or GitHub issue "Fixes #NNNN" (if applicable)
-->
Adds support for bearer auth. Notably `generate_api_key` and `delete_api_key` won't work with JWT-based auth still but that's a sort of understandable edge case. Could add more l... | diff --git a/wandb/apis/public/api.py b/wandb/apis/public/api.py
index a3964e1dc33..53b6e021bbf 100644
--- a/wandb/apis/public/api.py
+++ b/wandb/apis/public/api.py
@@ -18,6 +18,7 @@
import os
import urllib
from http import HTTPStatus
+from pathlib import Path
from typing import TYPE_CHECKING, Any, Callable, Iterat... | 7 | 6 | 1 | [{"id": "G0", "claim": "The \"Origin\" header added for local prod testing is probably removable and the author wants to double-check that removing it is safe.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The access_token property should use t... | null |
wandb__wandb__11315 | wandb/wandb | 11,315 | defect | 269d49b2d84683c062ba58a6a90966565d11069b | 3df8c63c6f3b9eda46924f9a1465914c273a3616 | fix(launch): fallback to sh when bash is unavailable in local container runner | Description
-----------
- Fixes https://wandb.atlassian.net/browse/WB-31183
This PR fixes a launch-agent regression where sweep launch jobs fail to start in environments that do not have `bash` installed (e.g. Chainguard-based images).
`LocalContainerRunner` no longer hardcodes `bash -c`; it now resolves a comp... | diff --git a/tests/unit_tests/test_launch/test_runner/test_local_container.py b/tests/unit_tests/test_launch/test_runner/test_local_container.py
index 4c4641b20d4..0344a037517 100644
--- a/tests/unit_tests/test_launch/test_runner/test_local_container.py
+++ b/tests/unit_tests/test_launch/test_runner/test_local_containe... | 2 | 2 | 0 | [{"id": "G0", "claim": "The sh-fallback test should also assert that the command list has length 3 and that the command configured on mock_launch_project ('echo hello world') is actually carried through to the shell invocation.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {... | null |
wandb__wandb__11340 | wandb/wandb | 11,340 | defect | 9bdb12ba6f61d57f9ceb834a0e85e13848d5f487 | 4d67eafbb02a8052cfb047d61ee4a522fccabfcb | chore(artifacts): add warning message when logging duplicated artifact does not create new version | Description
-----------
- Fixes WB-31322
When user do `run.log_artifact` but the content of artifact is same with (one of) existing artifact version, no new version is created. This can cause confusion if user was expecting the run creates a new latest version.
- [x] I updated CHANGELOG.unreleased.md, or it's... | diff --git a/CHANGELOG.unreleased.md b/CHANGELOG.unreleased.md
index dd3f7ff15cf..082dd1d92c2 100644
--- a/CHANGELOG.unreleased.md
+++ b/CHANGELOG.unreleased.md
@@ -23,6 +23,7 @@ This version drops support for Python 3.8.
- Multi-run workspace experience in W&B LEET TUI (`wandb beta leet` command). (@dmitryduev in htt... | 2 | 1 | 0 | [{"id": "G0", "claim": "The new test generates the artifact name with time.time(), which is vulnerable to collisions between parallel processes and could lead to flaky test failures; it should use a more unique name (e.g. worker_id plus secrets.choice, or a uuid4-salted name).", "category": "testing", "verdict": "suppo... | null |
wandb__wandb__11403 | wandb/wandb | 11,403 | defect | fc22e5bf03d67807974f7d8d3bb08edc5187ac6f | dffcc1f627e6e144fba8c3477b43b310f1675500 | chore: support W&B JWT token format | 1. The W&B application uses JWTs for short-lived scoped credentials - it is passed in using the same auth header as API key.
2. Currently the auth check denies these because they don't look like API keys.
3. This prevents using JWTs with the client (very useful for automated, lower-trust system).
This PR adds a br... | diff --git a/tests/unit_tests/test_lib/test_auth.py b/tests/unit_tests/test_lib/test_auth.py
index 8b0934e08f0..b24b9edec93 100644
--- a/tests/unit_tests/test_lib/test_auth.py
+++ b/tests/unit_tests/test_lib/test_auth.py
@@ -176,3 +176,30 @@ def test_identity_token_as_requests_auth(tmp_path: pathlib.Path, monkeypatch):... | 2 | 2 | 0 | [{"id": "G0", "claim": "The JWT regex should use `[\\w-]` instead of `[A-Za-z0-9_-]`, be written in re.VERBOSE format with per-segment comments, and use fullmatch instead of `^`/`$` anchors for readability.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.