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
skypilot-org__skypilot__5835
skypilot-org/skypilot
5,835
defect
ea42bfb3faa7de797ceda91476de1b3a8a6f2329
8599d6b0bb358ca0a023409e3c21c178ca1e60c8
[ManagedJobs] Support failure recovery for HA controller
<!-- Describe the changes in this PR --> Support recovery logic for managed jobs. Fixes #3970 <!-- Describe the tests ran --> <!-- Unit tests (tests/test_*.py) are part of GitHub CI; below are tests that launch on the cloud. --> Tested (run the relevant ones): - [ ] Code formatting: install pre-commit ...
diff --git a/charts/skypilot/values.yaml b/charts/skypilot/values.yaml index 21c7438d801..b2c50b02ad5 100644 --- a/charts/skypilot/values.yaml +++ b/charts/skypilot/values.yaml @@ -196,6 +196,13 @@ rbac: - apiGroups: [ "" ] resources: [ "configmaps" ] verbs: [ "get", "patch" ] + # Required for hig...
8
7
2
[{"id": "G0", "claim": "The variable `is_recovery` is misleading because the task may still be running and not necessarily recovering from spot preemption; rename it, e.g. to `is_resume` or `is_restore`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cla...
null
skypilot-org__skypilot__5926
skypilot-org/skypilot
5,926
defect
c0494f5f0d6e41f225bf39434e163810be000fe3
372ba7c5c5a943fb184807b71e7e073d97b856b3
[k8s] Better GPU Label Formatter Support for CoreWeave
<!-- Describe the changes in this PR --> Fixes #5628 so if I add the invalid node labels to a GKE cluster, then I can properly see that the coreweave gpu label formatter is being picked up. For obvious reasons, `show-gpus` fail (as the cluster doesn't actually have H100 gpus with that label). <!-- Describe the...
diff --git a/sky/provision/kubernetes/utils.py b/sky/provision/kubernetes/utils.py index 0b792bfaad..3dbfd18f6a 100644 --- a/sky/provision/kubernetes/utils.py +++ b/sky/provision/kubernetes/utils.py @@ -460,6 +460,14 @@ def get_accelerator_from_label_value(cls, value: str) -> str: raise ValueError( ...
3
2
1
[{"id": "G0", "claim": "The new validate_label_value method should have a docstring added.", "category": "documentation", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The warning in detect_gpu_label_formatter misspells 'GPU' as 'Gpu'; apply the suggested typo fix.", "category":...
null
skypilot-org__skypilot__6252
skypilot-org/skypilot
6,252
defect
a56765adf27092cae0af658790e2d76fd4472256
b84667f8c55c6272f3a9fff599bd8d9334a7e87d
[Nebius] Standardize Configs
<!-- Describe the changes in this PR --> Fixes #6128 <!-- Describe the tests ran --> <!-- Unit tests (tests/test_*.py) are part of GitHub CI; below are tests that launch on the cloud. --> Tested (run the relevant ones): - [X] Code formatting: install pre-commit (auto-check on commit) or `bash format.sh` -...
diff --git a/docs/source/reference/config.rst b/docs/source/reference/config.rst index a2eac6e9d2..4761124aed 100644 --- a/docs/source/reference/config.rst +++ b/docs/source/reference/config.rst @@ -1274,7 +1274,7 @@ Advanced Nebius configuration (optional). Defaults to ``/mnt/filesystem-skypilot-<index>``. ...
1
1
1
[{"id": "G0", "claim": "The PR should maintain backwards compatibility for users still on the old Nebius config schema — ideally by having get_cloud_config_value_from_dict check both nebius.<region>.<config> and nebius.region_configs.<region>.<config> for nebius configs, or at least give old-schema users an informative...
null
skypilot-org__skypilot__6255
skypilot-org/skypilot
6,255
defect
80235386457c47b3c178c1e1842e9b07ed75dc06
eb6df24c5aa820cebab439e7ebc0fc9f2325ae73
S3 Arm64 mount fix
<!-- Describe the changes in this PR --> Fix ARM64 mounting issues and improve storage system compatibility This addresses mounting problems specific to ARM64 architecture and includes updates to storage documentation for better cross-platform support. For AWS or S3 compatible platform, use `rclone` if ar...
diff --git a/docs/source/reference/storage.rst b/docs/source/reference/storage.rst index 50a8ad5ed7..2c9c1f5e7c 100644 --- a/docs/source/reference/storage.rst +++ b/docs/source/reference/storage.rst @@ -161,6 +161,12 @@ its performance requirements and size of the data. the symbolic links are directly copied, not ...
2
1
1
[{"id": "G0", "claim": "The new ARM64 branch in get_s3_mount_install_cmd duplicates the rclone installation logic; the reviewer asks whether the existing get_rclone_install_cmd helper (written get_reclone_install_cmd in the comment) could be reused here instead.", "category": "maintainability", "verdict": "opposed", "p...
null
skypilot-org__skypilot__6489
skypilot-org/skypilot
6,489
defect
6ddfb3cd7d476b51f9309c547338407d6eca092c
0ab6880579323da5848b2e4d4ba255087fbbd625
display GPU counts without .0 if the count is a whole number
<!-- Describe the changes in this PR --> Fixes #6484. <!-- Describe the tests ran --> <!-- Unit tests (tests/test_*.py) are part of GitHub CI; below are tests that launch on the cloud. --> Tested (run the relevant ones): - [ ] Code formatting: install pre-commit (auto-check on commit) or `bash format.sh` ...
diff --git a/sky/client/cli/command.py b/sky/client/cli/command.py index 4d149d7ec7..cec15c5014 100644 --- a/sky/client/cli/command.py +++ b/sky/client/cli/command.py @@ -3502,7 +3502,14 @@ def show_gpus( (cloud_name is None or cloud_is_ssh)) def _list_to_str(lst): - return ...
2
1
0
[{"id": "G0", "claim": "The loop variable `e` in the new `format_number` helper should be renamed to `n`, since `e` is usually used for exceptions.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "This pull request's change is breaking test kubern...
null
skypilot-org__skypilot__6796
skypilot-org/skypilot
6,796
defect
542daf9cecf107dc9696dbd735e57d1435552a4b
d337843b27754be189f1fc2db89dabec04a4278c
[Core] Suppress SAWarning for CasbinRule
<!-- Describe the changes in this PR --> Suppress SAWarning for CasbinRule. Fix #6772 <!-- Describe the tests ran --> <!-- Unit tests (tests/test_*.py) are part of GitHub CI; below are tests that launch on the cloud. --> Tested (run the relevant ones): - [x] Code formatting: install pre-commit (auto-check ...
diff --git a/sky/users/permission.py b/sky/users/permission.py index 476d703112..c140d0fe47 100644 --- a/sky/users/permission.py +++ b/sky/users/permission.py @@ -4,6 +4,7 @@ import logging import os from typing import Generator, List +import warnings import casbin import filelock @@ -21,6 +22,17 @@ logging.get...
1
1
1
[{"id": "G0", "claim": "The reviewer asks why SQLAlchemy raises the duplicate CasbinRule class warning in the first place, implying the PR should address that root cause instead of blanket-suppressing the warning.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
skypilot-org__skypilot__6893
skypilot-org/skypilot
6,893
defect
03f455bbecad48465a5718ff963e9072377d3345
12fadf6bac267330e5497378254499efe175df54
fix: catch FileNotFoundError when pip3 is missing in UV-only environments
Fixes #5046 ## Summary This PR fixes an uncaught `FileNotFoundError` that occurs when pip3 is not available in UV-only environments. ## Root Cause When SkyPilot tries to build a wheel using `pip3 wheel`, it only caught `CalledProcessError` but not `FileNotFoundError`. In environments where pip3 doesn't exist (like pu...
diff --git a/sky/backends/wheel_utils.py b/sky/backends/wheel_utils.py index 6ccc9ccd6e..0b648a928d 100644 --- a/sky/backends/wheel_utils.py +++ b/sky/backends/wheel_utils.py @@ -143,9 +143,13 @@ def _build_sky_wheel() -> pathlib.Path: stdout=subprocess.DEVNULL, s...
4
4
2
[{"id": "G0", "claim": "Catching FileNotFoundError and reporting 'pip3 not found' may not actually identify a pip issue; the code should identify the underlying issue in a better way.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The error message ...
null
skypilot-org__skypilot__6940
skypilot-org/skypilot
6,940
defect
060d6e9da9e6dce4a9426f017d7497554cfb7679
fd205a216bf947b81b57d64635044f86fcdb6aeb
[Core] Status Optimization: SSH Credential Fetching
<!-- Describe the changes in this PR --> Fixes #6891 <!-- Describe the tests ran --> <!-- Unit tests (tests/test_*.py) are part of GitHub CI; below are tests that launch on the cloud. --> Tested (run the relevant ones): - [X] Code formatting: install pre-commit (auto-check on commit) or `bash format.sh`...
diff --git a/sky/backends/backend_utils.py b/sky/backends/backend_utils.py index b84eec4b69e..63f1ca3712a 100644 --- a/sky/backends/backend_utils.py +++ b/sky/backends/backend_utils.py @@ -2929,6 +2929,7 @@ def get_clusters( refresh: common.StatusRefreshMode, cluster_names: Optional[Union[str, List[str]]] = N...
3
3
2
[{"id": "G0", "claim": "The get_clusters calls in backend_utils.get_endpoints and JobsController._run_one_task should not fetch cluster credentials (don't fetch creds in those get_clusters calls).", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The n...
null
skypilot-org__skypilot__7384
skypilot-org/skypilot
7,384
defect
e1631a7995c7a53a51ba406806bb1749d6838bad
1d402bb45ec2f36a8fac4107759dd6263bac1cc8
[Volume] Infer cloud from volume type on the client side if infra is unset
Fixes #7380. PR #7370 moved the volume validation to server side, but we missed keeping the logic to fallback to inferring `self.cloud` from `self.type` if `self.infra` is unset on the client side. So what happens is, if infra is unset, cloud will also be unset, and this gives a validation error during apply because...
diff --git a/sky/volumes/volume.py b/sky/volumes/volume.py index 5982b9a4fb..ab1b398dd2 100644 --- a/sky/volumes/volume.py +++ b/sky/volumes/volume.py @@ -100,7 +100,7 @@ def to_yaml_config(self) -> Dict[str, Any]: } def _normalize_config(self) -> None: - """Adjust and validate the config.""" + ...
1
1
0
[{"id": "G0", "claim": "The region/zone validation-and-reset in validate_cloud_compatibility should be moved to core.volume_apply, since this validation now happens on the server side.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}]
null
skypilot-org__skypilot__7415
skypilot-org/skypilot
7,415
defect
26d4661606e2a1b03da4ad37a26bebfc4cd6632f
edf682854b31c985733d7e7e8e629a15f602972c
[core] support docker ssh proxy via jump host
Fixes #7054 This PR lets the docker SSH tunnel honor users' jump-host proxy command so docker workloads can run on private IPs. ## Problem - docker nodes run sshd on localhost:10022 inside the container. SkyPilot used to clear `ssh_proxy_command` whenever `docker_user` was set, because the outer hop incorrectly attem...
diff --git a/sky/utils/cluster_utils.py b/sky/utils/cluster_utils.py index 7bfec329d7..6327264537 100644 --- a/sky/utils/cluster_utils.py +++ b/sky/utils/cluster_utils.py @@ -193,11 +193,26 @@ def add_cluster( proxy_command = auth_config.get('ssh_proxy_command', None) docker_proxy_command_generator ...
3
1
0
[{"id": "G0", "claim": "Add a comment in sky/utils/cluster_utils.py explaining why disable_control_master=True is set for the Docker ProxyCommand hop.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The command_runner.pyi stub update seems unnecess...
null
skypilot-org__skypilot__7913
skypilot-org/skypilot
7,913
defect
44bb11e9e8d2b00eafa040f0bd1ca6e146d55cdb
b491f9c3a25640eab20ac355f0c984c674e13b43
[SSH Node Pools] Support custom metadata
<!-- Describe the changes in this PR --> Closes #7905 <!-- Describe the tests ran --> <!-- Unit tests (tests/test_*.py) are part of GitHub CI; below are tests that launch on the cloud. --> Tested (run the relevant ones): - [X] Code formatting: install pre-commit (auto-check on commit) or `bash format.sh` ...
diff --git a/sky/provision/kubernetes/network_utils.py b/sky/provision/kubernetes/network_utils.py index 3057bc8ba5..accbef2b89 100644 --- a/sky/provision/kubernetes/network_utils.py +++ b/sky/provision/kubernetes/network_utils.py @@ -66,13 +66,17 @@ def fill_loadbalancer_template(namespace: str, context: Optional[str]...
1
1
0
[{"id": "G0", "claim": "The ssh-prefix/cloud_str handling logic duplicated across combine_metadata_fields, merge_custom_metadata, fill_loadbalancer_template and fill_ingress_template should be extracted out as a function.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
skypilot-org__skypilot__7959
skypilot-org/skypilot
7,959
defect
f70b62b2af0557da99cd677d07415d3ae421a12e
1e421002e59231f48868286719b7048ef0a53e4f
[k8s] Display reason for pending pods in provision logs and launch spinner
Closes #7925. This PR improves the UX when waiting for pending k8s pods. Previously the provision logs and launch spinner message was not showing anything helpful, but now we try to surface exactly why the pod is in a pending state, by querying the pod events from k8s. For example, using the same scenario as the ori...
diff --git a/sky/provision/kubernetes/instance.py b/sky/provision/kubernetes/instance.py index f73bd3d8d1e..d2c3d23e7a1 100644 --- a/sky/provision/kubernetes/instance.py +++ b/sky/provision/kubernetes/instance.py @@ -593,7 +593,17 @@ def _check_init_containers(pod): continue all_pods_run...
2
2
1
[{"id": "G0", "claim": "The spinner message should be reset to the generic 'Launching' message when the loop terminates (or just after `_wait_for_pods_to_run`), including an else branch so that when there are no pending reasons users are not left blocked on a stale previous pending reason.", "category": "design", "verd...
null
skypilot-org__skypilot__8233
skypilot-org/skypilot
8,233
defect
31955a4da7c61a16845c01990a0951bacb2ec20e
650e51649d6935914b786226ce6c68e763328d4c
[core] restore cluster_name_on_cloud from cluster yaml
Fixes #8232. <!-- Describe the changes in this PR --> <!-- Describe the tests ran --> <!-- Unit tests (tests/test_*.py) are part of GitHub CI; below are tests that launch on the cloud. --> Tested (run the relevant ones): - [x] Code formatting: install pre-commit (auto-check on commit) or `bash format.s...
diff --git a/sky/backends/backend_utils.py b/sky/backends/backend_utils.py index 7c322d42386..39efacf924c 100644 --- a/sky/backends/backend_utils.py +++ b/sky/backends/backend_utils.py @@ -1086,7 +1086,11 @@ def write_cluster_config( with open(tmp_yaml_path, 'w', encoding='utf-8') as f: f.write(re...
2
1
1
[{"id": "G0", "claim": "Re-reading and re-parsing tmp_yaml_path from disk is slightly inefficient; parse the in-memory restored_yaml_content string instead.", "category": "performance", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a follow-up PR to make the smoke test abl...
null
skypilot-org__skypilot__8589
skypilot-org/skypilot
8,589
defect
27f24afe1d4a250da8e3d876cc9a0a36241969ce
609243565b78a22e9fc23a48baa36d952c9b9b8c
[Volumes] Surface PVC errors during `sky launch`
Closes #8586. Surfaces PVC binding failures in sky launch error messages on Kubernetes. Previously, users would see a generic timeout error when a PVC failed to bind (e.g., due to access mode mismatch). Now the error includes the actual PVC failure reason from Kubernetes events. Before: ``` Timed out while wai...
diff --git a/sky/provision/kubernetes/instance.py b/sky/provision/kubernetes/instance.py index fe4a971179..5592cebc04 100644 --- a/sky/provision/kubernetes/instance.py +++ b/sky/provision/kubernetes/instance.py @@ -162,6 +162,86 @@ def _lack_resource_msg(resource: str, return msg +def _format_pvc_binding_error...
4
2
1
[{"id": "G0", "claim": "The PVC events list is not sorted, so event_messages[-1] may not be the most recent event message; events should be sorted by creation_timestamp before processing.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The type hint ...
null
skypilot-org__skypilot__8629
skypilot-org/skypilot
8,629
defect
4206ef8ef7c1cb76b30a2237ecf8ed3c36e73372
228f81c3a843685eefc9fc28546d619efc48a74e
[CLI] Add hint for k8s nodes with GPU labels but zero GPU resources
When `sky show-gpus` is run, it now checks if any kubernetes nodes have GPU labels but zero GPU resources. This likely indicates a misconfiguration, we surface this to the user via a hint in the CLI output. Also fixes #7100 since it affected scenarios with nodes that had no GPU resources. I'm not super happy with th...
diff --git a/sky/client/cli/command.py b/sky/client/cli/command.py index 2abf91e994c..52cf8434be1 100644 --- a/sky/client/cli/command.py +++ b/sky/client/cli/command.py @@ -4060,6 +4060,29 @@ def _format_slurm_node_info(slurm_cluster_names: List[str]) -> str: f'{colorama.Style.RESET_ALL}\n' ...
1
1
0
[{"id": "G0", "claim": "The block that checks for and appends the labeled-zero-GPU hint is duplicated between the two call sites, so a helper function should encapsulate the logic and be called from both places.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
skypilot-org__skypilot__8632
skypilot-org/skypilot
8,632
defect
4206ef8ef7c1cb76b30a2237ecf8ed3c36e73372
dff1f48d73af3b210b20eedf581dee0bbb35dd4c
[Docker] Better Handling for Docker Username
<!-- Describe the changes in this PR --> Closes #8305 Similar to #7174, we use magic delimiter to get the docker username. <!-- Describe the tests ran --> <!-- Unit tests (tests/test_*.py) are part of GitHub CI; below are tests that launch on the cloud. --> Tested (run the relevant ones): - [X] Code forma...
diff --git a/sky/provision/docker_utils.py b/sky/provision/docker_utils.py index 135e4ed7799..d3be90ad56f 100644 --- a/sky/provision/docker_utils.py +++ b/sky/provision/docker_utils.py @@ -1,6 +1,7 @@ """Initialize docker containers on a remote node.""" import dataclasses +import re import shlex import time from...
2
2
0
[{"id": "G0", "claim": "The test should drop the `us-east-2` region pin from `--infra aws/us-east-2`, since region pinning was only needed for AWS AMIs, not for docker images.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The `docker:nvcr.io/nv...
null
skypilot-org__skypilot__8772
skypilot-org/skypilot
8,772
defect
032d1a81414f6138a73aa9905b7906df839f4c93
46e9c6d44476044f1d704fb2163df72bafd9f4ca
[Jobs] Implement graceful cancel for managed jobs
<!-- Describe the changes in this PR --> Resolves #8519 `--graceful` flag for managed jobs. The flag for `down` and `stop` is already implemented. We reuse a lot of the actual "graceful" handling mechanism from that pr. Tested: - regular cancel - graceful cancel - graceful cancel w timeout (timeout=1 helps to...
diff --git a/sky/client/cli/command.py b/sky/client/cli/command.py index 312238f9b39..a855b4fc175 100644 --- a/sky/client/cli/command.py +++ b/sky/client/cli/command.py @@ -5437,6 +5437,7 @@ def get_pool_status(): type=str, help='Pool name to cancel.') @click.argument('job_ids', default=N...
4
3
1
[{"id": "G0", "claim": "The core logic for graceful cancellation is missing: the graceful and graceful_timeout parameters are passed down to cancel_jobs_by_id but immediately deleted with a TODO, so the main part of the feature still needs to be implemented.", "category": "correctness", "verdict": "supported", "priorit...
null
skypilot-org__skypilot__8786
skypilot-org/skypilot
8,786
defect
445d9781f1fee38e3aa409a9f7a75a6c55b8c81b
6c769c88a0b695b556a604d85cc55fbd6aeacddf
[API Server] Add a way to search for requests for a specific cluster
<!-- Describe the changes in this PR --> Closes #8204 Add cluster-based filtering to `sky api status` command to allow users to filter API requests by cluster name. ### Changes: - **CLI** (`sky/client/cli/command.py`): Added `--cluster/-c` option to `api status` command - **SDK** (`sky/client/sdk.py`): Added ...
diff --git a/sky/client/cli/command.py b/sky/client/cli/command.py index 312238f9b39..285840f4eea 100644 --- a/sky/client/cli/command.py +++ b/sky/client/cli/command.py @@ -1043,6 +1043,7 @@ def _handle_infra_cloud_region_zone_options(infra: Optional[str], **_get_shell_complete_args(_complete_file_name...
4
4
4
[{"id": "G0", "claim": "The new --cluster option on the api_status command passes its value as an argument named `cluster` while the function signature expects `cluster_name`, which will cause a TypeError; the option should explicitly be mapped to the `cluster_name` argument.", "category": "correctness", "verdict": "su...
null
skypilot-org__skypilot__8886
skypilot-org/skypilot
8,886
defect
dccf0ee2265d4e4a4d68dab258483b2594537ba7
56776670088cebe843a66e8f84e9851373ad16c6
[Api Server] Fix remote version not being set due to cache hits
<!-- Describe the changes in this PR --> Close #8879 Ran the minimal repro script in issue above, works as expected <!-- Describe the tests ran --> <!-- Unit tests (tests/test_*.py) are part of GitHub CI; below are tests that launch on the cloud. --> Tested (run the relevant ones): - [ ] Code formatting...
diff --git a/sky/client/sdk.py b/sky/client/sdk.py index e12ee276a9..528ba2a3f6 100644 --- a/sky/client/sdk.py +++ b/sky/client/sdk.py @@ -2954,7 +2954,7 @@ def _set_user_hash(user_hash: Optional[str]) -> None: # see https://github.com/python/mypy/issues/5107 on why # typing is disabled on this line - se...
3
2
1
[{"id": "G0", "claim": "Now that get_api_server_status sets the remote api version and remote version explicitly, the implicit version-setting in sky/server/rest.py's request_without_retry should be removed.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", ...
null
skypilot-org__skypilot__8930
skypilot-org/skypilot
8,930
defect
aa897a541ca594e18f78e81c3aba0e0f5530ea00
a24b62349865a6b44ed2fa4d993df7b1de04ea7e
[Core] Fix failed jobs reported as SUCCEEDED due to `rclone` flush script
<!-- Describe the changes in this PR --> The `rclone` flush script is appended after the user command in the generated bash script. The rclone `if` block's `fi` always exits 0, which overwrites `$?` from the user command. This causes every failed job to be reported as `SUCCEEDED`. This PR captures the user comman...
diff --git a/sky/backends/task_codegen.py b/sky/backends/task_codegen.py index 4992c993ba..c26dcf4e4e 100644 --- a/sky/backends/task_codegen.py +++ b/sky/backends/task_codegen.py @@ -143,6 +143,7 @@ def get_rclone_flush_script() -> str: """ return textwrap.dedent(f"""\ + __skypilot_user_exit_...
1
1
1
[{"id": "G0", "claim": "The PR's refactor stops appending the rclone flush script for setup-only Slurm tasks (tasks with `setup:` but no `run:`), which the old code did; the reviewer asks whether this behaviour should be kept and suggests calling `build_task_bash_script(bash_script or '')` when either `bash_script` or ...
null
skypilot-org__skypilot__8932
skypilot-org/skypilot
8,932
defect
aa897a541ca594e18f78e81c3aba0e0f5530ea00
c19fc599367b409c45578ab54ba52818178f9591
[Core] Fix autostop not triggering on Docker-based clusters
<!-- Describe the changes in this PR --> On clusters using a Docker image, the container entrypoint holds `/dev/pts/0`. `has_active_ssh_sessions()` counted PTY devices in `/dev/pts`, so it always returned `True`, preventing the autostop idle timer from ever counting down. This PR replaces the PTY counting (`ls /d...
diff --git a/sky/skylet/autostop_lib.py b/sky/skylet/autostop_lib.py index 841f20267c3..42a2a8c27b4 100644 --- a/sky/skylet/autostop_lib.py +++ b/sky/skylet/autostop_lib.py @@ -234,22 +234,23 @@ def set_last_active_time_to_now() -> None: def has_active_ssh_sessions() -> bool: - """Returns True if there are any ...
4
3
2
[{"id": "G0", "claim": "The SSH session check should be implemented with the psutil library instead of a shell ps/grep pipeline, for maintainability and portability.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Several autostop-related smoke t...
null
skypilot-org__skypilot__8981
skypilot-org/skypilot
8,981
defect
691048020a06e5aa984353ef2dcf01d4ac8409cb
0e0d7435011b052401722ba72d914f124b48d925
[AWS] Add tags to security groups for scoped IAM policies
Fixes #8924 ## Summary Add TagSpecifications with \skypilot: true\ to AWS security groups created by SkyPilot. This enables users to scope their IAM DeleteSecurityGroup permission to only SkyPilot-created resources. ## Changes - \sky/provision/aws/config.py\: Added TagSpecifications to create_security_group API call ...
diff --git a/sky/provision/aws/config.py b/sky/provision/aws/config.py index 2cec5d0ca0..ded2f6b861 100644 --- a/sky/provision/aws/config.py +++ b/sky/provision/aws/config.py @@ -718,11 +718,18 @@ def _get_or_create_vpc_security_group(ec2: 'mypy_boto3_ec2.ServiceResource', return security_group try: - ...
3
1
1
[{"id": "G0", "claim": "Define 'true' as a module-level constant instead of using a magic string in the TagSpecifications value.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "TagSpecifications only tags newly created security groups, so when an S...
null
skypilot-org__skypilot__9118
skypilot-org/skypilot
9,118
defect
a2489a3ced8144407f7bad2cc8c4872d5b3ed9ff
ee076358343ef17b90a7dc29fbb274f5ee55828f
Start `queue` Deprecation
<!-- Describe the changes in this PR --> <!-- Describe the tests ran --> <!-- Unit tests (tests/test_*.py) are part of GitHub CI; below are tests that launch on the cloud. --> Tested (run the relevant ones): - [ ] Code formatting: install pre-commit (auto-check on commit) or `bash format.sh` - [ ] Any ma...
diff --git a/sky/jobs/client/sdk.py b/sky/jobs/client/sdk.py index db2047a61f..c3f72d9aa1 100644 --- a/sky/jobs/client/sdk.py +++ b/sky/jobs/client/sdk.py @@ -263,14 +263,17 @@ def queue_v2( # server supports it, which breaks the backward compatibility. # In https://github.com/skypilot-org/skypilot/pull/8015, we reve...
3
3
2
[{"id": "G0", "claim": "The version=1 deprecation warning saying 'sky.jobs.queue(version=1) will be deprecated in v0.13' is misleading and should be made more explicit that version=1 is already deprecated/no longer supported on updated servers (suggested: 'is deprecated and will be removed in v0.13').", "category": "do...
null
skypilot-org__skypilot__9124
skypilot-org/skypilot
9,124
defect
99732ef93a3393b7d8b7698e105d373da422f5f8
c413a5ff8e0776573285105d70d76f0f5dcaeebc
Support named priority class in resource field
<!-- Describe the changes in this PR --> Add `priority_class` field to Resource object. Store the priority class of a cluster or a managed job in their respective DB. In kubernetes, store the skypilot priority class information of each pod using pod annotation. <!-- Describe the tests ran --> <!-- Unit tests (te...
diff --git a/sky/client/sdk.py b/sky/client/sdk.py index 61924056ee..0898c8606a 100644 --- a/sky/client/sdk.py +++ b/sky/client/sdk.py @@ -413,6 +413,7 @@ def optimize( for a task. exceptions.NoCloudAccessError: if no public clouds are enabled. """ + dag_utils.strip_priority_class_if_unsup...
2
1
0
[{"id": "G0", "claim": "The logic in _set_priority_class can be simplified for readability, stripping the input first and then checking if it is empty, to avoid redundant str() and .strip() calls.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "A...
null
skypilot-org__skypilot__9133
skypilot-org/skypilot
9,133
defect
110ed183400fadb578995eb62c9ff4467b67d6ce
7fed25a5acf2bb2cc486402daa8147c00951f182
[Nebius] Support custom image_id
The `image_id` parameter is currently unsupported by the Nebius cloud. This PR adds support both for defining an image by image family, and setting it explicitly using an image ID. Tested (run the relevant ones): - [x] Code formatting: install pre-commit (auto-check on commit) or `bash format.sh` - [x] Any manua...
diff --git a/agent/skills/skypilot/references/yaml-spec.md b/agent/skills/skypilot/references/yaml-spec.md index 1eaaac40a7..7e59c8ef6d 100644 --- a/agent/skills/skypilot/references/yaml-spec.md +++ b/agent/skills/skypilot/references/yaml-spec.md @@ -641,7 +641,7 @@ resources: ### ``resources.image_id`` Custom image ...
3
3
3
[{"id": "G0", "claim": "A smoke test for the Nebius custom image_id feature should be added to test_images.py, following what other clouds have.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The docs wrongly say Nebius only supports non-docker images, ...
null
skypilot-org__skypilot__9138
skypilot-org/skypilot
9,138
defect
e77da00e97fd869f2e08c784139bb81081efa545
505712b14de16fc09479237794010aaa8c2ebb76
[ManagedJobs] `wait` for programmatic sdk
<!-- Describe the changes in this PR --> <!-- Describe the tests ran --> <!-- Unit tests (tests/test_*.py) are part of GitHub CI; below are tests that launch on the cloud. --> Tested (run the relevant ones): - [ ] Code formatting: install pre-commit (auto-check on commit) or `bash format.sh` - [ ] Any ma...
diff --git a/sky/jobs/__init__.py b/sky/jobs/__init__.py index fa1efbedf19..f68e9c1751f 100644 --- a/sky/jobs/__init__.py +++ b/sky/jobs/__init__.py @@ -13,6 +13,7 @@ from sky.jobs.client.sdk import queue from sky.jobs.client.sdk import queue_v2 from sky.jobs.client.sdk import tail_logs +from sky.jobs.client.sdk imp...
7
2
1
[{"id": "G0", "claim": "The poll_interval constraint on JobsWaitBody should be enforced with pydantic.Field (default=15, ge=5) at the model level so invalid values are caught early at the API boundary.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":...
null
skypilot-org__skypilot__9147
skypilot-org/skypilot
9,147
defect
851aab75abeee0614c014d5d8cf16c0437192c47
744f68034b05cfb6bad0ead1606d75957b662026
[Dashboard] Fix infinite spinner on detail pages after refresh
## Summary - Refreshing detail pages (cluster details, job details, infra details, etc.) caused a forever "Loading plugin resources..." spinner because the server had no generic handling for Next.js dynamic routes — paths like `/clusters/my-cluster` fell through to the `[...path].html` plugin catch-all instead of `clus...
diff --git a/sky/server/server.py b/sky/server/server.py index 20488a985f..d45f5821e4 100644 --- a/sky/server/server.py +++ b/sky/server/server.py @@ -2963,6 +2963,94 @@ async def complete_api_request(incomplete: str,) -> List[str]: return await requests_lib.get_api_request_ids_start_with(incomplete) +def _fin...
3
3
1
[{"id": "G0", "claim": "The bare `except OSError: pass` blocks in `_find_bracket_html`, `_find_bracket_dir` and `_find_catchall_html` silently suppress all OS errors, including potentially serious ones like PermissionError; the exception should be logged to improve observability and aid debugging.", "category": "mainta...
null
skypilot-org__skypilot__9154
skypilot-org/skypilot
9,154
defect
93db796537f3734f26e5f939954a4ade21a2a4cc
e9fd20f8aa908d25288e49a2cf673eed786c62c9
[Jobs] Allow custom job recovery strategy configuration
## Summary - Add `register_job_recovery_property()` in `schemas.py` so additional strategy-specific fields can be registered for the `job_recovery` schema while keeping `additionalProperties: False` - Add `set_strategy_config()` on `StrategyExecutor` — `make()` now passes remaining dict keys (after common ones like `st...
diff --git a/sky/jobs/recovery_strategy.py b/sky/jobs/recovery_strategy.py index 659e1898f6..5e66a5b79d 100644 --- a/sky/jobs/recovery_strategy.py +++ b/sky/jobs/recovery_strategy.py @@ -112,6 +112,21 @@ def __init__( self.starting_lock = starting_lock self.starting_signal = starting_signal + def...
1
1
1
[{"id": "G0", "claim": "The job_recovery schema sets additionalProperties to True unconditionally; the reviewer asks that it instead be gated on annotations.is_on_api_server as done in resources.py — lenient on the client where plugins are not loaded, strict on the server — or, if that is not possible, that the comment...
null
skypilot-org__skypilot__9165
skypilot-org/skypilot
9,165
defect
fa2fb208199465bd126e81466599fc2cfd0f4cb9
dfb03d8d0b7131333aad6211ee273bbebc1a3341
Add k8s-hostpath volume type for node-local cache
<!-- Describe the changes in this PR --> This PR introduce `k8s-hostpath` type volume, to support using local volumes on k8s cluster that does not have a proper CSI driver available. Test: ``` $ cat volume.yaml name: test-hostpath type: k8s-hostpath config: host_path: /var/skypilot-cache $ sky volu...
diff --git a/sky/backends/backend_utils.py b/sky/backends/backend_utils.py index 9a208cf87b..fe804e9b53 100644 --- a/sky/backends/backend_utils.py +++ b/sky/backends/backend_utils.py @@ -948,6 +948,8 @@ def write_cluster_config( volume_name_on_cloud=vol.volume_config.name_on_cloud, ...
2
1
1
[{"id": "G0", "claim": "Making k8s-hostpath the default volume type for Kubernetes when a user does not specify one is potentially surprising and problematic, and the default resolution should prioritize non-ephemeral volume types instead.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introd...
null
skypilot-org__skypilot__9171
skypilot-org/skypilot
9,171
defect
fa2fb208199465bd126e81466599fc2cfd0f4cb9
ce1d2bada3f7e5353249dddd09278e65bd5d31ee
[Slurm] Skip --mem when memory is not a consumable resource
## Background In Slurm, `SelectTypeParameters` controls whether memory is tracked as a consumable resource. Common values include `CR_CPU` (only CPUs are tracked), `CR_Core`, and their memory-aware counterparts like `CR_CPU_Memory` and `CR_Core_Memory`. When memory is not tracked (e.g. `CR_CPU`), Slurm does not enfo...
diff --git a/sky/adaptors/slurm.py b/sky/adaptors/slurm.py index 52471819f81..b03bd3151d7 100644 --- a/sky/adaptors/slurm.py +++ b/sky/adaptors/slurm.py @@ -644,6 +644,29 @@ def get_proctrack_type(self) -> Optional[str]: return match.group(1) return None + def get_select_type_parameters(self)...
4
3
2
[{"id": "G0", "claim": "int(resources[\"memory\"]) truncates fractional GB values for --mem, so a 0.5G request becomes --mem=0G, which Slurm reads as all-node memory; convert the request to MB and request at least 1MB for very small values.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope":...
null
skypilot-org__skypilot__9179
skypilot-org/skypilot
9,179
defect
b1e7fa8b8468e68c7a1efc8deaa0fc21d027c4bb
3da2b02b09234e1672ef594167b92d85b6db8c69
[k8s] Auto-clamp cpu and mem for capacity
<!-- Describe the changes in this PR --> <!-- Describe the tests ran --> <!-- Unit tests (tests/test_*.py) are part of GitHub CI; below are tests that launch on the cloud. --> Tested (run the relevant ones): - [ ] Code formatting: install pre-commit (auto-check on commit) or `bash format.sh` - [ ] Any ma...
diff --git a/sky/clouds/kubernetes.py b/sky/clouds/kubernetes.py index 8a4b639e84..cbb4950043 100644 --- a/sky/clouds/kubernetes.py +++ b/sky/clouds/kubernetes.py @@ -537,6 +537,12 @@ def make_deploy_resources_variables( resources.instance_type) cpus = k.cpus mem = k.memory + # If ...
2
2
2
[{"id": "G0", "claim": "The overhead calculation subtracts the 0.05 safety margin from the overhead instead of adding it, so the adjusted resource request slightly exceeds allocatable and pods fail to schedule; the margin should create headroom and the magic numbers should be named constants.", "category": "correctness...
null
skypilot-org__skypilot__9184
skypilot-org/skypilot
9,184
defect
0e634414ad72e1c2a234554e39f59605ed4ac0b1
f14b1cb112a2afc663122a80dfd10a6ddb671468
[Jobs] Fix git commit metadata not captured in managed jobs
## Summary Currently, git commit info for a managed job is only captured when a workdir is specified. This PR also adds it if the YAML is from a git repo. Workdir commit takes priority over YAML file commit when both are available. Also fixes server-side `expand_and_validate_workdir()` overwriting the client-capt...
diff --git a/sky/task.py b/sky/task.py index ca7e5bfc22..84bfa71363 100644 --- a/sky/task.py +++ b/sky/task.py @@ -544,7 +544,13 @@ def expand_and_validate_workdir(self): 'Workdir must be a valid directory (or ' f'a symlink to a directory). {user_workdir} not found.') - ...
3
2
2
[{"id": "G0", "claim": "Capture git commit from the YAML file's directory using os.path.realpath instead of os.path.abspath so that a symlinked YAML path resolves to the repository directory and get_git_commit finds the commit.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"...
null
skypilot-org__skypilot__9205
skypilot-org/skypilot
9,205
defect
d6744ff6972324f7ffe04b4935e68c09293207a9
fd70729150b4a5f2b94900a15a6fa6a04afdc345
Support volume auto-mounts on Kubernetes
Support volume auto mounts config in kubernetes, e.g.: ``` kubernetes: context_configs: sky-alpha: auto_mounts: - volume_name: my-hostpath mount_paths: - ~/.cache/huggingface/hub ``` Test: The above config will get: ``` ... volumeMounts: - mountPath: /dev...
diff --git a/sky/backends/backend_utils.py b/sky/backends/backend_utils.py index fe804e9b53..7c29b76caf 100644 --- a/sky/backends/backend_utils.py +++ b/sky/backends/backend_utils.py @@ -959,6 +959,39 @@ def write_cluster_config( keys=('post_provision_runcmd',), default_value=None) + # Build unif...
8
7
5
[{"id": "G0", "claim": "For home-relative paths (`~/...`) the code sets `sub_path` to the path including the `~`, but Kubernetes `subPath` does not interpret `~`, so it should be the path relative to the volume's root (e.g. `cache` for `~/cache`).", "category": "correctness", "verdict": "supported", "priority": "P1", "...
null
skypilot-org__skypilot__9225
skypilot-org/skypilot
9,225
defect
8a530611cd0f3c364f4a2c02ff33c35ef3b649bb
f07d9eb5d55d0f279808769e1b94750b8a2fe52c
[Storage] Read Only for MOUNT
<!-- Describe the changes in this PR --> Close #705 ``` file_mounts: /hello: source: s3://random-test-bucket mode: MOUNT config: mount: read_only: True ``` Tested: - [x] AWS S3 - [x] GCP GCS - [x] Nebius Object Store - [x] CoreWeave CAIOS Same schema as our MOUNT_CACH...
diff --git a/sky/backends/cloud_vm_ray_backend.py b/sky/backends/cloud_vm_ray_backend.py index 3e03a486a3..d11d651fdb 100644 --- a/sky/backends/cloud_vm_ray_backend.py +++ b/sky/backends/cloud_vm_ray_backend.py @@ -6017,7 +6017,9 @@ def _execute_storage_mounts( store = list(storage_obj.stores.values())[0] ...
1
1
1
[{"id": "G0", "claim": "The PR's new read-only mount feature (MountConfig, storage YAML config, read_only flag propagation) has no new unit or integration tests; tests for Storage.from_yaml_config with the mount config and the read_only flag should be added.", "category": "testing", "verdict": "supported", "priority": ...
null
skypilot-org__skypilot__9233
skypilot-org/skypilot
9,233
defect
e8e30a0cde3f35efd58939cf6893d4aba958c110
f6b0919cd0a174551259753df9d410004abd0995
Add detection for file paths mistakenly used as cluster names
Review-level: checked the code manually and tried locally. ## Description This PR adds a safety check to detect when users accidentally pass file paths as cluster names in CLI commands. This addresses a common user mistake where users type commands like `sky launch -c job.yaml` instead of `sky launch -c mycluster...
diff --git a/sky/client/cli/command.py b/sky/client/cli/command.py index f08e943d70..ddd082a1c0 100644 --- a/sky/client/cli/command.py +++ b/sky/client/cli/command.py @@ -1218,6 +1218,12 @@ def launch( # server, if the jobs are long running. env = _merge_cli_and_file_vars([env_file], env) secret = _merge...
1
1
0
[{"id": "G0", "claim": "The confirmation prompt and validation logic duplicated across launch, exec and jobs_launch should be extracted into a shared helper function to reduce duplication.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
skypilot-org__skypilot__9241
skypilot-org/skypilot
9,241
defect
e8e30a0cde3f35efd58939cf6893d4aba958c110
2b766f0f6f5285e08bd5792fad597cb5ed2e4d1c
[Kubernetes] Allow pod_config to override runtimeClassName for GPU pods
<!-- Describe the changes in this PR --> ## Summary - Allow `pod_config` to override the `runtimeClassName` that SkyPilot auto-sets on GPU pods - If `runtimeClassName` is set to a value in `pod_config`, it's respected; if set to `null`/empty, the field is removed entirely - Fixes GPU pod failures on DGXC cl...
diff --git a/sky/provision/kubernetes/instance.py b/sky/provision/kubernetes/instance.py index 93c9156fb6..809b586713 100644 --- a/sky/provision/kubernetes/instance.py +++ b/sky/provision/kubernetes/instance.py @@ -1226,7 +1226,10 @@ def _create_pods(region: str, cluster_name: str, cluster_name_on_cloud: str, # TP...
2
1
0
[{"id": "G0", "claim": "Using a local variable for pod_spec['spec'] would improve readability and avoid repeated dictionary lookups in the runtimeClassName logic.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The unsetting logic that deletes fa...
null
skypilot-org__skypilot__9248
skypilot-org/skypilot
9,248
defect
9bb472e07223d111f8926fb7d1743bb527813adb
7d82f43066c4d2a54d9c43ed5484c17be5297228
[Jobs] Fix user hash race in concurrent job group launches
## Summary - Decorate `StrategyExecutor.launch()` with `@context.contextual_async` so each concurrent launch gets its own `SkyPilotContext` copy - Fixes a race condition where concurrent job group task launches corrupt the shared context's env overrides, causing `get_user_hash()` to fall back to the wrong hash ## Roo...
diff --git a/sky/jobs/recovery_strategy.py b/sky/jobs/recovery_strategy.py index 36e82a4882..9b9b24cac1 100644 --- a/sky/jobs/recovery_strategy.py +++ b/sky/jobs/recovery_strategy.py @@ -435,23 +435,30 @@ async def _launch(self, # env vars/user, which we may not want. ...
3
3
1
[{"id": "G0", "claim": "The race condition still exists in non-consolidation mode when multiple tasks of a job group are launched concurrently (e.g. via asyncio.gather), since os.environ is process-global and a task may run with a corrupted environment; use a lock or avoid global environment modification in all modes t...
null
skypilot-org__skypilot__9251
skypilot-org/skypilot
9,251
defect
dabd90e5213f236d714d2a5b02bbd71ff1ada3d4
5a572f3e7b14344fe287644794b81e0acebe989d
[Jobs] Fix git workdir env vars not set for JobGroup and multi-task DAGs
## Summary For JobGroup and multi-task chain DAGs, `_make_task_or_dag_from_entrypoint_with_overrides()` returns early without calling `update_workdir()` or `update_envs_and_secrets_from_workdir()` on any task. This means: 1. **CLI `--git-url`/`--git-ref` flags are never applied** to the tasks' workdir, because `u...
diff --git a/tests/smoke_tests/test_managed_job.py b/tests/smoke_tests/test_managed_job.py index ceab75b566..8a3e9c3852 100644 --- a/tests/smoke_tests/test_managed_job.py +++ b/tests/smoke_tests/test_managed_job.py @@ -2742,6 +2742,48 @@ def test_job_group_primary_failure_immediate_termination(generic_cloud: str): ...
2
1
1
[{"id": "G0", "claim": "The test reuses the same job name for the second launch, so the wait command returns immediately because it finds the first job already in the SUCCEEDED state, preventing the test from correctly waiting for the second job and leading to flakiness when checking logs; it recommends using a unique ...
null
skypilot-org__skypilot__9252
skypilot-org/skypilot
9,252
defect
f51bce1c2e880c83206d71ac9fad2374839f17ef
c691b1e3070b173d8f8c06766f41e48b22d36dea
[Core] Fix user_hash mismatch issue
<!-- Describe the changes in this PR --> - Fix `sky api login` skipping SSO when a residual service account token from a previous login is still in config, by clearing it before the first health check. - Fix `~/.sky/user_hash` not being updated after SSO login, causing false "Cluster was created by another user" warn...
diff --git a/sky/client/sdk.py b/sky/client/sdk.py index 07eff7378e..79c2b65ed6 100644 --- a/sky/client/sdk.py +++ b/sky/client/sdk.py @@ -2866,6 +2866,10 @@ def _set_user_hash(user_hash: Optional[str]) -> None: # design as a user may expect this is only effective for the current # session. We should consider...
1
1
0
[{"id": "G0", "claim": "The variables sso_user, auth_token, and original_check_server_healthy are defined but never used in the new test, and this dead code should be removed to keep the test suite maintainable and clear.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
skypilot-org__skypilot__9253
skypilot-org/skypilot
9,253
defect
9c24856dc3e8fb0935dc5905625fb6a2021c0d16
c9f187995fe279b7d4fe656454a5c2cec36e07c1
[Kubernetes] Support config extensibility for plugins
## Summary - Allow plugins to register custom Kubernetes config properties via `register_kubernetes_property()`, so plugin-provided fields pass JSON schema validation without hardcoding them in the schema. - Generalize queue name removal in `remove_queue_name_from_config()` to support plugin-registered queue keys via `...
diff --git a/sky/clouds/kubernetes.py b/sky/clouds/kubernetes.py index 468852f88d..86c5d9e04b 100644 --- a/sky/clouds/kubernetes.py +++ b/sky/clouds/kubernetes.py @@ -464,7 +464,7 @@ def _calculate_provision_timeout( num_nodes: int, volume_mounts: Optional[List['volume_lib.VolumeMount']], ena...
3
3
1
[{"id": "G0", "claim": "Add a public registration function (e.g. register_queue_name_key) so plugins can add new queue-related keys instead of monkeypatching the private _QUEUE_NAME_KEYS variable.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add an Arg...
null
skypilot-org__skypilot__9278
skypilot-org/skypilot
9,278
defect
2270a74818ef35b9892249590be90895e798451c
3dd928bca3781482040eaf2895127c8983622d09
[Jobs] Fix api_access_tokens UNIQUE constraint on job reuse
## Summary - Change plain INSERT to upsert in `set_api_access_token_id()` to handle controller teardown/recreate causing job ID reuse while stale entries remain in the API server's DB. ## Root Cause `set_api_access_token_id()` at `sky/jobs/state.py:1870` does a plain INSERT. When a controller is torn down and recreate...
diff --git a/sky/jobs/state.py b/sky/jobs/state.py index 0283bb7605..c4b2d0cb7b 100644 --- a/sky/jobs/state.py +++ b/sky/jobs/state.py @@ -1865,10 +1865,19 @@ async def get_pool_submit_info_async( def set_api_access_token_id(job_id: int, token_id: str) -> None: """Store the API access token ID for a managed job."...
1
1
0
[{"id": "G0", "claim": "The dialect-specific insert-function selection should be refactored into a mapping dictionary, the ValueError message should include the actual dialect name, and the upsert should use the idiomatic `excluded` namespace instead of reusing the interpolated `token_id` variable.", "category": "maint...
null
skypilot-org__skypilot__9289
skypilot-org/skypilot
9,289
defect
0b766e84db4be85ea95b7d969c072a065a4dcdc0
99eef5fc56c6ff8c4ad3d602e9022e23e4c860a7
[Core] Handle None/string inputs in deserialize_exception gracefully
## Summary - `deserialize_exception` crashes with `TypeError: 'NoneType' object is not subscriptable` when the server returns a non-standard error response (e.g. version mismatch with no serialized exception in the `detail` field). - Handle `None`, string, and non-dict inputs by returning a `RuntimeError` with the raw ...
diff --git a/sky/exceptions.py b/sky/exceptions.py index 8aead836638..3cd6356b645 100644 --- a/sky/exceptions.py +++ b/sky/exceptions.py @@ -112,6 +112,12 @@ def serialize_exception(e: BaseException) -> Dict[str, Any]: def deserialize_exception(serialized: Dict[str, Any]) -> Exception: """Deserialize the except...
1
1
1
[{"id": "G0", "claim": "The validation should verify all expected keys ('type', 'message', 'args', 'attributes', 'stacktrace') are present before proceeding, since a dict that has 'type' but not the others (e.g. a FastAPI validation error) would still crash with a KeyError when those are accessed later.", "category": "...
null
skypilot-org__skypilot__9322
skypilot-org/skypilot
9,322
defect
50eb0d79c4411420c375405d90086f54676925a7
541c664e24d74fec64a1ee23560797769810fd05
[Kubernetes] Auto increase the provision timeout when auto scaler is configured in k8s
<!-- Describe the changes in this PR --> Fixes two timeout issues in `_wait_for_pods_to_schedule` when a Kubernetes autoscaler is configured: 1. **Default `provision_timeout` (10s) is too short for autoscaling**: When an autoscaler is configured, bump the effective initial timeout to `_AUTOSCALE_INITIAL_MIN_TIMEOUT...
diff --git a/sky/provision/kubernetes/instance.py b/sky/provision/kubernetes/instance.py index 673f4c777f..395eb04d08 100644 --- a/sky/provision/kubernetes/instance.py +++ b/sky/provision/kubernetes/instance.py @@ -36,6 +36,25 @@ _MAX_MISSING_PODS_RETRIES = 5 _MAX_QUERY_INSTANCES_RETRIES = 5 _QUERY_INSTANCES_RETRY_I...
4
3
1
[{"id": "G0", "claim": "original_deadline is constant once the while loop begins, so computing it inside _evaluate_timeout on every iteration is slightly inefficient; calculate it once outside the closure.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim...
null
skypilot-org__skypilot__9334
skypilot-org/skypilot
9,334
defect
c425208f697f0d3c2ffb84e9c326e0bd46af574b
66ba2ee0d148675fa64f6ea93ed6777f71b307ea
[GCP] Support selecting specific VPC subnets
### Description - Adding `gcp.subnet_names` support for selecting specific subnets on GCP - Adding schema validation, docs, and unit coverage for the new config surface - Allowing task/job-level overrides for `gcp.vpc_name` and `gcp.subnet_names` Closes #9318 ### Tests - `pytest tests/unit_tests/test_gcp.py ...
diff --git a/docs/source/reference/config.rst b/docs/source/reference/config.rst index 3c5f2f865dd..bdc59bd853d 100644 --- a/docs/source/reference/config.rst +++ b/docs/source/reference/config.rst @@ -183,6 +183,8 @@ Below is the configuration syntax and some example values. See detailed explanat Owner: user-uni...
5
5
4
[{"id": "G0", "claim": "Checking custom_subnet_names with `is not None` may incorrectly treat an empty list as a custom network and skip FIREWALL_PERMISSIONS when falling back to a default VPC; use truthiness instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": ...
null
skypilot-org__skypilot__9343
skypilot-org/skypilot
9,343
defect
f9286d6e990d00df92729bf1cf2d9e6bc6e7aea2
3b8693afa0a748407e4c601c94660e2902ab3931
[Volume] Add volume mount check
<!-- Describe the changes in this PR --> Three Conflict Checks Check 1: Mount path uniqueness No two volume mounts (persistent, ephemeral, or auto-mount) can use the same `mountPath`. Duplicate `mountPath` causes K8s pod scheduling failure (PENDING). Check 2: Volume name consistency The Jinja2 template dedupli...
diff --git a/sky/backends/backend_utils.py b/sky/backends/backend_utils.py index 4cb78d31fa..dc6ad88e19 100644 --- a/sky/backends/backend_utils.py +++ b/sky/backends/backend_utils.py @@ -932,6 +932,8 @@ def write_cluster_config( volume_mount_vars = [] ephemeral_volume_mount_vars = [] + conflict_checker =...
2
1
1
[{"id": "G0", "claim": "_get_vol_source_identity returns a string like 'pvc:None' when the identifying field (e.g. vol_name_on_cloud) is None, so check() bypasses the `is None` guard and incorrectly treats two different volumes with unknown identities (e.g. two ephemeral volumes) as the same volume.", "category": "corr...
null
skypilot-org__skypilot__9346
skypilot-org/skypilot
9,346
defect
f9286d6e990d00df92729bf1cf2d9e6bc6e7aea2
ec7a2453c42f4dbb695fee4b2c40927247c802fa
Add put_async for queue backend
<!-- Describe the changes in this PR --> This PR introduce `put_async` interface to avoid put blocking the uvicorn's event loop <!-- Describe the tests ran --> <!-- Unit tests (tests/test_*.py) are part of GitHub CI; below are tests that launch on the cloud. --> Tested (run the relevant ones): - [x] Code f...
diff --git a/sky/jobs/server/server.py b/sky/jobs/server/server.py index e5927d79db..25d732aad2 100644 --- a/sky/jobs/server/server.py +++ b/sky/jobs/server/server.py @@ -139,7 +139,7 @@ async def logs( # Cancel the coroutine after the request is done or client disconnects background_tasks.add_task(ta...
1
1
1
[{"id": "G0", "claim": "The `RequestQueue` class is missing the `put_async` method, so calling it in `schedule_prepared_request` will raise an `AttributeError` at runtime; please add `put_async` to `RequestQueue` delegating to the underlying backend's `put_async`.", "category": "correctness", "verdict": "supported", "p...
null
skypilot-org__skypilot__9355
skypilot-org/skypilot
9,355
defect
324cfa3d7c499fef5b4690b1701140dd76e0a9e0
9cdf73a66e34c75ad980526317174f06dc64bbf7
[Kubernetes] Surface pod/node diagnostics in cluster health events
When Kubernetes nodes go down (reboot, failure, preemption), SkyPilot detects the cluster as unhealthy but emits a generic event that doesn't explain the root cause: ``` Cluster is abnormal because ray cluster is unhealthy (2/3 ready). Transitioned to INIT. ``` This PR surfaces Kubernetes-level diagnostics (pod condi...
diff --git a/sky/backends/backend_utils.py b/sky/backends/backend_utils.py index 4cb78d31fa..5a1e08b8a6 100644 --- a/sky/backends/backend_utils.py +++ b/sky/backends/backend_utils.py @@ -2712,13 +2712,20 @@ def _handle_autostopping_cluster( # earlier. So if all_nodes_up is True and we are here, it means the ra...
6
6
5
[{"id": "G0", "claim": "The total_affected pod count is aggregated globally across all node issue types but displayed within each individual issue's summary part, so a cluster with mixed node-level issues (e.g. NotReady and cordoned) shows misleading pod counts; the count should be specific to each issue type.", "categ...
null
skypilot-org__skypilot__9365
skypilot-org/skypilot
9,365
defect
92002ec3ace3f5cbd44f538b1f2acce389d9174c
b88ed58035e3635e2dd90af8e1c761924bd7209f
Run precondition wait in main event loop
<!-- Describe the changes in this PR --> <!-- Describe the tests ran --> <!-- Unit tests (tests/test_*.py) are part of GitHub CI; below are tests that launch on the cloud. --> Tested (run the relevant ones): - [x] Code formatting: install pre-commit (auto-check on commit) or `bash format.sh` - [x] Any ma...
diff --git a/sky/server/requests/executor.py b/sky/server/requests/executor.py index 511bc0c43f..6b3173c1cc 100644 --- a/sky/server/requests/executor.py +++ b/sky/server/requests/executor.py @@ -860,7 +860,7 @@ async def enqueue(): if precondition is not None: # Wait async to avoid blocking caller. - ...
2
2
1
[{"id": "G0", "claim": "Store the task created by asyncio.create_task() in a module-level set and remove it when done, because asyncio only keeps weak references to running tasks and a precondition wait of up to an hour could otherwise be garbage-collected before it completes.", "category": "correctness", "verdict": "s...
null
skypilot-org__skypilot__9367
skypilot-org/skypilot
9,367
defect
e3aac9c1f2409d334880388481ad395f3502ecb0
2baf7427fa828fcf823605ad2f5d57677d049159
[Core] Skip re-install of unchanged plugin wheels
## Summary On every controller launch (`sky jobs launch`, `sky serve up`, etc.), the controller's `run` phase unconditionally `uv pip install`s every plugin wheel listed in `controller_wheel_path`. Two problems with this: 1. **Wasted work** when the wheel hasn't changed since the last launch. 2. **Flaky imports** — p...
diff --git a/sky/server/plugin_utils.py b/sky/server/plugin_utils.py index 2b7abf2834..eb9e60d4b8 100644 --- a/sky/server/plugin_utils.py +++ b/sky/server/plugin_utils.py @@ -5,7 +5,9 @@ """ import os import pathlib -from typing import Dict, Optional, Tuple +import re +import shlex +from typing import Dict, List, Op...
2
2
1
[{"id": "G0", "claim": "Using `mktemp` without arguments creates the temporary stamp file in /tmp, so if the plugin directory and /tmp are on different filesystems the subsequent `mv` is not atomic; create the temp file in the stamp file's own directory (e.g. `mktemp \"$_sky_stamp.XXXXXX\"`) to keep the replacement ato...
null
skypjack__entt__1168
skypjack/entt
1,168
defect
93f7d516f21e5f63422df983c02827ab1c8e050e
9398e772010de195560fb189c8c45224316332d5
Automatic signal registration for components
This is the promised implementation for #1165, adding support for binding static functions of components to signals related to their lifetime. The functions should be named `on_construct`, `on_update` and `on_destroy`, be `static` to the component and have their signature as `void (entt::basic_registry<Entity, Allo...
diff --git a/src/entt/entity/mixin.hpp b/src/entt/entity/mixin.hpp index c8ebd57986..ba62db18b9 100644 --- a/src/entt/entity/mixin.hpp +++ b/src/entt/entity/mixin.hpp @@ -11,6 +11,42 @@ namespace entt { +/*! @cond TURN_OFF_DOXYGEN */ +namespace internal { + +template <typename T, typename Reg, typename = void> +st...
1
1
0
[{"id": "G0", "claim": "The code added by the pull request should be reformatted with the clang-format configuration embedded in the project before merging, as its formatting differs from the project's.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
skypjack__uvw__137
skypjack/uvw
137
defect
9eaab52bd27151911fb075c377b5d0bb272304bb
0aee595311418650775a1288784ca903b3a84ab0
#135 Conan package support
Hi! This PR brings the support for Conan. Including: - .conan/build.py Build script to create Conan package on Travis CI - .conan/test_package/CMakeLists.txt CMake file to build test package - .conan/test_package/conanfile.py Conan recipe to build test package - .conan/test_package/test_package.cpp ...
diff --git a/.conan/build.py b/.conan/build.py new file mode 100644 index 00000000..a4de7b89 --- /dev/null +++ b/.conan/build.py @@ -0,0 +1,47 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +import os +import re +import platform +from cpt.packager import ConanMultiPackager + + +def get_version(): + with open("...
7
3
1
[{"id": "G0", "claim": "The Conan CI will create and upload a new package for every commit, so the upload should be gated instead of running for each commit.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Maybe the Conan CI part should only be fired...
null
skyrim-multiplayer__skymp__2517
skyrim-multiplayer/skymp
2,517
defect
b3b48aaac096c5c56f6b33502071d81d40a84ce4
ae8a27837dbbbfab71c095022f7c8f8b6198a2a7
fix(skymp5-server): add key sanitization and restoration in MongoDatabase
<!-- ELLIPSIS_HIDDEN --> > [!IMPORTANT] > Add `SanitizeJson` and `RestoreSanitizedJson` functions to handle JSON data in `MongoDatabase`, with placeholders for future implementation. > > - **Functions**: > - Add `SanitizeJson` and `RestoreSanitizedJson` to `MongoDatabase.cpp` and `MongoDatabase.h`. > - `...
diff --git a/skymp5-server/cpp/server_guest_lib/database_drivers/MongoDatabase.cpp b/skymp5-server/cpp/server_guest_lib/database_drivers/MongoDatabase.cpp index 01a7cc1ba..0417d5202 100644 --- a/skymp5-server/cpp/server_guest_lib/database_drivers/MongoDatabase.cpp +++ b/skymp5-server/cpp/server_guest_lib/database_drive...
2
1
1
[{"id": "G0", "claim": "SanitizeJson is only a TODO stub even though UpsertImpl calls it, and it must be fully implemented to sanitize JSON properly before merging.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "RestoreSanitizedJson's conditional co...
null
skyzh__mini-lsm__63
skyzh/mini-lsm
63
defect
f840dc53829eb28b1506a2155da772f552b77435
f120a46d5ec616fefaf8ae1aa037e7050f53c010
fix: Avoid leveled compaction crash when recovering from manifest
Fixes #62 - Add a test case to capture the error Below is what the test failure looks like on old version of the code: ```Bash --- STDERR: mini-lsm tests::week2_day5::test_multiple_compacted_ssts_leveled --- thread 'tests::week2_day5::test_multiple_compacted_ssts_leveled' panicked at mini-lsm/src/c...
diff --git a/mini-lsm-mvcc/src/compact.rs b/mini-lsm-mvcc/src/compact.rs index 56362961d..f7bc341db 100644 --- a/mini-lsm-mvcc/src/compact.rs +++ b/mini-lsm-mvcc/src/compact.rs @@ -382,6 +382,19 @@ impl LsmStorageInner { let (mut snapshot, files_to_remove) = self .compaction_controller ...
1
1
1
[{"id": "G0", "claim": "apply_compaction_result should keep everything sorted so callers always get a consistent state; the reviewer prefers a design where it takes an in_recovery parameter controlling whether to sort, or alternatively that start/end keys be included in the manifest.", "category": "design", "verdict": ...
null
sl-sh-dev__sl-sh__130
sl-sh-dev/sl-sh
130
defect
5556e880f9f02990f94f92a53166a3a51bb9f0bf
2de2ee4dd2adf0433b487f4f9adb71b2f2122bbb
Add read and fix lisp tests
add read, fix lisp tests so that they compile. Lots of errors but the syntax at least works.
diff --git a/builtins/src/collections.rs b/builtins/src/collections.rs index 3b4feef716..a10dac98f1 100644 --- a/builtins/src/collections.rs +++ b/builtins/src/collections.rs @@ -127,10 +127,10 @@ Returns a slice of a vector (0 based indexes, end is exclusive). Section: vector Example: -(test::assert-equal '(5 6) (...
1
1
1
[{"id": "G0", "claim": "The new form that reads every sexp from a string or file and always returns a vec should not be named `read`, since traditional Lisp `read` returns one sexp at a time; it should be renamed (e.g. \"read-all\") and `read` reserved for the normal single-sexp read.", "category": "design", "verdict":...
null
sl-sh-dev__sl-sh__142
sl-sh-dev/sl-sh
142
defect
e1f5c5335610e7c6bb60df54ea4b86e2b4f66429
c7e22b0007ba9c3e463d85787064935e531765c8
new benchmarks and some lib rearranging to make that happen.
- add new benchmarks - make some builtins useable by slosh crate from sl_compiler and others
diff --git a/Cargo.lock b/Cargo.lock index e58687023e..8c6b63d243 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -722,6 +722,7 @@ dependencies = [ name = "shell" version = "0.1.0" dependencies = [ + "builtins", "cfg-if", "chrono", "glob", diff --git a/builtins/src/lib.rs b/builtins/src/lib.rs index 474eded354..1b...
1
1
1
[{"id": "G0", "claim": "The shell crate should not depend on builtins or the other lisp crates: the added `builtins` dependency in shell/Cargo.toml should be removed (and pushing shell down the dependency chain into sl_compiler is also not acceptable — the platform-specific shell code should be avoided for a trivial fu...
null
sl-sh-dev__sl-sh__143
sl-sh-dev/sl-sh
143
defect
82d25ed823b49772d3e4e0e8dd2f23fd815a118c
0bb53e8d6face5c2661a12703cd3974ff320f51c
2. Refactor for macro import sanity
functionally I just moved some things deeper into the library so I can refer to them from the builtins crate as I use the proc-macro. This brings us our first function str-sub. basically in order to use macros you have to have fully qualified imports. Currently I'm using the macro in the builtins crate. but we could...
diff --git a/Cargo.lock b/Cargo.lock index 4a78c5bed0..a765e84ded 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -197,6 +197,7 @@ checksum = "98cc8fbded0c607b7ba9dd60cd98df59af97e84d24e49c8557331cfc26d301ce" name = "compile_state" version = "0.1.0" dependencies = [ + "bridge_types", "slvm", ] diff --git a/bridge_m...
4
4
1
[{"id": "G0", "claim": "The doc note added to doc/containers.md states that an empty list is not nil and nil is not an empty list, but that distinction is not implemented yet, so the note misdescribes current behavior.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id...
null
sl-sh-dev__sl-sh__156
sl-sh-dev/sl-sh
156
defect
9f75247702835aaecd146a998182783ed16196eb
3062e0c42b5bd0901073ed067ec4beab4e33d071
Floating Point Update
Primarily, this PR allows us to change a single line to swap between F56 and F32Wrap implementations. Secondarily, integration tests were changed so that they don't rely specifically on floats being 56 bit or 32 bit. This does come with a drawback. As long as we leave ourselves the option to switch between F56 and F...
diff --git a/bridge_adapters/src/lisp_adapters/numbers.rs b/bridge_adapters/src/lisp_adapters/numbers.rs index 0ececc4daa..2b7dc9d5d6 100644 --- a/bridge_adapters/src/lisp_adapters/numbers.rs +++ b/bridge_adapters/src/lisp_adapters/numbers.rs @@ -2,7 +2,7 @@ use crate::lisp_adapters::SlFrom; use bridge_types::ErrorStr...
1
1
1
[{"id": "G0", "claim": "get_float returning f32 may cause much of the code to never use the extra precision that f56 provides, so the reviewer asks whether it should be dropped back to f32.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
sl-sh-dev__sl-sh__165
sl-sh-dev/sl-sh
165
defect
c3933419e1e45eeb1ed75e5e1b92c4c45b0a3cdc
54d3d6067f24f0199adfd07650f652f7097155aa
More std lib
- adding to the stdlib, a few questions peppered in. - certain functions, e.g. reverse are slow and could be improved and don't need to make it in.
diff --git a/.github/workflows/gh_pages.yml b/.github/workflows/gh_pages.yml index a020bdf7ee..f6a336f819 100644 --- a/.github/workflows/gh_pages.yml +++ b/.github/workflows/gh_pages.yml @@ -3,7 +3,7 @@ on: push: branches: - master - - custom-preprocessor2 + - more-std-lib jobs: deploy: d...
4
4
3
[{"id": "G0", "claim": "The new apply macro only works when all arguments are passed directly; it cannot expand a trailing list for compiled functions like +, so (apply + 1 (list 2 3)) does not return 6, and ideally it would work for all three call forms.", "category": "correctness", "verdict": "supported", "priority":...
null
sl-sh-dev__sl-sh__234
sl-sh-dev/sl-sh
234
defect
e7b6ce976e1c0b4af28e21fdd025b91e1ea495fb
71d2ff8b205a67792976a73fac9fc009b6865db7
new PR#2: std-lib/more2
- add some more tests - fix *load-path* to be tilde aware - create some infrastructure to iterate over the builtin slosh files so it's easier to load all the namespaces necessary for doc stuff. - some other refactoring
diff --git a/Cargo.lock b/Cargo.lock index d53ba44a30..bec2a79cd0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2203,6 +2203,8 @@ name = "slosh_test_lib" version = "0.11.1" dependencies = [ "bridge_adapters", + "bridge_macros", + "bridge_types", "builtins", "chrono", "compile_state", @@ -2214,6 +2216,7 @@ depe...
3
3
1
[{"id": "G0", "claim": "Undefined should not be treated as falsy in is_equal_pair; if it shows up there the VM should probably panic since it most likely indicates a serious internal error.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "The doc line...
null
slack-go__slack__1060
slack-go/slack
1,060
defect
0e14c9d4a15c91e845bc371fe91ee58763a3813a
9d70564ff5bba7ce770bbbe854ad93e3071f6006
add: workflows.stepCompleted and workflwows.stepFailed support
add support for the [workflows.stepCompleted](https://api.slack.com/methods/workflows.stepCompleted) and [workflows.stepFailed](https://api.slack.com/methods/workflows.stepFailed) using this API to indicate Slack that the workflow step is complete
diff --git a/workflow_step_execute.go b/workflow_step_execute.go new file mode 100644 index 000000000..de31b196f --- /dev/null +++ b/workflow_step_execute.go @@ -0,0 +1,74 @@ +package slack + +import ( + "context" + "encoding/json" +) + +type ( + WorkflowStepCompletedRequest struct { + WorkflowStepExecuteID string ...
3
3
0
[{"id": "G0", "claim": "The reviewer asks why WorkflowStepCompleted takes a pointer of map (*map[string]string) for outputs.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asks to receive optional arguments via Rob Pike's self-referential op...
null
slack-go__slack__1080
slack-go/slack
1,080
defect
819628fe9f514e7b76139e15a7cf6a76d1a0126e
672bb14130c17b721e53a511482f867fe4d55228
sharedLinks struct should be exported
Fixes #1079 - breaks API compatibility as a struct is exported, but I assume it was not intended to be unexported.
diff --git a/slackevents/inner_events.go b/slackevents/inner_events.go index 02767eb8f..77b5e07a7 100644 --- a/slackevents/inner_events.go +++ b/slackevents/inner_events.go @@ -178,11 +178,11 @@ type LinkSharedEvent struct { // compose text area. MessageTimeStamp string `json:"message_ts"` ThreadTimeStamp ...
1
1
0
[{"id": "G0", "claim": "The change renaming the test file's package to slackevents_test is unnecessary — the reviewer questions why it was made and asks that the package be left as slackevents.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
slack-go__slack__1155
slack-go/slack
1,155
defect
e7152216dda52317d92b00a08a91e5b776c9a854
8809a3e8f2f4494777ba31ed2eab207a40f3db9e
Add support for Rich Text Lists
This PR adds support for rich text lists. For example: ```json { "token": "...", "team_id": "...", "api_app_id": "...", "event": { "client_msg_id": "...", "type": "message", "text": "test message with list\n1. first point\n2. second point\n• first bullet\n• second bulle...
diff --git a/block_rich_text.go b/block_rich_text.go index 01e5cdb96..b2fc9ffc7 100644 --- a/block_rich_text.go +++ b/block_rich_text.go @@ -40,6 +40,9 @@ func (e *RichTextBlock) UnmarshalJSON(b []byte) error { switch s.Type { case RTESection: elem = &RichTextSection{} + case RTEList: + elem = &RichTextLis...
2
2
2
[{"id": "G0", "claim": "RichTextList should also support the indent field: an `Indent int` field with json tag `indent` on the struct, an `indent` parameter on NewRichTextList, populating it in UnmarshalJSON, and a test case covering `indent:2`.", "category": "design", "verdict": "supported", "priority": "P1", "scope":...
null
slack-go__slack__1190
slack-go/slack
1,190
defect
646e50d95d1fcfd3460da82ae48e0717a947f1fb
b0f1f5fe08111d9c8f2c7af7b05bc96939f98290
Add endpoints for `calls.*` apis and `Type: call` in blockkit
Implement the API methods for the Calls API in Slack https://api.slack.com/apis/calls Implemented methods - `calls.add` - Indicate a new call has been started - `calls.end` - Indicate to slack that the call has ended - `calls.info` - Get information about an ongoing slack call object - `calls.update` - update ca...
diff --git a/block.go b/block.go index 18222bd2b..4b746b658 100644 --- a/block.go +++ b/block.go @@ -18,6 +18,7 @@ const ( MBTInput MessageBlockType = "input" MBTHeader MessageBlockType = "header" MBTRichText MessageBlockType = "rich_text" + MBTCall MessageBlockType = "call" ) // Block defines an int...
2
2
1
[{"id": "G0", "claim": "EndCall should be able to pass the optional duration argument supported by Slack's calls.end method.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The calls.* Go functions should be renamed to use Participant instead of User, to ...
null
slack-go__slack__1331
slack-go/slack
1,331
defect
1edf0c7384de52bdeca7a2d6c4ad247d59c683e6
88024a791eea6a1ec6864863e61f8077ce861980
feat: Slack AI & Assistants Compatibility
Added new function for Slack AI & Assistants, information can be found here: https://api.slack.com/docs/apps/ai New Events: https://api.slack.com/events/assistant_thread_started https://api.slack.com/events/assistant_thread_context_changed New API Calls: https://api.slack.com/methods/assistant.threads.setStatu...
diff --git a/assistant.go b/assistant.go new file mode 100644 index 000000000..2ed097c41 --- /dev/null +++ b/assistant.go @@ -0,0 +1,160 @@ +package slack + +import ( + "context" + "encoding/json" + "net/url" +) + +// AssistantThreadSetStatusParameters are the parameters for AssistantThreadSetStatus +type AssistantThre...
3
3
1
[{"id": "G0", "claim": "The optional title argument should be added to the AssistantThreadsSetSuggestedPromptsParameters struct so it matches the Slack API spec, even though the Slack client currently ignores it.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cla...
null
slack-go__slack__1349
slack-go/slack
1,349
defect
e76401112d28edda69b2c25b99999962f95c7a7f
8b614ad6ede1dd656449c914137614bea0c37d26
feat: Adding Workflow Trigger WebAPI Methods
This pull request adds support for Web API Methods related to Workflow Triggers: - [workflows.triggers.permissions.add](https://api.slack.com/methods/workflows.triggers.permissions.add) - [workflows.triggers.permissions.list](https://api.slack.com/methods/workflows.triggers.permissions.list) - [workflows.triggers....
diff --git a/misc.go b/misc.go index df779c1ad..509ec7f73 100644 --- a/misc.go +++ b/misc.go @@ -26,6 +26,12 @@ type SlackResponse struct { ResponseMetadata ResponseMetadata `json:"response_metadata"` } +type ResponsePointer struct { + Ok *bool `json:"ok,omitempty"` + Error *str...
1
1
1
[{"id": "G0", "claim": "Do not add the ResponsePointer struct in this PR; instead keep using SlackResponse (moving any omitempty change to its own PR that changes SlackResponse).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
slack-go__slack__1353
slack-go/slack
1,353
defect
e76401112d28edda69b2c25b99999962f95c7a7f
a2280c9cebd90efa8befe90cd88c6a01c28a58b6
chore: Add parse channel context and host for shared channel
Resolving issue https://github.com/slack-go/slack/issues/1352 that currently unable to parse the host information on shared channel. With this addition, user can know the owner of the shared channel.
diff --git a/conversation.go b/conversation.go index 67d28be3b..00f7d4e3b 100644 --- a/conversation.go +++ b/conversation.go @@ -36,6 +36,8 @@ type Conversation struct { ConnectedTeamIDs []string `json:"connected_team_ids,omitempty"` SharedTeamIDs []string `json:"shared_team_ids,omitempty"` InternalTeamIDs...
1
1
1
[{"id": "G0", "claim": "TestCreateSharedChannel fails as written because it was copied from TestCreateSimpleChannel without setting the extra shared-channel fields that assertSharedChannel asserts.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
slack-go__slack__1376
slack-go/slack
1,376
defect
98cc396d6e1a57eab431796d9c0744253d3a1e71
53a00c2148a246ea6fd67ef3c7d0c42b9b885409
Expose private File Upload V2 methods to support multiple file uploads in a single message
Hi, thank you for maintaining slack-go! Currently, `UploadFileV2Context` works by sequentially calling three private methods in the following flow: 1. getUploadURLExternal (retrieves the upload URL) 2. uploadToURL (uploads the file to that URL) 3. completeUploadExternal (finalizes the upload) Because these m...
diff --git a/files.go b/files.go index 0682fb675..c1471605f 100644 --- a/files.go +++ b/files.go @@ -173,14 +173,14 @@ type UploadFileV2Parameters struct { SnippetText string } -type getUploadURLExternalParameters struct { - altText string - fileSize int - fileName string - snippetText string +type G...
2
1
0
[{"id": "G0", "claim": "The error messages returned by GetUploadURLExternalContext should not carry the function/API name prefix (\"GetUploadURLExternalContext:\" or \"files.getUploadURLExternal:\") but should just state the parameter requirement, e.g. \"FileName cannot be empty\".", "category": "maintainability", "ver...
null
slack-go__slack__1439
slack-go/slack
1,439
defect
abcbf2b079f6e1ab0d843639057bf5c829e9032c
aa7a86872613f5dac6c2bb1a334800ed23eb1023
support Data Access API
- support [Data Access API](https://api.slack.com/docs/apps/data-access-api#event-listener) - added https://api.slack.com/methods/assistant.search.context api - added `assistant_thread` attribute to Event API `message`, `app_mention` envets https://api.slack.com/docs/apps/data-access-api#event-listener - We are ...
diff --git a/assistant.go b/assistant.go index 8432f89b3..057e89cce 100644 --- a/assistant.go +++ b/assistant.go @@ -4,6 +4,7 @@ import ( "context" "encoding/json" "net/url" + "strconv" ) // AssistantThreadSetStatusParameters are the parameters for AssistantThreadSetStatus @@ -34,6 +35,43 @@ type AssistantThr...
1
1
1
[{"id": "G0", "claim": "The Data Access API handling added to the socketmode_handler example should be a standalone example of its own, so that people who do not have this API enabled are not affected when running the existing example.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduc...
null
slack-go__slack__1443
slack-go/slack
1,443
defect
b4aa697fcad5586e401afc51c896d5574958dd5c
7b402e0681da7aae9bb1b75dc64be8f623615a7d
feat: return Errors field in SlackErrorResponse
There are a few methods in the Slack API that return an `Errors` field. We've historically not captured this. It seems there are 4: - [`https://slack.com/api/conversations.invite`](https://api.slack.com/methods/conversations.invite) - [`https://slack.com/api/apps.manifest.create`](https://api.slack.com/methods/app...
diff --git a/examples/conversations_invite/conversations_invite.go b/examples/conversations_invite/conversations_invite.go new file mode 100644 index 000000000..b56b99719 --- /dev/null +++ b/examples/conversations_invite/conversations_invite.go @@ -0,0 +1,35 @@ +package main + +import ( + "fmt" + "os" + + "github.com/s...
4
1
0
[{"id": "G0", "claim": "The example's concrete type assertion on slack.SlackErrorResponse ties error handling to that exact type; use errors.As with a declared SlackErrorResponse variable so wrapped or richer error chains are still handled.", "category": "maintainability", "verdict": "supported", "priority": "P2", "sco...
null
slack-go__slack__1520
slack-go/slack
1,520
defect
efd43a0f1e278db9f90c702082ee8ab6846a51a6
59fd4381f1e7cce71fc13d3249aaa35a3fe1f983
feat(admin): Implement missing admin.roles.* API method:
Implements support for missing of admin.roles.* API methods - admin.roles.listAssignments - admin.roles.addAssignments - admin.roles.removeAssignments ##### Pull Request Guidelines These are recommendations for pull requests. They are strictly guidelines to help manage expectations. ##### PR preparation ...
diff --git a/admin_roles.go b/admin_roles.go new file mode 100644 index 000000000..e486fb6b5 --- /dev/null +++ b/admin_roles.go @@ -0,0 +1,156 @@ +package slack + +import ( + "context" + "net/url" + "strconv" + "strings" +) + +// AdminRolesAddAssignmentsParams contains arguments for AdminRolesAddAssignments method call...
3
3
3
[{"id": "G0", "claim": "The DateEffective parameter added to AdminRolesAddAssignmentsParams is not documented anywhere and does not exist in the official libraries, so it should be justified or removed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": ...
null
slack-go__slack__236
slack-go/slack
236
defect
1067d9052e96d9b41e421a5980217cb20e27865f
9f46a7bd42816f85e7bd2206da82d9a9b7f20b36
reduces required logger scope to only require an Output function.
as mentioned in in #233, reduces the required interface for logging to be satisfied just the Output method.
diff --git a/logger.go b/logger.go new file mode 100644 index 000000000..bd8ef4d2e --- /dev/null +++ b/logger.go @@ -0,0 +1,53 @@ +package slack + +import ( + "fmt" + "sync" +) + +// SetLogger let's library users supply a logger, so that api debugging +// can be logged along with the application's debugging info. +func...
1
1
0
[{"id": "G0", "claim": "The comment above type ilogger should say `ilogger`, not `logger`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
slack-go__slack__356
slack-go/slack
356
defect
8ac1139f0b5b26ddb4a5c05b727e7ce155cc37f4
3780302ea674236d99ba07b2404acca4d51c0bbd
Add convience method for webhooks
Resolves #355
diff --git a/dialog_test.go b/dialog_test.go index dbcd6ee20..caa3e7609 100644 --- a/dialog_test.go +++ b/dialog_test.go @@ -298,7 +298,7 @@ func TestOpenDialog(t *testing.T) { } err = api.OpenDialog("", *dialog) if err == nil { - t.Errorf("Did not error with empty trigger", err) + t.Errorf("Did not error with ...
2
1
0
[{"id": "G0", "claim": "The t.Errorf call in TestOpenDialog for the empty-trigger case passes err with no formatting directive, a problem the author found when running tests locally.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "A new WebhookMessage ...
null
slack-go__slack__412
slack-go/slack
412
defect
752f784a75e8b640f048a8a453466cca64c83a47
41cd5a601a150499a9c2b26c0bbd730297b731f8
Add chat.getPermalink support
Fixes #411 by providing a GetPermalink function. Included tests validate a successful request and associated response.
diff --git a/chat.go b/chat.go index 8cc6bdefd..dfbd0ff4a 100644 --- a/chat.go +++ b/chat.go @@ -456,3 +456,38 @@ func MsgOptionPostMessageParameters(params PostMessageParameters) MsgOption { return nil } } + +// PermalinkParameters are the parameters required to get a permalink to a +// message. Slack documentat...
1
1
0
[{"id": "G0", "claim": "Rename doPost to doRequest and the new getSlackMethod to getRequest while touching this code.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
slack-go__slack__413
slack-go/slack
413
defect
752f784a75e8b640f048a8a453466cca64c83a47
a23b2f1422e1d3b4754fab7ab086340e8de89c01
Issue 389
#389 I change io.Copy to io.Pipe in fileUploadReq for posting large file. it reduces the latecy of post large file, refere to the test. before(master) ``` [u5@ik1-321-20921 slack]$ go test ./... ok github.com/nlopes/slack 35.593s ? github.com/nlopes/slack/examples/channels [no test files] ? ...
diff --git a/files_test.go b/files_test.go index 91d6e8e1f..168a69768 100644 --- a/files_test.go +++ b/files_test.go @@ -141,4 +141,13 @@ func TestUploadFile(t *testing.T) { if _, err := api.UploadFile(params); err != nil { t.Errorf("Unexpected error: %s", err) } + + largeByt := make([]byte, 107374200) + reader ...
1
1
1
[{"id": "G0", "claim": "The errors in fileUploadReq's goroutine are only dumped to stdout with fmt.Println instead of being handled, and the pipe creation should be moved into postWithMultipartResponse so write errors can be checked after the request is processed.", "category": "correctness", "verdict": "supported", "p...
null
slack-go__slack__457
slack-go/slack
457
defect
db1f92067f7ba507e9c733117c60765a7fc84ffa
d769781ad81dd84d3226862364648aaa899ea0e9
Error when user forgets to set the Filename when using a Reader for file uploads
I just got bit by this issue and took me a while of investigating to get to the bottom. See [this gist](https://gist.github.com/nubunto/030bead224f1829c60149b0b04d2c19e) for more information on how to reproduce. This PR adds a small piece of documentation to the FileUploadParameters type, specifying that you'll get ...
diff --git a/files.go b/files.go index 13158582d..13011c46a 100644 --- a/files.go +++ b/files.go @@ -3,6 +3,7 @@ package slack import ( "context" "errors" + "fmt" "io" "net/url" "strconv" @@ -92,6 +93,8 @@ type File struct { // // There are three ways to upload a file. You can either set Content if file is...
1
1
0
[{"id": "G0", "claim": "The empty-Filename check for Reader uploads should be moved to the top of UploadFileContext and return immediately there, rather than sitting inside the params.Reader branch.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
slack-go__slack__462
slack-go/slack
462
defect
5911c620bb31338e391032c7b4032394beda330a
38be4e9cc194ab56959c7f8d3a9e0012afe79132
Add Reminders API
This PR adds support for the Reminders API, as documented [here](https://api.slack.com/methods/reminders.add). It builds on @phinze's work in https://github.com/nlopes/slack/pull/254 but updates it to work with recent changes. LMK if anything is missing or changes are needed!
diff --git a/Gopkg.lock b/Gopkg.lock index 9c33d0dc0..ba8339483 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -2,38 +2,52 @@ [[projects]] + digest = "1:a2c1d0e43bd3baaa071d1b9ed72c27d78169b2b269f71c105ac4ba34b1be4a39" name = "github.com/davecgh/go-spew" packages = ["spew"] + pruneopts = "UT" revision = "3...
4
3
3
[{"id": "G0", "claim": "The `time` parameter of AddChannelReminder/AddUserReminder is a plain string, which leaves unclear what input format is expected and is an odd API choice.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "doReminder should use the Slac...
null
slack-go__slack__472
slack-go/slack
472
defect
a7deeca7935c178aa865249bab511daf816288ba
019199f12f8783d6ff8036405c4d4f02c4f94e77
Add get file method
# Summary Decided to make a new PR since #292 was stale, needed a rebase, and because I made a few different implementation choices. Would love to see this method available for a number of personal projects I'm working on. Went ahead and addressed your feedback from the previous PR @james-lawrence and added a test...
diff --git a/files.go b/files.go index 136ea2661..d51b0783a 100644 --- a/files.go +++ b/files.go @@ -187,6 +187,11 @@ func (api *Client) GetFileInfoContext(ctx context.Context, fileID string, count, return &response.File, response.Comments, &response.Paging, nil } +// GetFile retreives a given file from its privat...
1
1
1
[{"id": "G0", "claim": "GetFile should take the download URL string directly instead of a *File object.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
slack-go__slack__513
slack-go/slack
513
defect
842f6707117d5eb37728cd7dd036d29fb2aeb412
29cc6370c2078528219946c22972656e914256af
add retryable behavior to errors
Makes it easier to decide when errors are retryable. Continuation / replacement PR for feedback in https://github.com/nlopes/slack/pull/505/files
diff --git a/misc.go b/misc.go index c3ceb13d0..4d732e2ef 100644 --- a/misc.go +++ b/misc.go @@ -55,6 +55,13 @@ func (t statusCodeError) HTTPStatusCode() int { return t.Code } +func (t statusCodeError) Retryable() bool { + if t.Code >= 500 || t.Code == http.StatusTooManyRequests { + return true + } + return true ...
2
1
1
[{"id": "G0", "claim": "statusCodeError.Retryable() can never return false because the fallback after the status-code check is also `return true`, making the >= 500 / 429 condition dead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "A 500 status is...
null
slack-go__slack__663
slack-go/slack
663
defect
0264d57d00529f164e5cf3c095e521df4dedf91f
e8d186e8890896283be73e8dd240e068f8ead2e1
Added Makefile to help contributors
* Added Makefile for contributors to use * Updated PR guidelines in README and PR template * Code format updates resulting from running `make pr-prep`
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 2f1b511fc..2622178c8 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,9 +1,12 @@ ##### Pull Request Guidelines -These are recommendations for pull requests. +These are recommendations fo...
1
1
0
[{"id": "G0", "claim": "Fix the typo \"depdnencies\" in the Makefile's deps help text; it should read \"dependencies\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
slack-go__slack__707
slack-go/slack
707
defect
0f98367f9203d7a46c304e08ef500da915e5e3ae
d452930f3f48d5e75b63b063b8d29441ed8e8c92
Added Blocks struct to WebhookMessage
Replaces [PR-595](https://github.com/slack-go/slack/pull/595) and adds the missing tests. Closes [Issue-594](https://github.com/slack-go/slack/issues/594) ##### Pull Request Guidelines These are recommendations for pull requests. They are strictly guidelines to help manage expectations. ##### PR preparation ...
diff --git a/webhooks.go b/webhooks.go index 1016cb4fb..bb0e7f5f4 100644 --- a/webhooks.go +++ b/webhooks.go @@ -14,6 +14,7 @@ type WebhookMessage struct { Text string `json:"text,omitempty"` Attachments []Attachment `json:"attachments,omitempty"` Parse string `json:"parse,omi...
1
1
1
[{"id": "G0", "claim": "The `blocks` property should be omitted from the encoded JSON of a WebhookMessage when `blocks` is null, instead of being emitted as `\"blocks\":null`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
slack-go__slack__788
slack-go/slack
788
defect
ae526aaa58d4255c49a3169cb97fdfdf7a683fc9
1de32738517a9f8604226bdab87d3525a0cf5881
Resolve: Revert changes to json tags in Attachment's Text field
Resolve: Revert changes to json tags in Attachment's Text field. #784 Documentation of API says that `text` field is required in `Attachment`, but when you want to send it with `blocks` field as well, it returns `invalid_attachment` error. This is because `blocks` cannot be sent along with `text` (even with empty `...
diff --git a/attachments.go b/attachments.go index 5f388e9f9..268269edc 100644 --- a/attachments.go +++ b/attachments.go @@ -75,7 +75,8 @@ type Attachment struct { Title string `json:"title,omitempty"` TitleLink string `json:"title_link,omitempty"` Pretext string `json:"pretext,omitempty"` - Text strin...
2
2
1
[{"id": "G0", "claim": "Please fix the failing test cases on this pull request.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The now-optional Text field should no longer carry the '// Required' comment.", "category": "maintainability", "verdict": ...
null
slack-go__slack__879
slack-go/slack
879
defect
2133f59a0871dcda0ab3d627b96d28feb5ceff29
a607bc9a28ac9e109bedbdb5bd0bc7366fbb0abe
Adding apps.uninstall method
##### Changes Adding the `apps.uninstall` method, which completely removes a Slack app installation from its workspace (revoking any and all tokens in the process). ##### Docs https://api.slack.com/methods/apps.uninstall
diff --git a/apps.go b/apps.go index cb26ad8ef..264d81904 100644 --- a/apps.go +++ b/apps.go @@ -3,6 +3,7 @@ package slack import ( "context" "encoding/json" + "net/url" ) type listEventAuthorizationsResponse struct { @@ -41,3 +42,20 @@ func (api *Client) ListEventAuthorizationsContext(ctx context.Context, eve...
1
1
0
[{"id": "G0", "claim": "The UninstallApp signature should combine the two same-type parameter declarations as `clientID, clientSecret string`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
slack-go__slack__999
slack-go/slack
999
defect
979adb8fbdf5c51ae1e5021c50c625ccd2051cf8
c415915e40f91a77f753713c046fc8048c173d04
link_shared `message_ts` field isn't always a number
This is a one-liner, but a breaking change. As documented in https://api.slack.com/events/link_shared, the `message_ts` field will not be a number if the event is generated from an unfurl in the compose message area (the feature was announced here: https://api.slack.com/changelog/2021-08-changes-to-unfurls). Incl...
diff --git a/slackevents/inner_events.go b/slackevents/inner_events.go index 20152d600..ee43ae17c 100644 --- a/slackevents/inner_events.go +++ b/slackevents/inner_events.go @@ -165,7 +165,7 @@ type LinkSharedEvent struct { User string `json:"user"` TimeStamp string `json:"ts"` Cha...
1
1
0
[{"id": "G0", "claim": "Please add a comment explaining the reason for using the `string` type for MessageTimeStamp (message_ts can carry more than just timestamps).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
slackapi__bolt-js__1079
slackapi/bolt-js
1,079
defect
0ad0e89789068cf4f7f5ad226b46e551c482dcba
bcf91a093269cf68dce057f427c53d766df59a24
Fix #977 Add a way to turn off web page rendering for "/slack/install"
### Summary This pull request fixes #977. Refer to the issue for details. ### Requirements (place an `x` in each `[ ]`) * [x] I've read and understood the [Contributing Guidelines](https://github.com/slackapi/bolt/blob/main/.github/contributing.md) and have done my best effort to follow them. * [x] I've read...
diff --git a/examples/oauth/.gitignore b/examples/oauth/.gitignore new file mode 100644 index 0000000000..49d69386c0 --- /dev/null +++ b/examples/oauth/.gitignore @@ -0,0 +1,3 @@ +# node / npm +node_modules/ +package-lock.json \ No newline at end of file diff --git a/examples/oauth/README.md b/examples/oauth/README.md ...
7
7
3
[{"id": "G0", "claim": "The option name `directInstallUrlEnabled` could be simpler, e.g. `directInstall: boolean`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The README's setup instructions use env var names (SLACK_CLIENT_SECRET) that do not match th...
null
slackapi__bolt-js__1087
slackapi/bolt-js
1,087
defect
bcca0ee5dc92396d3fe1ad015f49e4106afea593
691e362c2ced64a9095c006d64b31102cfa738cf
Fix #874: Enable using BoltJS without passing a botId
### Summary Fixes #874 Currently, when using an app that only makes use of a user token, the `ignoreSelf` middleware will throw an error because it expects a `botId` to always be present. **This PR removes the error thrown (and corresponding test) if a `botId` is not present in the incoming event's payload.*...
diff --git a/src/middleware/builtin.spec.ts b/src/middleware/builtin.spec.ts index 5f05a834c..7eea811cc 100644 --- a/src/middleware/builtin.spec.ts +++ b/src/middleware/builtin.spec.ts @@ -2,7 +2,7 @@ import 'mocha'; import { assert } from 'chai'; import sinon from 'sinon'; -import { ErrorCode, ContextMissingPropert...
1
1
1
[{"id": "G0", "claim": "Unless the author has already verified it, the pattern of an App initialized with a user token should be manually checked before merging this PR, and adding tests for that pattern would be a welcome, though not mandatory, addition.", "category": "testing", "verdict": "supported", "priority": "P1...
null
slackapi__bolt-js__1280
slackapi/bolt-js
1,280
defect
ba64593da9a3a97f548881a8201b1ef8a4cdd196
ddf02591481ecaeb987f01e354faca8c9855466f
Explicitly set the content-type on HTTPReceiver responses to the /slack/install route
### Summary While most browsers will automatically infer the content-type header even if not set on HTTP responses, certain cloud hosting systems (e.g. AWS API Gateway) integrate with a variety of other services to provide content and have no means of inferring the content type. As a result, deploying bolt apps to ...
diff --git a/src/receivers/HTTPReceiver.spec.ts b/src/receivers/HTTPReceiver.spec.ts index 20b55cf03..48da1330c 100644 --- a/src/receivers/HTTPReceiver.spec.ts +++ b/src/receivers/HTTPReceiver.spec.ts @@ -291,11 +291,14 @@ describe('HTTPReceiver', function () { const fakeRes: ServerResponse = sinon.createStubI...
2
2
2
[{"id": "G0", "claim": "The Content-Type set on the /slack/install route response should include a charset — 'text/html; charset=utf-8' instead of 'text/html' — as best practice to safely support non-English use cases.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id":...
null
slackapi__bolt-js__1286
slackapi/bolt-js
1,286
defect
d6e8febc6c707db23a16819f4e4e63607b77d88f
8d9f0459f1afa9844044a2c34dab0891045de655
(beta) Supports Sub in Slack
### Summary 👋 This PR adds initial support for Subscribe in Slack intended for beta release. #### Updates * Adds a `app.subscription` method to `App.ts` which accepts user provided middleware options needed for handling `notification_subscriptions_*` events. * Adds a Subscription class implementation which r...
diff --git a/package.json b/package.json index 437e416cac..4779b10a67 100644 --- a/package.json +++ b/package.json @@ -44,8 +44,8 @@ "@slack/logger": "^3.0.0", "@slack/oauth": "^2.4.0", "@slack/socket-mode": "^1.2.0", - "@slack/types": "^2.4.0", - "@slack/web-api": "^6.6.0", + "@slack/types": "f...
2
2
1
[{"id": "G0", "claim": "The type-tests fail (e.g. types-tests/options.test-d.ts:26:32 'Argument of type SlackOptions is not assignable to parameter of type BlockSuggestion'), so the type of the options argument may need to be corrected.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "un...
null
slackapi__bolt-js__1508
slackapi/bolt-js
1,508
defect
7eec4389253ad5b353af8d3cf0a15552eb18f4f1
86f1ee8aab371ebb6aeb821865f1394c983525bc
Adding Message Metadata Support to Bolt JS
### Summary The PR introduces support for [Message Metadata](https://api.slack.com/metadata) events within the Bolt framework. This should be paired together with https://github.com/slackapi/node-slack-sdk/pull/1504 as the "MessageMetadata" is defined within. Support for MessageMetadataPostedEvent, MessageMetad...
diff --git a/src/types/events/base-events.ts b/src/types/events/base-events.ts index 51241f2d4..378ae67e2 100644 --- a/src/types/events/base-events.ts +++ b/src/types/events/base-events.ts @@ -1,5 +1,5 @@ import { View, MessageAttachment, KnownBlock, Block } from '@slack/types'; -import { MessageEvent as AllMessageEve...
2
2
1
[{"id": "G0", "claim": "The MessageMetadataDeletedEvent interface should also declare a `deleted_ts: string` property.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "A simple example app in the examples/ directory demonstrating listening to message ...
null
slackapi__bolt-js__1615
slackapi/bolt-js
1,615
defect
be8a041c25204a0bf99f15c4bf49d6264a9d772e
ed435a46a01ed86cd9277dce7302f3d4c501ee0a
Fix context.team_id for view interactions in a Slack Connect channel
### Summary This pull request resolves a bug where context.team_id can be invalid for view interactions (view_submission / view_closed) in a Slack Connect channel, which was reported at #1614 ### Requirements (place an `x` in each `[ ]`) * [x] I've read and understood the [Contributing Guidelines](https://gi...
diff --git a/src/App-basic-features.spec.ts b/src/App-basic-features.spec.ts index 282b14c4b..7559d3157 100644 --- a/src/App-basic-features.spec.ts +++ b/src/App-basic-features.spec.ts @@ -1150,13 +1150,69 @@ describe('App basic features', () => { ]; // Act - await Promise.all(receiverEvents....
2
2
0
[{"id": "G0", "claim": "Add a comment for future readers explaining when the `bodyAsView.view.app_installed_team_id` condition is met, since it is nuanced, ideally mirroring the wording added in the bolt-python PR.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "...
null
slackapi__bolt-js__1785
slackapi/bolt-js
1,785
defect
e769452bcd8848e9c8da803dc6707dcd27c94d95
4fa1d6253d6c8ec0699bd838a4524c9a92f995da
Fix #1325 Added support for dynamic custom paths
### Summary Bugfix for #1325 Following the guidance of [ExpressJS](https://expressjs.com/en/guide/routing.html#route-paths) and how they parse the route paths for dynamic parts I added [path-to-regexp](https://www.npmjs.com/package/path-to-regexp) and used path-to-regexp to match routes and insert path params t...
diff --git a/package.json b/package.json index 9660cb5016..bc10e2394e 100644 --- a/package.json +++ b/package.json @@ -52,6 +52,7 @@ "@types/tsscmp": "^1.0.0", "axios": "^0.27.2", "express": "^4.16.4", + "path-to-regexp": "^6.2.1", "please-upgrade-node": "^3.2.0", "promise.allsettled": "^1.0...
6
4
2
[{"id": "G0", "claim": "Custom route matching should stop at the first match so that the first declared matching route wins, matching Express's first-come-first-serve precedence; as written, /crayon/blue would be handled by the later /crayon/:color route.", "category": "correctness", "verdict": "supported", "priority":...
null
slackapi__bolt-js__1790
slackapi/bolt-js
1,790
defect
4f9a106075eef464d42dc44604d7b44f8a1d36bd
0a2ff4eae0792686ade87e6e747768ac7d2f2e5e
Fix #1758 Correct type definitions for `OptionGroups` and `*Options` types
### Summary This PR corrects the type definitions for the `OptionGroups` type by enforcing a `PlainTextElement` type for the `label` of `OptionGroups` and `Option[]` for `options` of `MessageOptions`. Fixes #1758 by removing compilation errors when using these types. ### Reviewers With the changes in this PR,...
diff --git a/src/types/options/index.ts b/src/types/options/index.ts index 62ea60296..06632e6e8 100644 --- a/src/types/options/index.ts +++ b/src/types/options/index.ts @@ -1,4 +1,4 @@ -import { Option } from '@slack/types'; +import { Option, PlainTextElement } from '@slack/types'; import { StringIndexed, XOR } from '...
3
3
2
[{"id": "G0", "claim": "The PR's change to DialogOptions.options must be reverted: the legacy dialog's option data structure ({ label, value }) was already correct and differs from the latest Block Kit based one, so the legacy dialog types should not have been changed.", "category": "correctness", "verdict": "supported...
null
slackapi__bolt-js__1806
slackapi/bolt-js
1,806
defect
af58002cf4624c5f9dda789b0e61bcb3e9e028c3
02b271b106c24ae8f2fc9c2ef074d37228fae4cf
Fix #1805 Include headers in the request object of custom route handlers
### Summary The changes in this PR assign `req.headers` to the request object in handlers of custom routes and adds an example to the docs. Fixes #1805. ### Reviewers With the changes on this branch, verify that request headers are displayed in static and dynamic routes using both Socket Mode and HTTP. You can...
diff --git a/docs/_advanced/custom_routes.md b/docs/_advanced/custom_routes.md index a009bab4d..1d501646c 100644 --- a/docs/_advanced/custom_routes.md +++ b/docs/_advanced/custom_routes.md @@ -28,7 +28,7 @@ const app = new App({ method: ['GET'], handler: (req, res) => { res.writeHead(200); - ...
1
1
0
[{"id": "G0", "claim": "Rename the test variable `message` to something more descriptive such as `expectedMessage` to provide more context.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
slackapi__bolt-js__1940
slackapi/bolt-js
1,940
defect
d42c0182b12e5aaa76025428dad3927af005184b
984c403559a8b067ba937a85dd40837052e1c8b7
fix: options constraint has wrong type definition
### Summary Apply correct type definitions for the `constraints` argument in the `options` function. Fixes #1939 ### Requirements (place an `x` in each `[ ]`) * [x] I've read and understood the [Contributing Guidelines](https://github.com/slackapi/bolt/blob/main/.github/contributing.md) and have done my be...
diff --git a/.vscode/settings.json b/.vscode/settings.json index de0e1d67f..8108ac261 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -12,16 +12,16 @@ https://github.com/typescript-eslint/tslint-to-eslint-config/blob/master/docs/FA Happy linting! 💖 */ { - "editor.rulers": [120], - "typescript.tsdk...
3
3
2
[{"id": "G0", "claim": "The PR should revert the incidental .vscode/settings.json changes (indentation/formatting churn) that are not essential to this PR.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In OptionsConstraints, block_id and action...
null
slackapi__bolt-js__2007
slackapi/bolt-js
2,007
defect
5587d01c03f9908c8454f343aea8e4ff568d609e
05934120c1cc0e66c50dacdf1d720bfc3ec318d3
Close HTTP response on unhandled request timeout
### Summary This pull request fixes an issue where the `defaultUnhandledRequestHandler` does not close the HTTP response if an incoming event times out without being acknowledged. The current behavior can lead to open connections that consume server resources unnecessarily and may cause confusion for clients awaitin...
diff --git a/src/receivers/HTTPModuleFunctions.spec.ts b/src/receivers/HTTPModuleFunctions.spec.ts index 0b52bab46..4a5d06d36 100644 --- a/src/receivers/HTTPModuleFunctions.spec.ts +++ b/src/receivers/HTTPModuleFunctions.spec.ts @@ -318,6 +318,7 @@ describe('HTTPModuleFunctions', async () => { request, ...
1
1
1
[{"id": "G0", "claim": "The unhandled-request handler should respond with 404 Not Found instead of 503 Service Unavailable, to align with how Bolt for Python and Java handle this pattern.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
slackapi__bolt-js__2026
slackapi/bolt-js
2,026
defect
ca8f138c2ac0f5b738c60cb822609e83761d7276
9f7207be4e6f0b40643f896136616693af3d6765
Add support for remote functions
## Summary This PR adds support for remote (i.e., remotely hosted) functions for use in Workflow Builder. ## What's New ### A shiny new listener: `.function()` Support of remote functions brings a new `.function()` listener that features `complete` and `fail` utilities to quickly and easily signal if the fun...
diff --git a/src/App.ts b/src/App.ts index 5fea2290cd..6a98ef6ac6 100644 --- a/src/App.ts +++ b/src/App.ts @@ -61,6 +61,7 @@ import { AllMiddlewareArgs, contextBuiltinKeys } from './types/middleware'; import { StringIndexed } from './types/helpers'; // eslint-disable-next-line import/order import allSettled = requir...
11
9
4
[{"id": "G0", "claim": "The class and file should be named `CustomFunction` to align with the official verbiage used in the public API docs.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The extracted context property should be named `functionB...
null
slackapi__bolt-js__2107
slackapi/bolt-js
2,107
defect
06b0f611804efda920e2a3d472992ed860122634
0720a5acfabdf29b8796df3151041d27e53b6776
Add flag to `AwsLambdaReceiver` to enable/disable signature verification
### Summary Resolves https://github.com/slackapi/bolt-js/issues/2104 This adds a flag to the `AwsLambdaReceiver` so that signature verification can be disabled, similar to the `HTTPReceiver`. This allows callers to disable signature verification if they already have something upstream of their Lambda function us...
diff --git a/src/receivers/AwsLambdaReceiver.spec.ts b/src/receivers/AwsLambdaReceiver.spec.ts index 813b32758..b6035147a 100644 --- a/src/receivers/AwsLambdaReceiver.spec.ts +++ b/src/receivers/AwsLambdaReceiver.spec.ts @@ -542,6 +542,42 @@ describe('AwsLambdaReceiver', function () { ); assert.equal(response...
2
2
1
[{"id": "G0", "claim": "Keep `signingSecret` explicitly required: do not make the property optional and do not give it a `''` constructor default, so developers must always set it and cannot accidentally hit the Invalid Signature error at runtime.", "category": "design", "verdict": "supported", "priority": "P1", "scope...
null
slackapi__bolt-js__2300
slackapi/bolt-js
2,300
defect
198d7c317f901f051c636cf6786fa5633038c2c2
79a3331c03fcc02086cf524cfd0aa4bae629f012
[FIX]: Include metadata with Assistant `say` util
### Summary Introduces behavior seen in Python and Java implementations, where thread context is appended as `metadata` to messages posted with `say` utility provided within the `Assistant` class. [See discussion for details](https://github.com/slackapi/bolt-js/pull/2295/files#r1811588537). ### Requirements (plac...
diff --git a/src/Assistant.ts b/src/Assistant.ts index da84f5cbd..aec9a1dec 100644 --- a/src/Assistant.ts +++ b/src/Assistant.ts @@ -3,6 +3,7 @@ import type { AssistantThreadsSetSuggestedPromptsResponse, AssistantThreadsSetTitleResponse, ChatPostMessageArguments, + MessageMetadataEventPayloadObject, } from '...
1
1
1
[{"id": "G0", "claim": "createSay should not call getThreadContext (which may invoke a custom threadContextStore's get method) at event-delivery time when the factory runs; instead the thread context should be collected just-in-time when the developer actually calls say, and metadata omitted when no context is availabl...
null
slackapi__bolt-js__2308
slackapi/bolt-js
2,308
defect
0aa69adf85f82dd9d139f44c88f70d9ec389292e
4ad276103938fca6f4e06eed81a324b0a2a09263
Add `title` to setSuggestedPrompts utility
### Summary Updates `setSuggestedPrompts` to include an optional `title` property: ``` setSuggestedPrompts({ title: 'Here are some suggested options:', prompts }); ``` <img width="372" alt="Screenshot 2024-10-28 at 5 06 02 PM" src="https://github.com/user-attachments/assets/99dfbf1e-e4c4-4395-8916-63f3f610c7...
diff --git a/src/Assistant.ts b/src/Assistant.ts index ddcc44c27..d7bb18ad3 100644 --- a/src/Assistant.ts +++ b/src/Assistant.ts @@ -46,6 +46,7 @@ type SetSuggestedPromptsFn = ( interface SetSuggestedPromptsArguments { prompts: [AssistantPrompt, ...AssistantPrompt[]]; + title?: string; } interface AssistantP...
2
2
0
[{"id": "G0", "claim": "Add JSDoc comments to the new title property (and surrounding SetSuggestedPromptsArguments/AssistantPrompt properties) so developers get IDE-level inline docs like in node-slack-sdk.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl...
null
slackapi__bolt-js__2408
slackapi/bolt-js
2,408
defect
bb95e77541b77da5592f970fc373a8938ad467b8
41c784b49ed6d6787d3fc08a39f19a1ec9d86a69
feat: support for synchronous custom step handling
### Summary This PR changes the way `function_executed` events handle auto acknowledgement. These changes lift the auto ack logic into a middleware that is then registered to the `function` listener. The `function` listener exposes an `autoAcknowledge` flag, when enabled (default) the auto ack middleware is added...
diff --git a/src/App.ts b/src/App.ts index d6f45fa9f..d9fbd3999 100644 --- a/src/App.ts +++ b/src/App.ts @@ -32,6 +32,7 @@ import { } from './helpers'; import { ignoreSelf as ignoreSelfMiddleware, + isSlackEventMiddlewareArgsOptions, matchCommandName, matchConstraints, matchEventType, @@ -74,6 +75,7 @@ i...
6
2
0
[{"id": "G0", "claim": "Consider handling a custom function's completion and failure through `ack` (e.g. ack({ outputs: ... }) or ack({ error: ... })) instead of auto-acknowledging in middleware.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add jsdoc to ...
null
slackapi__bolt-js__2424
slackapi/bolt-js
2,424
defect
657416fa061f9bebd1c9bdd61af2722730eb1971
d61f2cd8aeb640440a3cbf8e48d17ca05adb76eb
fix: refactor function handler for follow up auto ack behavior
### Summary This PR aims to - Increase unit test coverage for the custom function handler - Align the function handler with the middleware pattern used by actions and events - Set up the project to allow simple introduction of auto acknowledgment flag #### Manual tests These changes were manually tested again...
diff --git a/src/App.ts b/src/App.ts index 793d30dec..9fe07326c 100644 --- a/src/App.ts +++ b/src/App.ts @@ -7,9 +7,11 @@ import axios, { type AxiosInstance, type AxiosResponse } from 'axios'; import type { Assistant } from './Assistant'; import { CustomFunction, - type CustomFunctionMiddleware, type FunctionC...
17
15
2
[{"id": "G0", "claim": "Setting complete/fail/inputs only for function_executed events while their types are optional on shared listener args is confusing, so the types should perhaps be optional only for message/action args or a TODO should record the deferred cleanup.", "category": "design", "verdict": "uncertain", "...
null