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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ansible__ansible-lint__3820 | ansible/ansible-lint | 3,820 | defect | 1ede26aa76de6d3c019641d969cbbefa287bfe05 | 5dbc40d62ff1bb52886d7dd54f39e16658f12715 | Simplify transformer testing | Related: https://github.com/ansible/ansible-lint/issues/3818
| diff --git a/src/ansiblelint/file_utils.py b/src/ansiblelint/file_utils.py
index 4452d029e90..5a18870c1bf 100644
--- a/src/ansiblelint/file_utils.py
+++ b/src/ansiblelint/file_utils.py
@@ -371,10 +371,16 @@ def write(self, *, force: bool = False) -> None:
lintable.write(force=True)
"""
- ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The .tmp transformed-playbook files the test writes should be unlinked in a `finally` block so they get cleaned up if the test aborts.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
ansible__ansible-lint__4256 | ansible/ansible-lint | 4,256 | defect | 251aed4044bb9af3ea9740db87d1e9705e6ebd5a | 3157021013262807eac560c6876e8b89ea7c4b32 | Add write_exclude_list config option | As proposed here ([https://github.com/ansible/ansible-lint/discussions/4236](https://github.com/ansible/ansible-lint/discussions/4236)), we would like to exclude specific rules from the write_list via config file, without automatically applying auto-fixes each time ansible-lint is executed.
This PR provides a possib... | diff --git a/src/ansiblelint/config.py b/src/ansiblelint/config.py
index ee9dea06bc6..acaaa66ca35 100644
--- a/src/ansiblelint/config.py
+++ b/src/ansiblelint/config.py
@@ -138,6 +138,7 @@ class Options: # pylint: disable=too-many-instance-attributes
list_rules: bool = False
list_tags: bool = False
writ... | 1 | 1 | 1 | [{"id": "G0", "claim": "Tests using the write_exclude list, including one covering the new transformer exclusion branch, will be needed before this can merge.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
ansible__ansible-lint__4566 | ansible/ansible-lint | 4,566 | defect | 6a4fcdb135dd2be6e8ee5ddb5bf59d3d78cbe7b0 | 2e2a73a61981da70f5a22b17c994ec152336230e | Address too many values to unpack when there's subdirectories for roles | Fixes #4452
<...>
File "/home/user/.local/share/virtualenvs/globster-e1myMWbg/lib/python3.11/site-packages/ansiblelint/utils.py", line 563, in _rolepath
namespace_name, collection_name, role_name = parse_fqcn(role)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: too many values to unpack (expect... | diff --git a/collections/ansible_collections/local/testcollection/playbooks/playbook_bug4452.yml b/collections/ansible_collections/local/testcollection/playbooks/playbook_bug4452.yml
new file mode 100644
index 0000000000..823ea5d90a
--- /dev/null
+++ b/collections/ansible_collections/local/testcollection/playbooks/play... | 1 | 1 | 1 | [{"id": "G0", "claim": "ssbarnea asked that _rolepath be changed to support role names nested any number of directory levels, not just one subdirectory level.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
ansible__ansible-lint__4662 | ansible/ansible-lint | 4,662 | defect | a38b64bdd21d95787ff72ea90d19318317097f7c | 88001309360f8e8ddb9963bdbef66083574ce004 | Add new rule to validate pattern directory structure | ### SUMMARY
This PR adds a new rule `pattern` for validating a sample pattern directory structure within an ansible collection.
**Pattern rule consists of following sub-rules -**
- `pattern[missing-readme]`- triggers when the README.md file is missing from a pattern directory.
- `pattern[missing-meta]` - trig... | diff --git a/.config/constraints.txt b/.config/constraints.txt
index d162f2e63a..bdc4a8c201 100644
--- a/.config/constraints.txt
+++ b/.config/constraints.txt
@@ -1,6 +1,7 @@
# This file was autogenerated by uv via the following command:
# tox run -e deps
ansible-compat==25.5.0 # via ansible-lint (pyproject.to... | 3 | 3 | 1 | [{"id": "G0", "claim": "The rule should use subtags (tag=f\"{self.id}[xxx]\") to distinguish its various sub-rules and document all of them in the readme.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "All the sub-rules (specific messages) need to be doc... | null |
ansible__ansible-lint__4688 | ansible/ansible-lint | 4,688 | defect | e8bf1a01ad812e4c750961462a9abe49637e1917 | bca5fb80cc26b7f62844696d329b03bbab7399d7 | Skip lookups for ansible-core>=2.19 | Reverts #4683.
Adds a check for ansible-core 2.19 before setting `disable_lookups=True`. If ansible-core>=2.19 is used, return early and do not template.
This is because we need to ensure lookups (and code execution) are not performed inside of ansible-lint for ansible-core `>=2.19`.
See https://github.com/a... | diff --git a/src/ansiblelint/utils.py b/src/ansiblelint/utils.py
index f8ac2b5842f..0a36afa68c9 100644
--- a/src/ansiblelint/utils.py
+++ b/src/ansiblelint/utils.py
@@ -201,6 +201,7 @@ def ansible_template(
re_valid_filter = re.compile(r"^\w+(\.\w+\.\w+)?$")
templar = ansible_templar(basedir=basedir, template... | 2 | 2 | 2 | [{"id": "G0", "claim": "cidrblock suggests a lighter touch: detect \"lookup\" in the string and skip templating when ansible-core >= 2.19.0, so that disable_lookups is never passed to ansible-core (which would only create a deprecation message).", "category": "design", "verdict": "supported", "priority": "P1", "scope":... | null |
ansible__ansible-lint__4698 | ansible/ansible-lint | 4,698 | defect | 62ecaf81b28c0de51d5fd3bddf47cb8ac7e1dd26 | 8738faa63214394ee96d612dbeba30ae1176ac48 | Handle lookup templating checks with ASTs | Fixes #4697, related to #4696 and #4688 .
Handles checking for lookup functions in templates using an AST instead of regex, due to missed cases.
Adds tests to do more thorough checking for specific lookup use cases. | diff --git a/src/ansiblelint/utils.py b/src/ansiblelint/utils.py
index a3da59513d..798a2ab3aa 100644
--- a/src/ansiblelint/utils.py
+++ b/src/ansiblelint/utils.py
@@ -63,16 +63,15 @@
)
from ansible.template import Templar
from ansible.utils.collection_loader import AnsibleCollectionConfig
+from jinja2 import Environ... | 3 | 2 | 1 | [{"id": "G0", "claim": "The nested test case uses filter syntax and naming for what is actually a function call; it should read some_function(lookup(...)) with id nested_with_function.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "There should ... | null |
ansible__ansible-lint__4802 | ansible/ansible-lint | 4,802 | defect | b294d5b34bb93559cf34eb93c6090822962da64b | 628b4d6a56328ac9b1a91153bc83faec1cb89566 | fix: avoid using unreleased dependency constraints | - use newer ansible_compat which ensures that py314 and ansible-core
versions are compatible
- removes dependency on unreleased version of ansible-core
- add tests for packaging issues related to pre-releases
Fixes: #4800
Fixes: #4795
Fixes: AAP-55147 | diff --git a/pyproject.toml b/pyproject.toml
index aea480f2cf6..9e23cd92f68 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -33,8 +33,8 @@ classifiers = [
]
dependencies = [
"ansible-compat>=25.8.0", # indirect dependency of cryptography
- "ansible-core>=2.16.11", # indirect dependency of ansible-core
- "a... | 1 | 1 | 0 | [{"id": "G0", "claim": "The pyyaml dependency items in pyproject.toml seem wrong because Python 3.14 would get pyyaml>=6.0.2 (older minimum) while Python 3.10 gets >=6.0.3 (newer), so they should be dropped or fixed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}] | null |
ansible__ansible-lint__4892 | ansible/ansible-lint | 4,892 | defect | 52e7d361b8fa09fac579d86bda6f38c3fc752d2c | e87eca78803cf5814cf35f2b5c5993f617592286 | fix: implement precise filtering for bracketed sub-tags | ## Summary
This fix addresses an issue where `ansible-lint` was being too "broad" when asked to check for specific sub-rules.
### The Problem
Previously, if you asked the linter to check for one specific item (like `yaml[truthy]`), it would often "leak" and show you every other YAML-related error as well. It co... | diff --git a/src/ansiblelint/rules/__init__.py b/src/ansiblelint/rules/__init__.py
index 069439bb318..48ae92d591e 100644
--- a/src/ansiblelint/rules/__init__.py
+++ b/src/ansiblelint/rules/__init__.py
@@ -504,27 +504,52 @@ def run(
for rule in self.rules:
if rule.id == "syntax-check":
... | 1 | 1 | 1 | [{"id": "G0", "claim": "Test coverage must not go down: the codecov report shows one line of the changed code is missed by the tests.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
ansible__ansible-lint__4968 | ansible/ansible-lint | 4,968 | defect | 629cf05440966eea5c8e83707b16d5729ce06939 | 0f36e1d91e221a377c5e5915e878f9e4497abe6f | feat: adding new argument_spec rule and tests | I believe this is a great new opt-in (for now) rule because argument_spec is a great feature that so many either do not know about or utilize. Having this rule will allow users to require it if they want to do so.
assisted by claude-4.6-opus | diff --git a/examples/roles/role_argument_spec_embedded/meta/main.yml b/examples/roles/role_argument_spec_embedded/meta/main.yml
new file mode 100644
index 0000000000..c05f834af4
--- /dev/null
+++ b/examples/roles/role_argument_spec_embedded/meta/main.yml
@@ -0,0 +1,17 @@
+---
+galaxy_info:
+ role_name: role_argument_... | 5 | 5 | 1 | [{"id": "G0", "claim": "In src/ansiblelint/data/profiles.yml the new `role-argument-spec` entry under `shared` is not in alphabetical order and should be placed in an appropriate alphabetically ordered location.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G... | null |
ansible__ansible-lint__4980 | ansible/ansible-lint | 4,980 | defect | 120780a720770fd2de96c330f5f568edfed9cfcf | 5efdb9e8a21807fb18a44468b691716d8d0e779b | fix: support collection format in mock_roles | ### PR Summary
When using `mock_roles` with collection role names like `namespace.collection.role`, the role directories were created correctly but ansible couldn't find them during syntax check. The mock collections path wasn't being registered where ansible-compat looks for it, so this PR adds that path to the confi... | diff --git a/src/ansiblelint/app.py b/src/ansiblelint/app.py
index c00aeda25c..964ca37f44 100644
--- a/src/ansiblelint/app.py
+++ b/src/ansiblelint/app.py
@@ -431,6 +431,15 @@ def get_app(*, offline: bool | None = None, cached: bool = False) -> App:
# mocking must happen before prepare_environment or galaxy instal... | 1 | 1 | 1 | [{"id": "G0", "claim": "Keep the pull request as draft until coverage checks are also passing; it still needs one extra test for the change.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
ansible__awx__16148 | ansible/awx | 16,148 | defect | d1d3a3471bd8a405a0043add2d8203a260f8f37c | a188433999cdfa2017f530f39fe0f8d8ce7797be | Move to Runtime Platform Flags | Move to Runtime Platform Flags
ISSUE TYPE
- New or Enhanced Feature
COMPONENT NAME
- API
ADDITIONAL INFORMATION
This PR moves the source of truth for feature flags from components to the platform, inheriting and leveraging platform flags.
This PR requires - https://github.com/ansible/django-ansible-bas... | diff --git a/awx/main/tests/functional/dab_feature_flags/test_feature_flags_api.py b/awx/main/tests/functional/dab_feature_flags/test_feature_flags_api.py
index 490b3ac6e169..7601e4ddc4b6 100644
--- a/awx/main/tests/functional/dab_feature_flags/test_feature_flags_api.py
+++ b/awx/main/tests/functional/dab_feature_flags... | 2 | 1 | 1 | [{"id": "G0", "claim": "The django-ansible-base requirement line pointing at fao89's fork branch (phase2/feature-flags/poc) will need to be reset to upstream before merge.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "SonarCloud fails the coverage ... | null |
ansible__awx__16163 | ansible/awx | 16,163 | defect | d7eb7148594a86ddc3cabfde30fa872909cc34d8 | 3f251e070f08abe506410fd382a1a87d6ec4b736 | AAP-45541 Add test to recreate jobs/4075584/job_events/children_summary/ error | * Also begin to add detection for empty event
I'm not sure how we can get into this state (where event is empty). Best we can do for now (until we get an actual reproducer) is log when it happens and try not to include/process the malformed event so that we still return a usuable event tree.
##### SUMMARY
<!--- ... | diff --git a/awx/api/views/__init__.py b/awx/api/views/__init__.py
index 8393bac5c2c9..6e91c9ba6142 100644
--- a/awx/api/views/__init__.py
+++ b/awx/api/views/__init__.py
@@ -3943,6 +3943,10 @@ def get(self, request, **kwargs):
prev_non_meta_event = events[0]
for i, e in enumerate(events):
+ ... | 3 | 1 | 1 | [{"id": "G0", "claim": "A breakpoint() left in the JobJobEventsChildrenSummary view aborts the run with bdb.BdbQuit when the empty-event path is hit, so the test run does not behave as expected.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The new tes... | null |
ansible__awx__16185 | ansible/awx | 16,185 | defect | 4e1911f7c404aa68a8f876c9e4d78bbedda8e2e9 | 416a28ef0eeff76b8f3980d163d1f0f8b356725e | Upgrade to Django 5.2 LTS | ##### ISSUE TYPE
- Bug, Docs Fix or other nominal change
##### COMPONENT NAME
<!--- Name of the module/plugin/module/task -->
- API
##### ADDITIONAL INFORMATION
<!---
Include additional information to help people understand the change here.
For bugs that don't have a linked bug report, a step-by-step ... | diff --git a/awx/conf/fields.py b/awx/conf/fields.py
index 3296c29c04f2..4b99d2d765e9 100644
--- a/awx/conf/fields.py
+++ b/awx/conf/fields.py
@@ -160,10 +160,13 @@ def to_internal_value(self, paths):
class URLField(CharField):
# these lines set up a custom regex that allow numbers in the
# top-level domain
... | 3 | 3 | 3 | [{"id": "G0", "claim": "The requirements.txt lockfile pins django==5.2 (resolving to 5.2.0) instead of the specific tested patch version, locking production to an older Django patch than the environment the migration was generated with, and AlanCoding asked to put 5.2.9 in that file.", "category": "correctness", "verdi... | null |
ansible__awx__16200 | ansible/awx | 16,200 | defect | b24156805a242416aecec849e435faa87eb36d00 | b71684c41d7db729f82240edabff7519a19f2a03 | AAP-60452 Remove the dynamic log level filter for the dispatcherd main process | ##### SUMMARY
Right now, it looks like logs will respect the dynamic_level_filter, and this is a bad thing, and was never intended. Because doing this means talking to postgres, and that has no async version, which means that it will likely create a new synchronous connection in asyncio code, which is very bad, althou... | diff --git a/awx/main/management/commands/run_dispatcher.py b/awx/main/management/commands/run_dispatcher.py
index 55f056851c98..98a43eb99fe3 100644
--- a/awx/main/management/commands/run_dispatcher.py
+++ b/awx/main/management/commands/run_dispatcher.py
@@ -3,11 +3,14 @@
import logging
import yaml
import os
+import... | 3 | 3 | 3 | [{"id": "G0", "claim": "After the dispatcherd patch merges, the task that processes a settings change needs a special case to run the new control command.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The code only removes dynamic_level_filter from... | null |
ansible__awx__16233 | ansible/awx | 16,233 | defect | 36a00ec46bd47226923298309b3387759f82f581 | 958249abc1aa4bc6f5178249a85d3d5587c9fb15 | AAP-41776 Enable new fancy asyncio metrics for dispatcherd | ##### SUMMARY
Still WIP but this has the basics.
Next up: validate that `/api/v2/metrics/` can return the new keys, for what those are see:
https://github.com/ansible/dispatcherd/blob/main/dispatcherd/service/metrics.py
##### ISSUE TYPE
- Bug, Docs Fix or other nominal change
##### COMPONENT NAME
- API... | diff --git a/awx/main/analytics/subsystem_metrics.py b/awx/main/analytics/subsystem_metrics.py
index 0b7943928587..35a86d8d6abe 100644
--- a/awx/main/analytics/subsystem_metrics.py
+++ b/awx/main/analytics/subsystem_metrics.py
@@ -5,6 +5,8 @@
import logging
import prometheus_client
+import urllib.error
+import urll... | 3 | 3 | 3 | [{"id": "G0", "claim": "In get_dispatcherd_config, accessing metrics_cfg[\"port\"] directly when metrics_cfg lacks a \"port\" key raises KeyError, inconsistent with _get_dispatcherd_metrics() which safely uses .get('port').", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {... | null |
ansible__awx__16247 | ansible/awx | 16,247 | defect | f80bbc57d87c38932ea4d84553c215b86403a7cc | 57b792509d0b6dc29e91114a38f719e28cc5c71c | AAP-64221 Fix broken cancel logic with dispatcherd | ##### SUMMARY
This was a clear and obvious goof where `ctl.control_with_reply` was clearly assuming the socket broker. And ultimately, that would never work in a clustered situation anyway.
We are already handling the intended cancel signal of "SIGUSR1", I just thought we might not be in my debugging. Once I got th... | diff --git a/awx/main/models/unified_jobs.py b/awx/main/models/unified_jobs.py
index 350abd908dd9..6e2f1b474490 100644
--- a/awx/main/models/unified_jobs.py
+++ b/awx/main/models/unified_jobs.py
@@ -10,7 +10,6 @@
import logging
import os
import re
-import socket
import subprocess
import tempfile
from collections ... | 3 | 2 | 1 | [{"id": "G0", "claim": "Refreshing only celery_task_id before sending the cancel message leaves controller_node stale, so cancel_dispatcher_process() may publish the cancel on the wrong (or empty) pg_notify channel and the cancellation fails silently.", "category": "correctness", "verdict": "supported", "priority": "P1... | null |
ansible__awx__16262 | ansible/awx | 16,262 | defect | 82cb52d64830c6831aa42913ecfce011d3d2c7ce | dbf73498feafd1faa5b59f633e62f0a0672e101f | Fix OpenAPI schema enum values for CredentialType kind field | ##### SUMMARY
<!--- Describe the change, including rationale and design decisions -->
https://issues.redhat.com/browse/AAP-57166
The OpenAPI schema incorrectly showed all 12 credential type kinds as valid for POST/PUT/PATCH operations, when only 'cloud' and 'net' are allowed for custom credential types. This caused ... | diff --git a/awx/api/schema.py b/awx/api/schema.py
index 05e9955b7423..098d23ca51b8 100644
--- a/awx/api/schema.py
+++ b/awx/api/schema.py
@@ -8,6 +8,37 @@
SpectacularRedocView,
)
+def filter_credential_type_schema(result, generator, request, public):
+ """
+ Postprocessing hook to filter CredentialType k... | 1 | 1 | 1 | [{"id": "G0", "claim": "The generated enum `['cloud', 'net', None]` includes `None`, which is not a valid value for POST/PUT and is rejected by CredentialTypeSerializer.validate(), contradicting the PR's goal of accurately documenting valid values.", "category": "correctness", "verdict": "supported", "priority": "P1", ... | null |
ansible__awx__16271 | ansible/awx | 16,271 | defect | 707f2fa5da100ddf9681ab940240588dc4372dc5 | c9d69bde702ed6e87443ca9caf1b752548ca464d | AAP-64432 Fix wrong field rename for github app | * Multiple credentialtype's have the same kind and kind values look like: cloud, network, machine, etc.
* namespace is the field that we want to rename
Jira: https://issues.redhat.com/browse/AAP-64432
##### SUMMARY
<!--- Describe the change, including rationale and design decisions -->
<!---
If you are fixi... | diff --git a/awx/main/migrations/0201_create_managed_creds.py b/awx/main/migrations/0201_create_managed_creds.py
index 399a13cbd543..32cb24efd3ff 100644
--- a/awx/main/migrations/0201_create_managed_creds.py
+++ b/awx/main/migrations/0201_create_managed_creds.py
@@ -21,6 +21,6 @@ class Migration(migrations.Migration):
... | 4 | 3 | 1 | [{"id": "G0", "claim": "Assertion 1 filters on kind='github_app' although the record is created with kind='external' and namespace='github_app', so the assertion is vacuously true and should filter on namespace='github_app' to actually verify the migration renamed the namespace.", "category": "testing", "verdict": "sup... | null |
ansible__awx__16281 | ansible/awx | 16,281 | defect | 9700fb01f2a82455385776d789e9450ef08bc26e | fccbd08962d4f4e90846d0411624706b1e929d19 | [Devel][AAP-65384] Restoration of Token Authentication for AWX CLI | [AAP-65384](https://issues.redhat.com/browse/AAP-65384)
##### SUMMARY
Version 4.6.21 broke token authentication for production customers by accidentally removing the --conf.token argument and token authentication logic during the [AAP-46830](https://issues.redhat.com/browse/AAP-46830) fix.
This hotfix restores ful... | diff --git a/awxkit/awxkit/api/client.py b/awxkit/awxkit/api/client.py
index 5d5726f339eb..fdf54ee76995 100644
--- a/awxkit/awxkit/api/client.py
+++ b/awxkit/awxkit/api/client.py
@@ -12,6 +12,15 @@ class ConnectionException(exc.Common):
pass
+class TokenAuth(requests.auth.AuthBase):
+ def __init__(self, tok... | 1 | 1 | 0 | [{"id": "G0", "claim": "The TokenAuth class is not used anywhere in the codebase (Connection uses a basic-auth tuple instead and nothing instantiates or references it), so it should be removed to reduce technical debt.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
ansible__awx__16289 | ansible/awx | 16,289 | defect | 08f1507f70e37c749a0e506624b1ef41cc8bce1d | d2e51c4124d05f718cb5a37343382265c86b5419 | do not add optional survey fields with empty strings that are not bac… | ##### SUMMARY
When survey fields are optional and not filled out and not backed by a variable in extra_vars, do not inlcude them at all for the job launch.
<!---
If you are fixing an existing issue, please include "related #nnn" in your
commit message and your description; but you should still explain what
the... | diff --git a/awx/main/models/mixins.py b/awx/main/models/mixins.py
index ea1a739c8aa0..fcd4f9a33455 100644
--- a/awx/main/models/mixins.py
+++ b/awx/main/models/mixins.py
@@ -188,6 +188,10 @@ def _update_unified_job_kwargs(self, create_kwargs, kwargs):
runtime_extra_vars.pop(variable_key)
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The comment added in _update_unified_job_kwargs contains the typo 'nor' which should read 'not'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
ansible__awx__16293 | ansible/awx | 16,293 | defect | aeba4a1a3f30286b4ab9ec12eefa9a55963c352c | e6a774461eff5672726be4ff25c6b0c6c70e5d6d | [Devel] Removal of Token Auth From Devel | ##### SUMMARY
Token based authentication was mistakenly added in devel by https://github.com/ansible/awx/pull/16281
As it is no longer supported, this PR removes it.
<!---
If you are fixing an existing issue, please include "related #nnn" in your
commit message and your description; but you should still explain ... | diff --git a/awxkit/awxkit/api/client.py b/awxkit/awxkit/api/client.py
index 1e901136fd9d..c650281d10a6 100644
--- a/awxkit/awxkit/api/client.py
+++ b/awxkit/awxkit/api/client.py
@@ -12,15 +12,6 @@ class ConnectionException(exc.Common):
pass
-class TokenAuth(requests.auth.AuthBase):
- def __init__(self, tok... | 2 | 1 | 0 | [{"id": "G0", "claim": "Connection.login() should take an explicit next=None parameter instead of **kwargs, since the kwargs are only ever consumed for the single key 'next'.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The token-auth removal should ... | null |
ansible__awx__16296 | ansible/awx | 16,296 | defect | aeba4a1a3f30286b4ab9ec12eefa9a55963c352c | 603f259c7e99cefc3785534208ac3e67e35b4801 | AAP-62693 Integrate workload identity client to request JWTs | Supersedes #12277
##### SUMMARY
This PR adds a function to jobs.py that will call the WorkloadIdentityClient defined in DAB lib module that other modules will call to request JWTs for a given job.
There's no need to trigger it at job launch because the responsibility of doing this is encapsulated in this PR: #1... | diff --git a/awx/main/tasks/jobs.py b/awx/main/tasks/jobs.py
index 74aab14c85ed..1e76ed2891b1 100644
--- a/awx/main/tasks/jobs.py
+++ b/awx/main/tasks/jobs.py
@@ -96,6 +96,10 @@
# Workload Identity
from ansible_base.lib.workload_identity.controller import AutomationControllerJobScope
+from ansible_base.resource_reg... | 3 | 1 | 1 | [{"id": "G0", "claim": "retrieve_workload_identity_jwt has two silent failure paths: if get_workload_identity_client() returns None the call to .request_workload_jwt() raises an uninformative AttributeError, and network exceptions propagate with no log trace at this layer, so the docstring should document the exception... | null |
ansible__awx__16300 | ansible/awx | 16,300 | defect | 2a35ce552480e3835c6362748a5b141cac40e615 | 7852d73762e9fcf695f82c1d045aa4b81997771d | Improve transactional integrity for starting controller jobs in dispatcherd | ## Summary
- Remove `SELECT FOR UPDATE` / `transaction.atomic()` from `BaseTask.transition_status` which was causing increased database transaction rollbacks observed in perfscale testing
- Move status transition into `dispatch_waiting_jobs`, using a conditional `filter().update()` that is atomic at the DB level withou... | diff --git a/awx/main/tasks/jobs.py b/awx/main/tasks/jobs.py
index ce750489fad8..3041393c6256 100644
--- a/awx/main/tasks/jobs.py
+++ b/awx/main/tasks/jobs.py
@@ -17,7 +17,6 @@
# Django
from django.conf import settings
-from django.db import transaction
# Shared code for the AWX platform
from awx_plugins.interf... | 9 | 4 | 4 | [{"id": "G0", "claim": "Because start_args is deferred by .only() and the waiting→running update clears it in the database before get_start_kwargs() reads it, dispatched tasks lose the launch-time secrets/options stored in start_args.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "intr... | null |
ansible__awx__16303 | ansible/awx | 16,303 | defect | 0995f7c5fe9c932e36c157556924fb109c029599 | b5bd5dff7864c66bc866f1c1032da9458635722c | [AAP-63314] P4.4: Controller - Pass Workload TTL to Gateway | # [AAP-63314] P4.4: Controller - Pass Workload TTL to Gateway
**Depends on:** [django-ansible-base PR #954](https://github.com/ansible/django-ansible-base/pull/954) (adds `workload_ttl_seconds` to `request_workload_jwt()`).
## Description
**What?** Passes `job.timeout` as `workload_ttl_seconds` when Controller... | diff --git a/AAP-63314.pr.md b/AAP-63314.pr.md
new file mode 100644
index 000000000000..19f6e7f58731
--- /dev/null
+++ b/AAP-63314.pr.md
@@ -0,0 +1,73 @@
+# [AAP-63314] P4.4: Controller - Pass Workload TTL to Gateway
+
+## SUMMARY
+
+Passes `job.timeout` as `workload_ttl_seconds` when Controller requests a workload ide... | 13 | 13 | 12 | [{"id": "G0", "claim": "The JWT TTL is derived from instance.timeout directly instead of the effective runtime timeout from get_instance_timeout(), so the TTL can mismatch the job's real lifetime.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The t... | null |
ansible__awx__16307 | ansible/awx | 16,307 | defect | a21f9fbdb8981459dd7902f3018c28a5038c3911 | b76a203aedd44c33633bbf2e5881cf1f7881168e | fix: awxkit help flags for detailed & general help | ##### SUMMARY
<!--- Describe the change, including rationale and design decisions -->
This PR resolves an issue where awx <resource> <action> -h/--help would show brief, unhelpful help messages instead of the detailed help that appears when required arguments are missing. ... | diff --git a/awxkit/awxkit/cli/client.py b/awxkit/awxkit/cli/client.py
index ff1328fbd345..252c87dccec8 100755
--- a/awxkit/awxkit/cli/client.py
+++ b/awxkit/awxkit/cli/client.py
@@ -80,6 +80,28 @@ def get_config(self, key):
def help(self):
return '--help' in self.argv or '-h' in self.argv
+ def _get... | 5 | 2 | 1 | [{"id": "G0", "claim": "The try/except in parse_action catches SystemExit only to immediately re-raise it and discards the first parse result before a second parse_known_args call, so the block is a no-op doing duplicate work and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P... | null |
ansible__awx__16318 | ansible/awx | 16,318 | defect | 0f2692b5049107f299b9257341a364b99947ef19 | d2686ddfbb7ca7cd4e8ae8db6d8a23f168ad7ac6 | AAP-65054 Fix bugs where concurrent jobs would clear facts of unrelated hosts | ##### SUMMARY
Describing key fixes:
- in `finish_fact_cache`, we grabbed hosts by `name` only, yet, names can repeat in multiple inventories. Very surprising this wasn't caught before.
- Again, in `finish_fact_cache`, if multiple conditions are true, we incorrectly conclude that "meta: clear_facts" was ran, whic... | diff --git a/awx/main/tasks/facts.py b/awx/main/tasks/facts.py
index c9e7bbfa547b..b80b9eb31b7e 100644
--- a/awx/main/tasks/facts.py
+++ b/awx/main/tasks/facts.py
@@ -74,7 +74,7 @@ def start_fact_cache(hosts, artifacts_dir, timeout=None, inventory_id=None, log_
msg='Inventory {inventory_id} host facts: updated {up... | 7 | 5 | 3 | [{"id": "G0", "claim": "The new host lookup in finish_fact_cache (filtering by name and inventory_id) may not work for constructed inventory jobs, whose real hosts live in the input inventories rather than the constructed inventory.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introd... | null |
ansible__awx__16325 | ansible/awx | 16,325 | defect | 57f9eb093a2e7181d614813d5e625aa459e2f07a | b23064c426ad1de64b01de3a6884cd7dbb253873 | Fix job cancel chain bugs | ##### SUMMARY
I have been hitting a mysterious bug in the collection tests (running here) specifically. However, I still believed it to be very very legitimate.
Several of these tests seem to have confirmed the issue.
I believe I saw it manually with bulk jobs, cc @kdelee
- go to the /bulk_launch/ endpoint
... | diff --git a/awx/main/models/mixins.py b/awx/main/models/mixins.py
index 184b4c7899ec..8613ca49fbf1 100644
--- a/awx/main/models/mixins.py
+++ b/awx/main/models/mixins.py
@@ -450,9 +450,11 @@ class Meta:
abstract = True
def get_jobs_fail_chain(self):
+ chain = list(self.dependent_jobs.all())
... | 5 | 5 | 2 | [{"id": "G0", "claim": "Because get_jobs_fail_chain() now includes dependent_jobs, canceling one job cancels the shared ProjectUpdate dependency, and process_job_dep_failures() treating 'canceled' as terminal permanently fails all other unrelated jobs sharing that dependency.", "category": "correctness", "verdict": "su... | null |
ansible__awx__16348 | ansible/awx | 16,348 | defect | 7e29f9e3f27e4a4cdf7b875c0e6a47fb1dc3906c | 7d766c7b06ff9473f4a915c79cd1866fd477c8c9 | Add feature flag for OIDC workload identity credential types | ##### SUMMARY
Implements FEATURE_OIDC_WORKLOAD_IDENTITY_ENABLED feature flag to gate HashiCorp Vault OIDC credential types (HashiCorp Vault Secret Lookup and HashiCorp Vault Signed SSH) as a Technology Preview feature.
When disabled (default):
- OIDC credential types are not loaded into the plugin registry at appl... | diff --git a/awx/api/serializers.py b/awx/api/serializers.py
index 2a8e94d83392..9119c8936f8a 100644
--- a/awx/api/serializers.py
+++ b/awx/api/serializers.py
@@ -46,9 +46,12 @@
from ansible_base.rbac.models import RoleEvaluation, ObjectRole
from ansible_base.rbac import permission_registry
+# Feature flags
+from f... | 7 | 7 | 4 | [{"id": "G0", "claim": "The field-level validate_source_credential() only runs when source_credential is present in the payload, so a PATCH that omits the field bypasses the OIDC feature-flag gate entirely; move the check to object-level validate() so it runs on all updates.", "category": "correctness", "verdict": "sup... | null |
ansible__awx__16370 | ansible/awx | 16,370 | defect | 7c75788b0aec374cecb9472b0f6585a10803042b | c82bc733bfd454f8892c14b6aaaa06f45969ebd7 | feat: support for oidc credential /test endpoint | ##### SUMMARY
<!--- Describe the change, including rationale and design decisions -->
<!---
If you are fixing an existing issue, please include "related #nnn" in your
commit message and your description; but you should still explain what
the change does. Also please make sure that if this PR has an attached JIRA... | diff --git a/awx/api/serializers.py b/awx/api/serializers.py
index 2a8e94d83392..e849f3003bc9 100644
--- a/awx/api/serializers.py
+++ b/awx/api/serializers.py
@@ -2932,6 +2932,27 @@ def to_representation(self, data):
field['label'] = _(field['label'])
if 'help_text' in field:
... | 14 | 14 | 9 | [{"id": "G0", "claim": "sent_jwt_payload should be nested under a generic 'details' key in the test response, as agreed around the PoC, instead of being returned top-level.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "A failing JobTemplate lookup (miss... | null |
ansible__awx__16381 | ansible/awx | 16,381 | defect | e80ce43f87b18e2d9257d3e3f419d1c6f6ce528f | 1d5a3850a2899d42eaad333e4fd55d8c6eee8b43 | AAP-12516 [option 2] Handle nested workflow artifacts via root node `ancestor_artifacts` | ##### SUMMARY
I didn't love
https://github.com/ansible/awx/pull/16379
because it changed an existing story in an unintended way.
This adds an additional test, and preserves the behavior in that prior case.
This is also more philosophically satisfying. As you are processing a root node, you can not easily g... | diff --git a/awx/main/models/workflow.py b/awx/main/models/workflow.py
index a3083b0bb16b..ae9947d0bee0 100644
--- a/awx/main/models/workflow.py
+++ b/awx/main/models/workflow.py
@@ -366,11 +366,16 @@ def get_job_kwargs(self):
data['survey_passwords'] = password_dict
# process extra_vars
... | 3 | 1 | 1 | [{"id": "G0", "claim": "get_job_kwargs never reads a root node's own pre-seeded ancestor_artifacts (aa_dict is built only from parent nodes), so root nodes of a child workflow lose access to outer workflow artifacts for their own job execution — a regression from the prior behavior where outer artifacts reached all inn... | null |
ansible__awx__16389 | ansible/awx | 16,389 | defect | b83019bde649c8dec68ceacd4e1b286a7da1a275 | 3d0e5c3ce5d4c5d844978334599f9f9dcf792957 | [Devel] Config Endpoint Optimization | JIRA: https://redhat.atlassian.net/browse/AAP-67980
##### SUMMARY
Implemented query optimization in Config API view
<!---
If you are fixing an existing issue, please include "related #nnn" in your
commit message and your description; but you should still explain what
the change does. Also please make sure t... | diff --git a/awx/api/views/root.py b/awx/api/views/root.py
index 541295147370..2375be55a9a8 100644
--- a/awx/api/views/root.py
+++ b/awx/api/views/root.py
@@ -16,6 +16,7 @@
from django.template.loader import render_to_string
from django.utils.translation import gettext_lazy as _
from django.urls import reverse as dj... | 5 | 5 | 3 | [{"id": "G0", "claim": "The RoleAncestorEntry query added to ApiV2ConfigView.get will raise on any non-superuser, non-system-auditor request (a RuntimeError from AncestorManager when the new RBAC system is active, and a FieldError from filtering on content_type instead of content_type_id), so GET /api/v2/config/ will r... | null |
ansible__awx__16390 | ansible/awx | 16,390 | defect | e80ce43f87b18e2d9257d3e3f419d1c6f6ce528f | ab8d63a7a45ff62ebbd196d442490d7eee81185a | Fix OIDC workload identity for inventory sync | #### Summary
Proposed alternative to ansible/awx#16380
what this does:
1. `populate_workload_identity_tokens()` can accept an additional list of credentials to add jwt token info to
2. RunInventoryUpdate overrides `populate_workload_identity_tokens()`, and in this method loads the cloud credential and then cal... | diff --git a/awx/main/tasks/jobs.py b/awx/main/tasks/jobs.py
index e6f6a893f1f4..ab50b73af76f 100644
--- a/awx/main/tasks/jobs.py
+++ b/awx/main/tasks/jobs.py
@@ -230,16 +230,19 @@ def _credentials(self):
# Convert to list to prevent re-evaluation of QuerySet
return list(credentials_list)
- def p... | 1 | 1 | 1 | [{"id": "G0", "claim": "RunInventoryUpdate.populate_workload_identity_tokens should take the additional_credentials parameter so the override is substitutable with the base-class method, as suggested in the comment.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
ansible__awx__16426 | ansible/awx | 16,426 | defect | 3fd3b741b65a77c9372d94523ae9ad666de2c7f7 | eb29d5b59fcc12fd6bc4fce58f7df0579e021fa5 | [devel backport] AAP-41742: Fix workflow node update failing when JT has unprompted labels | ## Summary
Backport of ansible/tower#7423 to AWX `devel`.
- Fixes a bug where updating `extra_data` on a workflow job template node via PATCH fails with `{"labels":["Field is not configured to prompt on launch."]}` when the node has labels associated but the underlying Job Template has `ask_labels_on_launch=False`
... | diff --git a/awx/api/serializers.py b/awx/api/serializers.py
index 453c6716e74f..e5cf084b714d 100644
--- a/awx/api/serializers.py
+++ b/awx/api/serializers.py
@@ -4135,8 +4135,24 @@ def validate(self, attrs):
# Build unsaved version of this config, use it to detect prompts errors
mock_obj = self._bu... | 3 | 3 | 3 | [{"id": "G0", "claim": "requested_prompt_fields must be computed from the attrs keys captured before _build_mock_obj() pops pseudo-fields (limit, scm_branch, job_tags, skip_tags, etc.), otherwise those requested prompts are filtered out of prompts_to_validate and bypass _accept_or_ignore_job_kwargs ask-on-launch checks... | null |
ansible__molecule__1436 | ansible/molecule | 1,436 | defect | dcffa81884139f463f2614571130bdf720729867 | b12752ef0efb2044e080dcb176cc7b94a9348665 | Expand LXD driver functionality | As the title states I expanded the LXD driver. The default Docker driver doesn't cut it for me because of the missing systemd. Took a try with [gdraheim/docker-systemctl-replacement](https://github.com/gdraheim/docker-systemctl-replacement) but it comes short sometimes, not suitable for stable testing.
## What has ... | diff --git a/molecule/command/init/template.py b/molecule/command/init/template.py
index b217321f58..a9bb77a761 100644
--- a/molecule/command/init/template.py
+++ b/molecule/command/init/template.py
@@ -35,7 +35,7 @@ class Template(base.Base):
"""
.. program:: molecule init template --url https://example.com/... | 3 | 1 | 1 | [{"id": "G0", "claim": "The cookiecutter LXD prepare.yml that helped users bootstrap the default LXD image (which did not ship Python) should not have been removed.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new LXD platform options added to molecu... | null |
ansible__molecule__1533 | ansible/molecule | 1,533 | defect | 0272bc0560df4f76e1c00617ca0e0dd8b5a46b58 | 92dd0f5603363646fa625b990226a7628eda797e | Respect PY_COLORS variable | Allow PY_COLORS to control coloring support.
Allow user to define PY_COLORS=1 or 0 to force use or not use of
ANSI coloring sequences.
Use of this option overrided default behavior of detecting TTY status
of stdout and allows users to control its use CI systems which
may support ANSI but where there is no TTY.... | diff --git a/molecule/__main__.py b/molecule/__main__.py
new file mode 100644
index 0000000000..e1cd5120e9
--- /dev/null
+++ b/molecule/__main__.py
@@ -0,0 +1,24 @@
+# Copyright (c) 2015-2018 Cisco Systems, Inc.
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software an... | 6 | 4 | 1 | [{"id": "G0", "claim": "There should be a way to test this, specifically unit tests against colorama_init/should_do_markup using monkeypatch to mock the environment values and file.isatty.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new molecule/... | null |
ansible__molecule__1775 | ansible/molecule | 1,775 | defect | cb53404db7b4920d05c311a6d5af43ec4dfd02fa | 902997f97b420610e79167f28965b2679d619d7d | Disallow non-unique instance names for platforms | #### PR Type
- Bugfix Pull Request
I ran into an issue where I named my instances the same (by accident)
and then when I ran `molecule create` I had 2 when I expected 3 containers
created. I realised we are missing validation for this.
References:
* http://docs.python-cerberus.org/en/stable/customize.html#c... | diff --git a/molecule/model/schema_v2.py b/molecule/model/schema_v2.py
index d0fd1e35bf..574edb0804 100644
--- a/molecule/model/schema_v2.py
+++ b/molecule/model/schema_v2.py
@@ -18,6 +18,7 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
+import collections
im... | 2 | 2 | 0 | [{"id": "G0", "claim": "Since the data is not processed twice, _validate_unique should use a generator expression instead of a list comprehension to avoid creating an intermediate list.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "test_platforms_u... | null |
ansible__molecule__1920 | ansible/molecule | 1,920 | defect | 4562d6042fcd43a948b23edc289f28eb261e07d3 | 2827b3599688260939c50242f9accab6cc0d5b1c | Added docker-machine support | Added docker-machine support. Hopefully I haven't messed up again with commits and with all the other things (sorry for so many pull requests).
molecule can use the env variables to spin up docker containers on docker-machine environment. It is completely transparent for the molecule (using variables from env or set... | diff --git a/molecule/driver/docker.py b/molecule/driver/docker.py
index 6c85c61b2d..23e0091973 100644
--- a/molecule/driver/docker.py
+++ b/molecule/driver/docker.py
@@ -86,6 +86,10 @@ class Docker(base.Base):
network_mode: host
purge_networks: true
docker_host: tcp://localhost:1... | 7 | 7 | 6 | [{"id": "G0", "claim": "Wrap the Jinja operators with spaces in the cacert_path expression in molecule/provisioner/ansible/playbooks/docker/create.yml.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "tls_verify should be a boolean rather than an ... | null |
ansible__molecule__1972 | ansible/molecule | 1,972 | defect | 869a7e005ba78062a15e7ddea6561a7477f383bb | c65a707a31d3544c510ca3676827b36faf5e95df | Pass etc_hosts through to docker_container module if set in molecule config | Continue #1571
Different from the origin one, the etc_hosts is string type. See [here](https://stackoverflow.com/questions/39224679/ansible-docker-container-etc-hosts-with-variable-key)
For example,
```
platforms:
- name: xenial
image: ubuntu:xenial
etc_hosts: >
{
"{{ domain_1 }}": "{... | diff --git a/molecule/driver/docker.py b/molecule/driver/docker.py
index 6c85c61b2d..8d5fa4d0ee 100644
--- a/molecule/driver/docker.py
+++ b/molecule/driver/docker.py
@@ -80,6 +80,7 @@ class Docker(base.Base):
- nofile:262144:262144
dns_servers:
- 8.8.8.8
+ etc_host... | 3 | 1 | 1 | [{"id": "G0", "claim": "etc_hosts should be a dictionary rather than a string, because a dict is more convenient for the user.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The added example could show two host/ip values instead of one.", "category": "d... | null |
ansible__molecule__2098 | ansible/molecule | 2,098 | defect | 3f705a19f2f2d185650aee7c013c26b8d0d83f19 | 16b7551e4266b51f71226d9024c5149c5ded492b | Added podman driver for molecule | #### PR Type
- Feature Pull Request
Fixes #1572
POC of running molecule with podman driver. It may require a patch in ansible which fixes mount problem for rootless podman containers: https://github.com/ansible/ansible/pull/57741 (see issue https://github.com/ansible/ansible/issues/57740)
still requires clean ... | diff --git a/molecule/config.py b/molecule/config.py
index e913f60b88..baf0fd4653 100644
--- a/molecule/config.py
+++ b/molecule/config.py
@@ -43,6 +43,7 @@
from molecule.driver import lxc
from molecule.driver import lxd
from molecule.driver import openstack
+from molecule.driver import podman
from molecule.driver ... | 1 | 1 | 0 | [{"id": "G0", "claim": "Replace the first (copyright) line of the new molecule/driver/podman.py with the Red Hat one instead of the Cisco one.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
ansible__molecule__2258 | ansible/molecule | 2,258 | defect | 6b975c1a95039555974a65cc0a3074affeeb3e1e | 1577cb65b45f4b6cbae67a9ee388b9b1f41ce951 | fix(provisioner): Expand ANSIBLE_ variables with Ansible default locations | #### PR Type
- Bugfix Pull Request
#### Changes
* Expands the ANSIBLE_ environment variables with the Ansible default locations.
```console
$ ansible-config dump
DEFAULT_FILTER_PLUGIN_PATH(default) = ['/c/Users/wilmaro/.ansible/plugins/filter', '/usr/share/ansible/plugins/filter']
DEFAULT_MODULE_PATH(d... | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 7ba2d135a4..afe8d69fa1 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -20,6 +20,10 @@ Unreleased
* Update testinfra to 3.0.6 so we can use ansible verbosity
* Add ``sysctls`` option to the Docker driver.
* dependency now runs before lint on default test and lint se... | 4 | 2 | 1 | [{"id": "G0", "claim": "The renames of the internal plugin directories (library -> modules and filters -> filter) may be breaking changes for end-users.", "category": "compatibility", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The changelog should include a more clarifying no... | null |
ansible__molecule__2281 | ansible/molecule | 2,281 | defect | 3b8c8d03ad55f19222999dc69e36086f0fcb4583 | 63414d916a9c7827c340baa12218fc8618b73416 | refactoring: driver listing | - easy access to plugins (drivers or verifiers)
- enables mypy for api methods
- standardize entry point naming `molecule.driver` is prefered to molecule_driver. | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 8f96c531f6..89495c6587 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -21,6 +21,7 @@ repos:
- id: flake8
additional_dependencies:
- flake8-black
+ - flake8-mypy
language_version: pyth... | 2 | 1 | 0 | [{"id": "G0", "claim": "The new test should be named `test_api_drivers_as_attributes` instead of the longer `test_api_molecule_drivers_as_attributes`.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new `UserListMap` class should be renamed t... | null |
ansible__molecule__2370 | ansible/molecule | 2,370 | defect | 803e12d36de221ca0da16a58ae66a03158344826 | 6b72bed45ace6b04c22ec0c9231d62fce499d517 | Added instance_profile_name to ec2 driver | - Added instance_profile_name to EC2 driver (optional and backward compatible)
## How to use it
- Create role using EC2 driver: `molecule init role -r test-ec2 -d ec2`
- Add `instance_profile_name` to `platforms` on molecule.yml | diff --git a/molecule/cookiecutter/scenario/driver/ec2/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/create.yml b/molecule/cookiecutter/scenario/driver/ec2/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/create.yml
index 1efca1ee5c..4acc28d554 100644
--- a/molecule/cookiecutter/s... | 2 | 1 | 1 | [{"id": "G0", "claim": "The newly added instance_profile_name option needs a test.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "instance_profile_name should also be added to the molecule schema, as other PRs adding new options did.", "category": "desi... | null |
ansible__molecule__2609 | ansible/molecule | 2,609 | defect | 5e08275185b10e45c06f4e0820f2b1189507196e | 76115ee6eba01714790d9b414250026d2bc0da1c | Add support for collections as dependencies | Enhance the ansible_galaxy dependency to understand collections options
in addition to roles directly.
#### PR Type
- Bugfix Pull Request | diff --git a/molecule/dependency/ansible_galaxy/__init__.py b/molecule/dependency/ansible_galaxy/__init__.py
new file mode 100644
index 0000000000..ce28c7062c
--- /dev/null
+++ b/molecule/dependency/ansible_galaxy/__init__.py
@@ -0,0 +1,95 @@
+"""Base definition for Ansible Galaxy dependencies."""
+from molecule import... | 3 | 2 | 0 | [{"id": "G0", "claim": "The reviewer asks why ansible_galaxy.py was transformed into a module (package), noting the very large number of changes exceeds his impression that the pull request was about enabling collections support in the already existing galaxy module.", "category": "design", "verdict": "opposed", "prior... | null |
ansible__molecule__2978 | ansible/molecule | 2,978 | defect | a43830087c60f540558969f39cb98f70956ed295 | 7153ebafcea112df6ef4aa7746d0a59ae42cc3d2 | Removed custom logger | Molecule no longer uses a custom logger class and we make use of the standard python logger class.
This change replaces `logger.success()` and `logger.out()` with `logger.info()` calls.
| diff --git a/src/molecule/command/idempotence.py b/src/molecule/command/idempotence.py
index 3fbff5ecf0..43cab4d476 100644
--- a/src/molecule/command/idempotence.py
+++ b/src/molecule/command/idempotence.py
@@ -78,12 +78,12 @@ def execute(self):
msg = "Instances not converged. Please converge instances fi... | 3 | 3 | 0 | [{"id": "G0", "claim": "The test_validate test should drop the unused patched_logger_info fixture, since neither the fixture nor LOG.info is used on the code path under test.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Bake's dict still passes stderr... | null |
ansible__molecule__3137 | ansible/molecule | 3,137 | defect | 7b297aedfdf3c000bcce47a773a617d9a44682eb | 91cbed6eab940932a59377313f78464abcd94c27 | Change ANSIBLE_LIBRARY PATH processing | When the environment variable ANSIBLE_LIBRARY is used, molecule is
currently extending the path with the contents of the found variable,
however, this will cause problems as the system driven path will
conflict with a user defined path. To correct this issue the path
processing will now insert the user provided var... | diff --git a/src/molecule/provisioner/ansible.py b/src/molecule/provisioner/ansible.py
index 99a7173aa9..d33caf67f1 100644
--- a/src/molecule/provisioner/ansible.py
+++ b/src/molecule/provisioner/ansible.py
@@ -940,7 +940,7 @@ def _get_modules_directories(self):
)
if os.environ.get("ANSIBLE_LIBRARY"... | 1 | 1 | 1 | [{"id": "G0", "claim": "The ANSIBLE_LIBRARY handling should be moved up to the start of _get_modules_directories, initialising paths there and extending them with the mapped environment paths (as in the reviewer's sketch) before the plugin modules directory is appended, rather than inserting into the list at the bottom... | null |
ansible__molecule__3180 | ansible/molecule | 3,180 | defect | 4fe7e046b8d24dda91c783e7477331ea66b7dbc1 | c522226edfa0957b7f5e5db87f9d246d64eba3cd | Use portable cache from ansible-compat | This simplifies use of caching across multiple versions of Python.
Implementation is inspired from the the approach taken by https://github.com/apache/airflow/ project.
Related: https://github.com/python/mypy/issues/1362 | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index f911387278..5802a97e35 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -55,6 +55,7 @@ repos:
pass_filenames: false
additional_dependencies:
- ansible-lint>=5.1.2
+ - cached_property~=1.5;pyth... | 3 | 1 | 1 | [{"id": "G0", "claim": "The @cache decorator on verifiers() in src/molecule/api.py is commented out instead of applied, leaving the function without the caching the PR is adding.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The added requirement l... | null |
ansible__molecule__3214 | ansible/molecule | 3,214 | defect | b351ea07fe70f4bb9e01212b86a461b6ac05f4d1 | c24f412a275e808d8cfc107b94c497ec99dc892c | Capture sanity check warnings and display them | Captures runtime warnings raise by driver.sanity_check() and
display them at the end in case of failure.
Related: https://github.com/ansible-community/molecule-podman/pull/76
| diff --git a/src/molecule/provisioner/ansible_playbook.py b/src/molecule/provisioner/ansible_playbook.py
index 9d6cd17c06..47d5b25616 100644
--- a/src/molecule/provisioner/ansible_playbook.py
+++ b/src/molecule/provisioner/ansible_playbook.py
@@ -20,6 +20,7 @@
"""Ansible-Playbook Provisioner Module."""
import loggi... | 5 | 3 | 0 | [{"id": "G0", "claim": "Delete the commented-out debug leftovers (# breakpoint(), # warnings.simplefilter(\"ignore\"), # print(warns)) from ansible_playbook.execute(), via empty suggestion blocks.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "T... | null |
ansible__molecule__3407 | ansible/molecule | 3,407 | defect | a8d96aa86199e73347013aba7752d5dd73f68ed3 | b84b7932b215ddac56b6436b1e49043f7afa3358 | Add deprecation warning for the `mol` command | The `mol` command can be replaced with a shell alias for those users that need
it. Output a deprecation warning when the `mol` command is run that informs the
user that the command will be removed in a future release of Molecule.
Addresses issue #3406 | diff --git a/setup.cfg b/setup.cfg
index b95c76d252..925aa30c13 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -117,7 +117,7 @@ lint =
[options.entry_points]
console_scripts =
molecule = molecule.__main__:main
- mol = molecule.__main__:main
+ mol = molecule.__main__:mol_deprecation_notice
molecule.driver =
... | 2 | 1 | 1 | [{"id": "G0", "claim": "The deprecation notice should use the standard warnings module, since there is already support for deprecating things, instead of printing the notice.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The warning category may need to... | null |
ansible__molecule__3409 | ansible/molecule | 3,409 | defect | 8185aafa0f3d5b44ff3044a188a8be8847774464 | b4b33527674077e05d75924813882427a72b563b | Fix prepare_environment call for role installs | Fixes local role installations with `ansible-compat` version 1.0.0 as discussed in issue #3404. | diff --git a/src/molecule/command/base.py b/src/molecule/command/base.py
index 6c036289a2..e2ac5095de 100644
--- a/src/molecule/command/base.py
+++ b/src/molecule/command/base.py
@@ -108,7 +108,7 @@ def execute_cmdline_scenarios(scenario_name, args, command_args, ansible_args=()
if scenario.config.config["pr... | 2 | 1 | 1 | [{"id": "G0", "claim": "The fix has a serious problem: it does not include a test, so a similar regression would not be seen again.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer cannot see a use case for hardcoding install_local=True and s... | null |
ansible__molecule__3416 | ansible/molecule | 3,416 | defect | 4f8fd055ab183a1928b3460ccb39e94ac6162ebf | 07044c26f234583447140e9d6568f99dce89729f | Add support for MOLECULE_PLATFORM_NAME | Fix #3415
There are no environment variable `MOLECULE_PLATFORM_NAME` set by default.
How to use
1. Test one image
Assume platform name is `ubuntu-18.04`
```bash
molecule test --platform=ubuntu-18.04
```
or
```bash
export MOLECULE_PLATFORM_NAME=ubuntu-18.04
molecule test
```
2. ... | diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml
index e0a3be2e35..5725f7cfc1 100644
--- a/.github/workflows/tox.yml
+++ b/.github/workflows/tox.yml
@@ -27,31 +27,31 @@ jobs:
- tox_env: docs
python-version: 3.9
- tox_env: py36
- PREFIX: PYTEST_REQPASS=448
... | 9 | 6 | 2 | [{"id": "G0", "claim": "The new --platform-name help text interpolates the MOLECULE_PLATFORM_NAME env value and will render as '...(<value> means all)', which is probably not what's intended; it should say something like 'XXX by default' instead.", "category": "documentation", "verdict": "supported", "priority": "P1", ... | null |
ansible__molecule__3429 | ansible/molecule | 3,429 | defect | 4f8fd055ab183a1928b3460ccb39e94ac6162ebf | 04b64f30565220a1e6ba5d1e7cf48a997a7a75c0 | Added state-file driver validation | It seems the driver pulled from existing state-file(s) was not yet validated against the available drivers.
This was problematic for me as I previously used 'vagrant' and changed it to use 'docker'.
That simple check (as already used in the molecule.yml schema-validation) should fix this behaviour.
I pulled my h... | diff --git a/src/molecule/config.py b/src/molecule/config.py
index cdb1448e8b..25d4c3f612 100644
--- a/src/molecule/config.py
+++ b/src/molecule/config.py
@@ -230,7 +230,7 @@ def _get_driver_name(self):
driver_from_state_file = self.state.driver
driver_from_cli = self.command_args.get("driver_name")
... | 3 | 1 | 1 | [{"id": "G0", "claim": "The state-file driver availability check should be moved to the end of the function and fail the Molecule run if the selected driver is missing, instead of silently falling back.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": ... | null |
ansible__molecule__3529 | ansible/molecule | 3,529 | defect | d62b88e203d55480f2a262dbbe287b59ddea3256 | 5bd4851ee68da5e4e3960b0968a1cddc2e4de209 | Add more tests related to Ansible runtime path modifications | See: https://github.com/ansible-community/molecule/pull/3516 | diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml
index 76b0090624..4f36587e0f 100644
--- a/.github/workflows/tox.yml
+++ b/.github/workflows/tox.yml
@@ -27,23 +27,23 @@ jobs:
- tox_env: docs
python-version: 3.9
- tox_env: py38
- PREFIX: PYTEST_REQPASS=450
... | 3 | 3 | 2 | [{"id": "G0", "claim": "The PR adds special merge handling only for ANSIBLE_ROLES_PATH and ANSIBLE_COLLECTIONS_PATH, and the reviewer asks why those are the only such variables and what about ANSIBLE_LIBRARY and other path-like env vars that may need the same merging.", "category": "correctness", "verdict": "supported"... | null |
ansible__molecule__3882 | ansible/molecule | 3,882 | defect | 9bc34d052c96d41d510d1b6d4315b5adf88f48f6 | cb96104ab919f85bfae47fb8a3d4d25164e81de6 | Add `implicit-str-concat` & `inconsistent-return-statements` check | The `implicit-str-concat` rule ensures that the string concatenation is done implicitly in an assignment statement using an explicit operator, such as `+` or other methods like string-formatting, etc. This can improve code readability and reduce the likelihood of introducing errors related to string concatenation.
T... | diff --git a/pyproject.toml b/pyproject.toml
index 03a029a5a2..7aa9385fca 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -86,9 +86,7 @@ disable = [
"dangerous-default-value",
"duplicate-code",
"fixme",
- "implicit-str-concat",
"import-outside-toplevel",
- "inconsistent-return-statements",
"invalid... | 1 | 1 | 0 | [{"id": "G0", "claim": "The two string literals concatenated in the 'Instances missing from the 'platform' section of molecule.yml.' message should be a single string rather than a concatenation.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
ansible__molecule__4135 | ansible/molecule | 4,135 | defect | 14dc0077dca91b1c388c866b8de49f9ff41e1003 | 98ce613a8c8ad38213d2fca16f4fa9a44343426d | Molecule uses ANSIBLE_FILTER_PLUGINS | if ANSIBLE_FILTER_PLUGINS set then molecule uses it instead of hardcoded paths. closes https://github.com/ansible/molecule/issues/3839 | diff --git a/src/molecule/provisioner/ansible.py b/src/molecule/provisioner/ansible.py
index 3a4e85261b..7cf355fb6f 100644
--- a/src/molecule/provisioner/ansible.py
+++ b/src/molecule/provisioner/ansible.py
@@ -507,6 +507,39 @@ def default_env(self):
list(map(util.abs_path, os.environ["ANSIBLE_ROLES_PA... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request needs a test covering the ANSIBLE_FILTER_PLUGINS handling so that a regression cannot slip in later.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
ansible__molecule__4340 | ansible/molecule | 4,340 | defect | 9026471e76aab96943fe9ed1f661d2928cdbe83a | 047083d24ee98716590bb544f73ac6fa9d8f5296 | Make molecule collection-aware | Fixes https://github.com/ansible/molecule/issues/4000
Two new Config properties named `collection` and `collection_path` will be populated if Molecule detects it is running inside a collection. | diff --git a/src/molecule/config.py b/src/molecule/config.py
index 5d587fbf7d..a629a109bf 100644
--- a/src/molecule/config.py
+++ b/src/molecule/config.py
@@ -26,7 +26,7 @@
import warnings
from pathlib import Path
-from typing import TYPE_CHECKING
+from typing import TYPE_CHECKING, cast
from uuid import uuid4
f... | 1 | 1 | 1 | [{"id": "G0", "claim": "When the detected galaxy.yml is missing name or namespace, molecule should fail fast and tell the user the file needs these values instead of silently returning None.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
ansible__molecule__4341 | ansible/molecule | 4,341 | defect | 2ab3c644210c3d16ca1b462bf3480e07e7d6d0ba | 3d16214cbbaa5bc8b55b43fb6392b8c5ebac1572 | Return absolute path without resolving symlinks | After the rewrite of `util.abs_path` to use `pathlib` instead of `os.path` (000d20060d6081ce73ac12bcacad8e66578faf74, c20dc081d697174d7e526953ff82d4c5e3254506) the function now resolves symlinks in the given path whereas it did not do before.
This breaks setups where the `molecule.yml` file in a scenario is a symlink.... | diff --git a/src/molecule/util.py b/src/molecule/util.py
index dbd934da74..b98706933c 100644
--- a/src/molecule/util.py
+++ b/src/molecule/util.py
@@ -402,7 +402,7 @@ def abs_path(path: str | Path | None) -> str | Path:
"""Return absolute path.
Args:
- path: File path to resolve absolute path from.
+... | 1 | 1 | 0 | [{"id": "G0", "claim": "The reintroduced `os.path.abspath` call should carry a `# noqa: PTH100` suppression so the linter (which flags that call in favor of pathlib) does not fail.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
ansible__molecule__4443 | ansible/molecule | 4,443 | defect | fd3fae0dfc23c70abca9b548a28be71097d2dcf6 | 47cffb582d88e3c9825bf0c3c05505c6f804ac81 | Add support for shared inventory between scenarios | Closes https://github.com/ansible/molecule/issues/4002 | diff --git a/pyproject.toml b/pyproject.toml
index fd6de18bd2..98e1f64cc6 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -340,6 +340,15 @@ fail-on = [
"useless-suppression"
]
+[tool.pyrefly]
+project_excludes = ["**/build*"]
+project_includes = ["src", "tests"]
+python_version = "3.10.0"
+replace_imports_wit... | 1 | 1 | 0 | [{"id": "G0", "claim": "The help text of the new --shared option should mention that inventory and state are shared between scenarios, not just the ephemeral directory.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
ansible__molecule__4483 | ansible/molecule | 4,483 | defect | 1f1084420c5f7fefae9d7a842910fd2a145e1407 | fd043c797d2ab94ed1fbf3fd6c18cd1ef19eff26 | feat: enhance logging with consistent scenario and step information | ## Enhanced Logging with Consistent Scenario and Step Information
### User-Facing Improvements
Enhanced Molecule's logging to provide consistent, structured messages that include scenario name and execution step information for better debugging and workflow visibility.
**New Consistent Format:**
```bash
INFO defa... | diff --git a/src/molecule/ansi_output.py b/src/molecule/ansi_output.py
index 16946ad64e..cffce1ad0b 100644
--- a/src/molecule/ansi_output.py
+++ b/src/molecule/ansi_output.py
@@ -124,6 +124,7 @@ def __init__(self) -> None:
"danger": self.RED + self.BOLD, # Matches Ansible error
"scenario": se... | 1 | 1 | 1 | [{"id": "G0", "claim": "Changing logger.propagate from False to True could cause duplicate log messages if parent loggers also have handlers, so the change should be documented or justified.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
ansible__molecule__4484 | ansible/molecule | 4,484 | defect | 8433127dd8b79cc018b17eb01d7e95f0d9eeee20 | 6d8e44d92ebee289ee09807e021f303e0c455823 | Provide step information in additional log messages | Problem: Several core components (dependency, provisioner, verifier, and commands) cache their loggers at initialization, preventing them from picking up dynamic scenario and step context during execution.
Solution: Converted self._log from instance variable to @property in multiple classes:
- Dependency (base, shell,... | diff --git a/src/molecule/command/create.py b/src/molecule/command/create.py
index e805731fc1..6b6883d361 100644
--- a/src/molecule/command/create.py
+++ b/src/molecule/command/create.py
@@ -23,7 +23,7 @@
from typing import TYPE_CHECKING
-from molecule import config, logger
+from molecule import logger
from molec... | 3 | 1 | 0 | [{"id": "G0", "claim": "Removing the Config import from the TYPE_CHECKING block of src/molecule/verifier/ansible.py and src/molecule/provisioner/ansible.py may cause type checking issues because other methods may still reference Config.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "in... | null |
ansible__molecule__4491 | ansible/molecule | 4,491 | defect | f9ecb5a516c1f94fcc50f5a090f3f14815a94254 | af4a22be9f63f938e76d991a1615d4382705a4c7 | Add StrEnum compatibility layer for Python 3.10 | This PR adds a compatibility module that vendors Python 3.11's enum.StrEnum for use on Python 3.10.
The implementation is an exact copy of Python 3.11's StrEnum source code with no modifications. This provides identical behavior across Python versions and eliminates the need for version-specific logic.
This compatibi... | diff --git a/.config/pydoclint-baseline.txt b/.config/pydoclint-baseline.txt
index 3bb0c85e78..ae6adc7e95 100644
--- a/.config/pydoclint-baseline.txt
+++ b/.config/pydoclint-baseline.txt
@@ -13,6 +13,13 @@ community.molecule/plugins/filter/molecule_core.py
DOC201: Function `get_docker_networks` does not have a ret... | 2 | 1 | 0 | [{"id": "G0", "claim": "The AutoEnum test members are defined by calling `StrEnum._generate_next_value_` directly with hand-set, mutually inconsistent arguments (start always 1, count incrementing, last_values not matching the members created) instead of using `enum.auto()`, so the test does not exercise the actual aut... | null |
ansible__molecule__4494 | ansible/molecule | 4,494 | defect | 16ac8538fb2b2c6f3a160388b223e07f7db75e9c | 8483e683cfd69d73557b52faeb48f414f1568cac | Add Ansible-style Scenario Recap to Report Output |
<img width="1908" height="732" alt="image" src="https://github.com/user-attachments/assets/48066993-0aeb-47c6-8f7a-c8772d1e4a0d" />
### Summary
Introduces a new "Scenario recap" section to Molecule's report output that matches Ansible's play recap format. This enhancement provides users with a consolidated view... | diff --git a/.config/dictionary.txt b/.config/dictionary.txt
index 4b0574ddc0..d7ae2ca2a2 100644
--- a/.config/dictionary.txt
+++ b/.config/dictionary.txt
@@ -1,6 +1,3 @@
-Qalthos
-Sbarnea
-Sorin
antsibull
anyconfig
argnames
@@ -54,12 +51,14 @@ jinaj
jodewey
jpvanhal
jsonfile
+keepends
keypair
kubevirt
libclou... | 2 | 1 | 0 | [{"id": "G0", "claim": "The docstring change from 'Tests for molecule.reporting module.' to 'Unit tests for reporting module.' is less descriptive and should be reverted to the original.", "category": "documentation", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The word 'tto... | null |
ansible__molecule__4503 | ansible/molecule | 4,503 | defect | a7f9f2d5bdf3f9a8b2ef45f873571c4f30dcdad0 | 1f13c3a6fc55d0321983af56c9ea021e5d3d8aec | Add --all flag support to molecule reset command | ## Summary
This PR adds the missing `--all` flag support to the `molecule reset` command, bringing it in line with other molecule commands and extending the shared directory functionality previously introduced for shared-state and shared-inventory.
## Problem Statement
The `molecule reset` command was the only... | diff --git a/src/molecule/click_cfg.py b/src/molecule/click_cfg.py
index 173ff98a77..3ffe088e02 100644
--- a/src/molecule/click_cfg.py
+++ b/src/molecule/click_cfg.py
@@ -171,6 +171,16 @@ def all_scenarios(self) -> CliOption:
default=False,
)
+ @property
+ def all_scenarios_reset(self) -> ... | 5 | 3 | 1 | [{"id": "G0", "claim": "Remove the duplicate import of `Callable` that is already imported at module level in the test file.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test's hardcoded `all_flag = True` is dead code and the condition should ... | null |
ansible__molecule__4534 | ansible/molecule | 4,534 | defect | f9931944fd1cab2057b3dd6c767ed90efafc1648 | 5a6ac34fdaac7200c7ddb6b7ab8de2d37bf0918a | Replace ImmediateExit with sysexit_with_message for direct exits | ## Problem
User-facing validation errors currently display full Python tracebacks, creating poor UX for common scenarios like invalid molecule.yml configuration or missing scenarios.
Fixes #4532
## Solution
Replace `raise ImmediateExit()` calls with `sysexit_with_message()` for user-facing validation error... | diff --git a/src/molecule/command/base.py b/src/molecule/command/base.py
index ce8dd7d15e..4bc39dd017 100644
--- a/src/molecule/command/base.py
+++ b/src/molecule/command/base.py
@@ -39,11 +39,12 @@
from molecule import config, logger, text
from molecule.constants import MOLECULE_DEFAULT_SCENARIO_NAME
-from molecul... | 3 | 3 | 0 | [{"id": "G0", "claim": "In list_, the ScenarioFailureError handler should call sysexit_from_exception(exc) instead of hand-building sysexit_with_message(str(exc), code=exc.code).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The two ScenarioFai... | null |
ansible__molecule__4611 | ansible/molecule | 4,611 | defect | 9c2b145f9b83d58f1d3901ebc4a81f32a0bf55f8 | c79435600c16bb31ba5a27690717b7e4723493f2 | feat: support nested scenario directories in collection mode | ## Summary
- Adds nested scenario directory support for Ansible collections, allowing scenario names with `/` separators (e.g., `molecule test -s appliance_vlans/merged`) to target `molecule.yml` files in subdirectories under `extensions/molecule/`.
- Introduces `_resolve_scenario_glob()` in `command/base.py` for path... | diff --git a/docs/configuration.md b/docs/configuration.md
index 5e47529d98..d35eb2e9e8 100644
--- a/docs/configuration.md
+++ b/docs/configuration.md
@@ -376,6 +376,93 @@ scenario:
- destroy
```
+### Nested Scenarios (Collections)
+
+When testing Ansible collections with many components, a flat scenario layout... | 11 | 8 | 2 | [{"id": "G0", "claim": "Replacing scenario_names with the names of the discovered configs may deduplicate when the same scenario name is passed twice via -s, and this edge case should be documented or handled explicitly to maintain consistency with the input.", "category": "correctness", "verdict": "uncertain", "priori... | null |
ansible__molecule__4613 | ansible/molecule | 4,613 | defect | e10ab995f9b44e7359b486747a479826f8f13441 | 22eaf77fc22a0f712cd119956f0280e704160a4f | feat: improve scenario selection and filtering for large collection trees | ## Problem
Collections with hundreds of nested scenarios expose several pain points in Molecule's scenario selection and filtering:
1. **Discovery requires manual config** — `MOLECULE_COLLECTION_GLOB` defaults to `*/molecule.yml` (flat), so nested scenarios aren't discovered unless users manually set `MOLECULE_GLOB` ... | diff --git a/.config/dictionary.txt b/.config/dictionary.txt
index d8da80fd1f..573415765a 100644
--- a/.config/dictionary.txt
+++ b/.config/dictionary.txt
@@ -98,6 +98,7 @@ nitz
nocows
nodev
nofile
+nonrecursive
notest
ntlm
overlayfs
diff --git a/src/molecule/command/base.py b/src/molecule/command/base.py
index c... | 3 | 2 | 2 | [{"id": "G0", "claim": "_is_excluded's use of fnmatch.fnmatch() applies OS-dependent case normalization and interprets glob metacharacters, which can break excluding scenarios whose literal names contain glob characters (e.g., brackets) and changes case-sensitivity semantics compared to the prior exact-match check; it ... | null |
ansible__receptor__1105 | ansible/receptor | 1,105 | defect | 70156fde5ce5823453042aa6aa7575dd497eeacb | 0c68d84d838b17716f6887bfc37ae1a87d3ffa1a | Add unit test for addr.go | Add unit test for addr.go
Addr struct properties need to be public in order to create a test Addr struct outside of netceptor for this test. | diff --git a/pkg/netceptor/addr.go b/pkg/netceptor/addr.go
index 2425dabf0..0762f3ef4 100644
--- a/pkg/netceptor/addr.go
+++ b/pkg/netceptor/addr.go
@@ -4,17 +4,17 @@ import "fmt"
// Addr represents an endpoint address on the Netceptor network.
type Addr struct {
- network string
- node string
- service string
+... | 1 | 1 | 1 | [{"id": "G0", "claim": "The reviewer asks why the Addr struct variables needed to be exported, questioning the widening of the public API solely so a unit test could set their values.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
ansible__receptor__1133 | ansible/receptor | 1,133 | defect | 168bb2c1156a30a6a25464cbdfc5bebc1dcb790b | eeb4528df9c79e0856c43840603cc35c2bce7829 | Add qlog tracer | Add qlog tracer to the quic config when QLOGDIR environment variable is provided | diff --git a/.golangci.yml b/.golangci.yml
index 327c017d5..4b20f6a55 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -99,6 +99,8 @@ linters-settings:
- "k8s.io/client-go/kubernetes"
- "k8s.io/client-go/rest"
- "k8s.io/client-go/tools/remotecommand"
+ - "github.com/quic-go/qu... | 2 | 1 | 0 | [{"id": "G0", "claim": "The large number of go.sum changes should be double-checked to confirm the amount is correct and that qVis dependencies were not added accidentally.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new quic.Config Trace... | null |
ansible__receptor__1146 | ansible/receptor | 1,146 | defect | b9bab8f13a6bfcd9467952196857c41721cb099c | 2d9ebbf3891cfb8bd32887f09d6d1b84b5dbaf9f | Add debug log for work unit payloads | Add debug log for work unit payloads using RECEPTOR_PAYLOAD_DEBUG env var
Control output:

Control status:
, and put the payload-logging code in the logger for reuse.", "catego... | null |
ansible__receptor__1279 | ansible/receptor | 1,279 | defect | 87251b8eff83e336e9f28388a601be1af5f455c7 | 20f0d733a4de91795194daa5d109cb676a7d981e | Add unit tests for `Conn` methods in conn.go in the netceptor package | Adds unit tests for the methods of `Conn` defined in `conn.go` in the netceptor package.
Most of the `Conn` methods wrap functionality in `quic.Stream` and `quic.Connection`, so the approach here was to
1. Establish interfaces in `conn.go` that shadow the `quic.Stream` and `quic.Connection` interfaces and update... | diff --git a/pkg/netceptor/conn.go b/pkg/netceptor/conn.go
index 07438a740..b04d8e872 100644
--- a/pkg/netceptor/conn.go
+++ b/pkg/netceptor/conn.go
@@ -300,17 +300,40 @@ func (li *Listener) Addr() net.Addr {
return li.pc.LocalAddr()
}
+type QuicStreamForConn interface {
+ quic.Stream
+}
+
+type QuicConnectionForC... | 2 | 2 | 0 | [{"id": "G0", "claim": "The QuicStreamForConn and QuicConnectionForConn interface definitions should be moved to the top of conn.go, where the reviewer finds them more readable.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A bug ticket should ... | null |
ansible__receptor__1300 | ansible/receptor | 1,300 | defect | 0d1b5d89c5c2b0e712a4da0a06b5f2c1b420b942 | 61c36cdeedfdbe060b0061e392fabd1d723557be | AAP-43201 netceptor logging | This PR is ready to review.
While it doesn't implement structured logging, it's organized in such a way as to make that easier to add in AAP-44416: Implement dynamic log level changes.
Note that additional diagnostics were added to identify existing connections with initial handshake errors, but does *not* remov... | diff --git a/.gitignore b/.gitignore
index 4ca36a88b..cd11a73d3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -29,4 +29,5 @@ venv
/vendor
pkg/services/.lock
pkg/workceptor/status
-pkg/workceptor/status.lock
\ No newline at end of file
+pkg/workceptor/status.lock
+cmd/receptor-cl
\ No newline at end of file
diff --git ... | 7 | 5 | 1 | [{"id": "G0", "claim": "The cmd/receptor-cl entry the PR adds to .gitignore cannot work there and should not be added.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G3", "claim": "Now that logging uses the Suffix model, the Netceptor.Error/Warning/... helper wrap... | null |
ansible__receptor__1371 | ansible/receptor | 1,371 | defect | d1a82cce468bb2ff6485dd5a6062fb1847444a56 | 00a67a9d9f65f2300a5db88ab187bd20bc6addd5 | AAP-46619 Get pod container status | This pull request addresses concerns about the size and commit history of [PR #1332](https://github.com/ansible/receptor/pull/1332). We are consolidating these helper functions in this PR and moving the WaitForPodCompleted function to a separate pull request.
1. PodHealthy - Determine if the Pod and Container are bo... | diff --git a/.gitignore b/.gitignore
index 4ca36a88b..a2c016e3b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -29,4 +29,5 @@ venv
/vendor
pkg/services/.lock
pkg/workceptor/status
-pkg/workceptor/status.lock
\ No newline at end of file
+pkg/workceptor/status.lock
+**/__debug_*
\ No newline at end of file
diff --git a/g... | 7 | 7 | 2 | [{"id": "G0", "claim": "Reduce branching complexity in PodContainerHealthy and PodHealthy by finding the container with the matching name first and exiting the loop, instead of a switch inside an if inside a loop.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl... | null |
ansible__receptor__1411 | ansible/receptor | 1,411 | defect | e72f23accaedcc6b550300406cc2250e668c3915 | de6e3a4821968ceaa899e4f27be589099eff0598 | Don't fail job when non zero terminated exit code | Don't fail job when non zero terminated exit code, update tests to ensure last line is read if not empty | diff --git a/pkg/workceptor/kubernetes.go b/pkg/workceptor/kubernetes.go
index caf7feb74..eab953f69 100644
--- a/pkg/workceptor/kubernetes.go
+++ b/pkg/workceptor/kubernetes.go
@@ -467,14 +467,7 @@ mainLoop:
case containerState.Terminated != nil:
// We got EOF and the pod terminated in a bad state, we will r... | 6 | 5 | 0 | [{"id": "G0", "claim": "The log message for a terminated container misspells \"terminated\" as \"treminated\" and should be corrected.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The comments in the terminated-state branch are out of date: they... | null |
ansible__receptor__1417 | ansible/receptor | 1,417 | defect | 4acbfbed9c2f983ffd11f9049e6d19de76250f2b | 92306cd7726d386d43a81b7af1a3c67ac883cd3c | Check container is running before attaching stdin & check context canceled first when reading line | Check container is running before attaching stdin & check context canceled first when reading line | diff --git a/pkg/workceptor/kubernetes.go b/pkg/workceptor/kubernetes.go
index 368aab623..9f38d2498 100644
--- a/pkg/workceptor/kubernetes.go
+++ b/pkg/workceptor/kubernetes.go
@@ -374,7 +374,21 @@ mainLoop:
for { // check between every line read to see if we need to stop reading
line, err := streamReader.ReadSt... | 7 | 6 | 3 | [{"id": "G0", "claim": "When the context is canceled while reading logs the code should return (also in the WorkStateSucceeded case, and in fact for every canceled-context case) instead of continuing to process logs.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "... | null |
ansible__receptor__1425 | ansible/receptor | 1,425 | defect | c670d8deff2ce4a1b0178e8b607d75a5a2a12a8b | 68656bb408ef83abfa1291e7f20e58b801cbcb34 | Add env vars for the start duration and amount of retries for kube api retries | Add env vars for the start duration and amount of retries for kube api retries | diff --git a/docs/source/user_guide/configuration_options.rst b/docs/source/user_guide/configuration_options.rst
index 0c2e3b047..bae3947a8 100644
--- a/docs/source/user_guide/configuration_options.rst
+++ b/docs/source/user_guide/configuration_options.rst
@@ -942,7 +942,33 @@ Work Kubernetes
work-kubernetes:
... | 7 | 6 | 3 | [{"id": "G0", "claim": "The docs for RECEPTOR_KUBE_TIMEOUT_START should note the valid time units are \"ns\", \"us\" (or \"µs\"), \"ms\", \"s\", \"m\", \"h\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "If the backoff is still Fibonacci, the do... | null |
ansible__receptor__1442 | ansible/receptor | 1,442 | defect | a6d630fe69622102a8e221f2c7263bbadea4218e | f7f3a5dd02ce2a7a6fa21583adfcb098487820d8 | AAP-49041: Fix context leak in AcceptLoop when RemoteAddr is not Receptor Addr | # AAP-49041: Fix context leak in AcceptLoop when RemoteAddr is not Receptor Addr
## Summary
Fixes a context leak detected by golangci-lint when RemoteAddr type assertion fails in AcceptLoop.
## Problem
When `RemoteAddr().(Addr)` type assertion fails, `MonitorUnreachable` is not started, leaving the `ccancel... | diff --git a/pkg/netceptor/conn.go b/pkg/netceptor/conn.go
index 0c7002e46..d7a61c620 100644
--- a/pkg/netceptor/conn.go
+++ b/pkg/netceptor/conn.go
@@ -14,6 +14,7 @@ import (
"os"
"path"
"sync"
+ "sync/atomic"
"time"
"github.com/ansible/receptor/pkg/utils"
@@ -31,6 +32,10 @@ var MaxIdleTimeoutForQuicConnec... | 1 | 1 | 0 | [{"id": "G0", "claim": "Because context cancel functions are safe to call multiple times, the atomic test hook and the inline defer closure in the else branch are unnecessary; simplify by removing them and putting a plain `defer ccancel()` right after `context.WithCancel`.", "category": "design", "verdict": "supported"... | null |
ansible__receptor__1444 | ansible/receptor | 1,444 | defect | afc528054fdfb8c2b810cc6c0370d84194b20282 | 7b4098660bbf16d05d4a4206465290bb015c6a67 | Write kube error to stdoutErr when terminated container reason isn't completed or error | Write kube error to stdoutErr when terminated container reason isn't completed or error.
When kubenetes container state is terminated we need to know if the job completed execution or was interrupted. If the terminated reason is completed the job finished and if the reason is error the job returned an error but comp... | diff --git a/pkg/workceptor/command_test.go b/pkg/workceptor/command_test.go
index 1dd1478b2..981ccbf2d 100644
--- a/pkg/workceptor/command_test.go
+++ b/pkg/workceptor/command_test.go
@@ -115,11 +115,10 @@ func TestStart(t *testing.T) {
mockBaseWorkUnit.EXPECT().GetWorkceptor().Return(w).Times(2)
mockNetceptor.E... | 4 | 2 | 1 | [{"id": "G0", "claim": "The inverted exit-code logic should be restructured so the special cases are explicit, with comments justifying why receptor handles exit code 1 as success.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "After setting stdoutErr on... | null |
ansible__receptor__1462 | ansible/receptor | 1,462 | defect | b9e019ff8774050ab74a800c9ec0fd43d5f60578 | b454dd4781a66c9a6c1ffb4221a9ca4345e598fd | Remove Kube retry counter decrement on EOF with job in Running status | This changes the behavior when a Kube worker encounters an `EOF` while a job pod is reported in the `Running` status by Kubernetes. Previously, this would decrement the retry counter which would eventually exhaust, and fail the job.
Now, an `EOF` from a `Running` job will no longer decrement the retry counter. The a... | diff --git a/pkg/workceptor/kubernetes.go b/pkg/workceptor/kubernetes.go
index d21a5722b..bdf727c47 100644
--- a/pkg/workceptor/kubernetes.go
+++ b/pkg/workceptor/kubernetes.go
@@ -506,33 +506,17 @@ mainLoop:
case containerState.Running != nil:
// We got EOF but pod is running, is this because we checked too... | 4 | 4 | 2 | [{"id": "G0", "claim": "The Fibonacci backoff delay could grow to a very long time, so a max should be added for it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The comment above the Running-EOF case still describes retrying a max of 5 times and ... | null |
ansible__receptor__201 | ansible/receptor | 201 | defect | 06c12db072561454f2e17e8db65ebf34ff135226 | 53ea18d93af540cf975866ec52dce7e5718f2057 | Allow tls-server to verify that client node id matches certificate CN | related #185
adds the following option to `--tls-server`,
`verifyclientnodeid=<bool>: Verify certificate CA matches client node id (default: true)`
If true, the server will check that the connecting client node id matches the Common Name in the client certificate.
It does this through the `tls.Config` callba... | diff --git a/pkg/netceptor/tlsconfig.go b/pkg/netceptor/tlsconfig.go
index e9af4bd39..378a3c02d 100644
--- a/pkg/netceptor/tlsconfig.go
+++ b/pkg/netceptor/tlsconfig.go
@@ -8,6 +8,7 @@ import (
"fmt"
"github.com/project-receptor/receptor/pkg/cmdline"
"io/ioutil"
+ "strings"
)
// ******************************... | 4 | 3 | 3 | [{"id": "G0", "claim": "When VerifyClientNodeID is set, serverConf is replaced with a fresh empty tls.Config, which appears to throw away the previous settings.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The GetConfigForClient closure mutates th... | null |
ansible__receptor__285 | ansible/receptor | 285 | defect | ca8851873f0a5ac95e3ce269d6547f26c621768e | aa22c99e43b67c90d9d0d3fe2c38a2844544f54c | Allow for passing full Pod definition at runtime | I should have looked more closely at https://github.com/project-receptor/receptor/pull/276 before we merged it. For the AWX use case we need to be able to pass in a full `Pod` definition, not just the `spec:` field. This was my fault, because I was used the term 'pod spec' when making this request, without knowing that... | diff --git a/Makefile b/Makefile
index bafa7cada..1e700ebf7 100644
--- a/Makefile
+++ b/Makefile
@@ -69,9 +69,6 @@ build-all:
go build --tags no_controlsvc,no_backends,no_services,no_tls_config,no_workceptor cmd/receptor.go && \
go build cmd/receptor.go
-test: receptor
- @go test ./... -p 1 -parallel=16 -count=1
... | 2 | 1 | 0 | [{"id": "G0", "claim": "The PR author is unsure about reusing the user-supplied Pod's `name` field for `GenerateName` (via `kw.namePrefix`) and overriding the configured namespace with the Pod's namespace, and asks for confirmation that this behaviour is intended.", "category": "design", "verdict": "uncertain", "priori... | null |
ansible__receptor__384 | ansible/receptor | 384 | defect | 549d784d6d6e67a0b97e907e632b775dfb372938 | 7e583f5d88c28cd5f936a2aa7e574175363d3f28 | On reload, detect if modified config is reloadable | If a user changes the configuration file that is not supported by a reload, then proper errors are returned.
reloadable config items include
```
tcp-peer
tcp-listener
ws-peer
ws-listener
udp-peer
udp-listener
local-only
```
Error message if a non-reloadable config item was added or modified,
```
$ ... | diff --git a/cmd/receptor.go b/cmd/receptor.go
index d1b70db5b..41d4e8b15 100644
--- a/cmd/receptor.go
+++ b/cmd/receptor.go
@@ -85,6 +85,10 @@ func (cfg nullBackendCfg) Run() error {
return nil
}
+func (cfg nullBackendCfg) Reload() error {
+ return cfg.Run()
+}
+
func main() {
cl := cmdline.NewCmdline()
cl.A... | 1 | 1 | 0 | [{"id": "G0", "claim": "The explicit `sys.exit(0)` after printing \"Reload successful\" isn't needed, since running off the end of the program already returns exit code 0.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
ansible__receptor__833 | ansible/receptor | 833 | defect | 93d2e12b73dee7bbeefc7e61a6d4cb0fe209ddb3 | cbe2b00decfeaced6fab6ab733298723bf55738e | Add unit tests for packetconn | Add unit tests for packetconn
Add interface NetcForPacketConn | diff --git a/pkg/netceptor/conn.go b/pkg/netceptor/conn.go
index 0792c3ad5..2d24569a6 100644
--- a/pkg/netceptor/conn.go
+++ b/pkg/netceptor/conn.go
@@ -49,7 +49,7 @@ func (s *Netceptor) listen(ctx context.Context, service string, tlscfg *tls.Conf
return nil, fmt.Errorf("service name %s too long", service)
}
if ... | 5 | 4 | 1 | [{"id": "G0", "claim": "The PacketConn constructors should return the concrete *PacketConn struct instead of the PacketConner interface, per the project's accept-interfaces-return-structs pattern.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The bank o... | null |
ansible__receptor__922 | ansible/receptor | 922 | defect | 1d24d125076af4b017dd124ccb2334263864cdf5 | 5363eb5feed053625850e8114760ff6b199cc0cb | added tests for workceptor.go | Added more test coverage for the workceptor.go file | diff --git a/pkg/workceptor/mock_workceptor/server.go b/pkg/workceptor/mock_workceptor/server.go
new file mode 100644
index 000000000..7620bef83
--- /dev/null
+++ b/pkg/workceptor/mock_workceptor/server.go
@@ -0,0 +1,139 @@
+// Code generated by MockGen. DO NOT EDIT.
+// Source: github.com/ansible/receptor/pkg/workcept... | 2 | 2 | 1 | [{"id": "G0", "claim": "TestGetResults creates the stdout file itself with os calls at the hardcoded /tmp/test path, which is dangerous because the data dir is configurable, so the os calls should be removed from the tests and the existing helper (stdio_utils.go) reused.", "category": "correctness", "verdict": "support... | null |
ansible__vscode-ansible__1067 | ansible/vscode-ansible | 1,067 | defect | 4d94c6edf99aee5d1926ebf086cda100c495a959 | 8d97965ea2ef753c0802f0e4c9c4aaec0468267d | Integrate code coverage & mock Lightspeed server into CI | This PR is for integrating the code coverage support (#1056) and the Lightspeed mock server (#1062) into the CI pipeline. It also changes e2e test to include unit tests so that the code coverage by unit tests is also included in the coverage report.
Following are some details:
1. The new script `coverage-all` was... | diff --git a/Taskfile.yml b/Taskfile.yml
index e99fb1a548..40cb9510c4 100644
--- a/Taskfile.yml
+++ b/Taskfile.yml
@@ -154,7 +154,8 @@ tasks:
- package
cmds:
- $VIRTUAL_ENV/bin/python3 --version
- - "{{.XVFB}} bash -c 'source \"${VIRTUAL_ENV}/bin/activate\" && yarn run test-e2e'"
+# - "{{.XV... | 3 | 2 | 2 | [{"id": "G0", "claim": "The /etc/hosts entry this PR adds in tools/test-setup.sh is incompatible with macOS, where /etc/hosts should not be touched.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The PR should use localhost everywhere for the mock L... | null |
ansible__vscode-ansible__1107 | ansible/vscode-ansible | 1,107 | defect | 74b04f067e8cb4f1b5c301049f2227a37aacc433 | 630cf75d8299707066d1e49555bf2979389a2e67 | Reject pending suggestion if text selection changes | For [AAP-21028](https://issues.redhat.com/browse/AAP-21028)
Note: This change is built on the top of #1105. Merge target is intentionally set to my #1105 branch for easier code review. It will be changed to the main branch before sending this PR for official review. | diff --git a/src/extension.ts b/src/extension.ts
index 6917bd47c2..18ac0c0c3a 100644
--- a/src/extension.ts
+++ b/src/extension.ts
@@ -41,11 +41,12 @@ import { registerCommandWithTelemetry } from "./utils/registerCommands";
import { TreeDataProvider } from "./treeView";
import { LightSpeedManager } from "./features/l... | 1 | 1 | 0 | [{"id": "G0", "claim": "The inline suggestion enablement checks, including the top level lightspeed setting, can be moved into a get function.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
ansible__vscode-ansible__1305 | ansible/vscode-ansible | 1,305 | defect | 3eb7f3b93c848375b7d7da87be05d70ced8f4ba2 | 083deb7e1eb28a55f6bc38cf12315d5c3c77dc8a | Playbook Generation UI update | A few updates on Playbook Generation UI:
On the second page:
1. display the prompt input on the first page as a static text.
2. Add the "Edit" link next to the prompt static text. The link work in the same way as the "Back" button.
3. Enable the "Reset" button only the summary text was changed from the orig... | diff --git a/media/playbookGeneration/style.css b/media/playbookGeneration/style.css
index 00bc2edf02..8159656083 100644
--- a/media/playbookGeneration/style.css
+++ b/media/playbookGeneration/style.css
@@ -1,3 +1,23 @@
+a:link {
+ text-decoration: none;
+}
+
+a:visited {
+ text-decoration: none;
+}
+
+a:hover {
+ t... | 1 | 1 | 1 | [{"id": "G0", "claim": "The code reads `message.summary.content`, but `message.summary` is a string with no `.content` key, so the summary would not be retrieved correctly.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
ansible__vscode-ansible__1366 | ansible/vscode-ansible | 1,366 | defect | 400250afb577acf7e51eb84def0f7a53cf073052 | 6f0da1abb4e21429304935873bd7500622d1b6cd | Gracefully handle playbook generation and explanation not available | This PR moves the _generic_ handling of error `code`'s from the backend service in to the Language Server.
Exceptions thrown by the Language Server are handled by JSON-RPC and converted into messages following a standard format.
We, however, want to preserve the `code` from the backend service and show _meaningfu... | diff --git a/packages/ansible-language-server/src/ansibleLanguageService.ts b/packages/ansible-language-server/src/ansibleLanguageService.ts
index fb17ec06fa..17f01d00b8 100644
--- a/packages/ansible-language-server/src/ansibleLanguageService.ts
+++ b/packages/ansible-language-server/src/ansibleLanguageService.ts
@@ -2... | 3 | 3 | 1 | [{"id": "G0", "claim": "Running the E2E suite from source (yarn coverage-all after yarn package) fails because the extension cannot resolve '@ansible/ansible-language-server/src/utils/handleApiError', so loading the moved module needs to be made to work without a packaged .vsix.", "category": "correctness", "verdict": ... | null |
ansible__vscode-ansible__1641 | ansible/vscode-ansible | 1,641 | defect | 3ca77d89e60200237537e41bc1db1c11fa157f34 | e2a9bfb03552ed1151251c833b54e565cc80c5ed | AAP-34738: Lightspeed Identify the collections available in the current workspace | With this change, the extension builds a list of the local collections of the Workspace
and uses it for the Role Generation wizard.
| diff --git a/.config/dictionary.txt b/.config/dictionary.txt
index b6fd2c8de3..dceecb3235 100644
--- a/.config/dictionary.txt
+++ b/.config/dictionary.txt
@@ -247,6 +247,7 @@ uuidv
uuidv4
varInfiles
venvs
+virt
vnet
vscodeignore
vscoss
diff --git a/.gitignore b/.gitignore
index 47ee9351c4..14adb59aa3 100644
--- a... | 3 | 2 | 1 | [{"id": "G0", "claim": "The PR could instead just execute `ansible-galaxy collection list` and parse the command output rather than adding the new CollectionFinder-based scanning code.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add a `console.debug()` ... | null |
ansible__vscode-ansible__1692 | ansible/vscode-ansible | 1,692 | defect | c5b208d0985228110864dde9774c85cc68b09fe6 | d194f4876a38087ef06202e3097b84c89e5b980a | Add “Generate a Playbook” Button to Side Panel | See https://issues.redhat.com/browse/AAP-34645 for details.

@alisonlhart @cidrblock Given the discussion on Slack, did you want to approve/merge? | diff --git a/src/features/lightspeed/utils/explorerView.ts b/src/features/lightspeed/utils/explorerView.ts
index 60314258c9..bcc33f6f2d 100644
--- a/src/features/lightspeed/utils/explorerView.ts
+++ b/src/features/lightspeed/utils/explorerView.ts
@@ -70,6 +70,12 @@ export function getWebviewContentWithActiveSession(
... | 3 | 3 | 0 | [{"id": "G0", "claim": "The test should drop the lightspeedUIExplorerTest wrapper function and the file be renamed to have a `Test.ts` suffix.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The updateSettings() calls in the test's setup should be remove... | null |
ansible__vscode-ansible__1803 | ansible/vscode-ansible | 1,803 | defect | 55672357ed923ac8591512d289831210d253f1e6 | 20c9408338afb8b5aacead1efb4fd753935fc5b1 | Lightspeed: update ligtspeed api paths version to v1 | Lightspeed: update ligtspeed api paths version to v1
REF: https://issues.redhat.com/browse/AAP-37996 | diff --git a/src/definitions/lightspeed.ts b/src/definitions/lightspeed.ts
index 9772e27c18..692774163c 100644
--- a/src/definitions/lightspeed.ts
+++ b/src/definitions/lightspeed.ts
@@ -63,10 +63,10 @@ export namespace LightSpeedCommands {
"ansible.lightspeed.explorer.refresh";
}
-export const LIGHTSPEED_API_V... | 2 | 2 | 2 | [{"id": "G0", "claim": "The mock Lightspeed server used in E2E/UI testing also needs its API version updated (to v1) to match the client change.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Switching the Lightspeed API paths to v1 breaks Lightspeed on... | null |
ansible__vscode-ansible__1908 | ansible/vscode-ansible | 1,908 | defect | 2238064babf99fa5f5e295f5552eadb1fda4e671 | 72716f58a6939cc945df1baab4e8a84bd4659c6a | Add support to scaffold Test plugin in Collection plugin webview | Related Jira issue : https://issues.redhat.com/browse/AAP-41976
## Description
Add Support for Test Plugin Scaffolding in Collection Plugin Webview
## Summary
This Pull Request enhances the existing Collection Plugin webview by adding support for Test Plugin scaffolding. Users can now select `Test` as a plugin... | diff --git a/src/features/contentCreator/addPluginPage.ts b/src/features/contentCreator/addPluginPage.ts
index 91e805b939..29c3336531 100644
--- a/src/features/contentCreator/addPluginPage.ts
+++ b/src/features/contentCreator/addPluginPage.ts
@@ -142,6 +142,7 @@ export class AddPlugin {
<vscode-o... | 2 | 2 | 1 | [{"id": "G0", "claim": "The minimum creator version for Module plugins should also be bumped from 25.3.0 to 25.3.1, since 25.3.0 has a bug with module scaffolding.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The test-plugin UI test should use o... | null |
ansible__vscode-ansible__2202 | ansible/vscode-ansible | 2,202 | defect | 44b49a0a27faea2cda59ce47bf5e5250ef27faaa | d5f12de366e6cfdadd76f40e3b090f356ada6e71 | Register MCP server with enable/disable settings support | ### SUMMARY
- Registers MCP server using VS Code's native programmatic API.
- Adds extension settings to enable/disable MCP server functionality.
- Implements real-time configuration changes without restart/reload.
- Includes command palette entries for MCP server control.
JIRA - [AAP-53787](https://issues.red... | diff --git a/package.json b/package.json
index 3b74132b51..28dee5c759 100644
--- a/package.json
+++ b/package.json
@@ -205,6 +205,10 @@
{
"command": "ansible.mcpServer.enabled",
"title": "Enable Ansible Development Tools MCP Server"
+ },
+ {
+ "command": "ansible.mcpServer.disa... | 4 | 4 | 2 | [{"id": "G0", "claim": "The test file requires the \"assert\" module even though assert is already imported from chai, so the require is redundant.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new command is named \"ansible.mcpServer.disab... | null |
ansible__vscode-ansible__2246 | ansible/vscode-ansible | 2,246 | defect | a0e5573b0501ad3bfaf8b7d7f0fd10ef06aa68d7 | 1130539e6f118a963093003e56e7825b28e383b4 | feat(mcp): enable auto-fix functionality for ansible-lint tool | This PR adds automatic fix functionality to the ansible-lint MCP tool.
Fixes: AAP-56142
<img width="1512" height="982" alt="Screenshot 2025-10-29 at 3 26 33 PM" src="https://github.com/user-attachments/assets/7ad6b6f6-3216-41c9-b432-d0c138185879" />
<img width="1512" height="982" alt="Screenshot 2025-10-29 at 3 ... | diff --git a/packages/ansible-mcp-server/src/ansibleLint.ts b/packages/ansible-mcp-server/src/ansibleLint.ts
index 33c244a7ae..1a730f5cb2 100644
--- a/packages/ansible-mcp-server/src/ansibleLint.ts
+++ b/packages/ansible-mcp-server/src/ansibleLint.ts
@@ -1,21 +1,46 @@
import { spawn } from "node:child_process";
+impor... | 3 | 2 | 0 | [{"id": "G0", "claim": "The ansible_lint tool should have additional definitions such as annotations (keywords, use cases, etc.), like the ADE tool has.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The ansibleLint implementation file should also be l... | null |
ansible__vscode-ansible__2363 | ansible/vscode-ansible | 2,363 | defect | 0b45e3a028d835c6736e76142db85bfd804fdf80 | 0478d1075725e153d3fd8e4bf07940bc387ce6c6 | fix(mcp): Resolve server activation issues in packaged extension | ### Summary -
- The changes in mcpProvider.ts and extension.ts deals with activation issue.
- Helper and webpack.config.ts changes were required due to `ERR_MODULE_NOT_FOUND` error that occurred because the MCP server was compiled with tsc but dependencies weren't bundled, so the runtime couldn't find modules.
- N... | diff --git a/.config/dictionary.txt b/.config/dictionary.txt
index c085675068..ad585997f5 100644
--- a/.config/dictionary.txt
+++ b/.config/dictionary.txt
@@ -62,6 +62,7 @@ libonig
libssh
lightspeed
lineinfile
+loglevel
maxlength
microdnf
mocharc
diff --git a/src/extension.ts b/src/extension.ts
index 1f67edf5ca..... | 5 | 4 | 2 | [{"id": "G0", "claim": "The added comment says the server process cwd is the extension path while the code passes path.dirname(cliPath), so the comment should be updated to match what the code does.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "T... | null |
ansible__vscode-ansible__2366 | ansible/vscode-ansible | 2,366 | defect | 7c985a187b9fd35a45a624c421c542f7adbf1fa4 | 92e93dff289d74c70bd3f54d49e032bccb28219e | feat(mcp): Add MCP server activation link to Quick Links sidebar | ### JIRA - AAP-59987
## Changes
- Adds "Ansible Development Tools MCP Server (AI)" link under the LAUNCH and Getting Started guide.
- Link triggers `ansible.mcpServer.enabled` command to enable the MCP server
- Includes a "NEW" badge to highlight the feature
## Benefits
- Improves discoverability of the MCP s... | diff --git a/webviews/QuickLinksApp.vue b/webviews/QuickLinksApp.vue
index 29b3ca144d..3ddbdb5ff1 100644
--- a/webviews/QuickLinksApp.vue
+++ b/webviews/QuickLinksApp.vue
@@ -97,6 +97,14 @@ onMounted(() => {
</a>
</h3>
</div>
+ <div class="catalogue">
+ <h3>
+ <a href="co... | 3 | 3 | 0 | [{"id": "G0", "claim": "The link text and title should use \"Development Tools\" instead of \"DevTools\" for consistency with the terminology used elsewhere in the codebase.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The link should use the co... | null |
ansible__vscode-ansible__2393 | ansible/vscode-ansible | 2,393 | defect | 22cf8724b224b72dc138c5fbe3c79b9a6774dcff | e9b90a17efa823333e53f575acebb1e07424da51 | fix: ade_devloper_env tool fix | Related: AAP-60688
The ade_setup_environment tool was returning empty output when
Python was not available:
1. The tool tried to create a venv with an unavailable Python version
2. `python3.11 -m venv` failed with ENOENT
3. The error was not captured or reported
4. The user saw an empty output box with no exp... | diff --git a/packages/ansible-mcp-server/src/handlers.ts b/packages/ansible-mcp-server/src/handlers.ts
index 10f122d86a..97af389a75 100644
--- a/packages/ansible-mcp-server/src/handlers.ts
+++ b/packages/ansible-mcp-server/src/handlers.ts
@@ -196,13 +196,57 @@ export function createADESetupEnvironmentHandler(workspaceR... | 2 | 1 | 0 | [{"id": "G0", "claim": "Mocking the Python venv creation in the tests could hide real-world bugs, and if that proves true the mock should be replaced with code that really tests executing Python.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The 45-sec... | null |
ansible__vscode-ansible__2412 | ansible/vscode-ansible | 2,412 | defect | 361f7440fc5835b43604b4a05f4aaeb98facdd67 | c2145e661c3578af92fa8ef9dee4b9e66ca335a3 | fix: static checks minor issues + deps | Prepares for other changes, these changes where cherry picked from other bigger PRs.
| diff --git a/.claude/settings.local.json b/.claude/settings.local.json
new file mode 100644
index 0000000000..ce9d79bcdf
--- /dev/null
+++ b/.claude/settings.local.json
@@ -0,0 +1,7 @@
+{
+ "permissions": {
+ "allow": ["Bash(gh:*)", "Bash(git:*)", "Bash(task:*)", "Bash(yarn:*)"],
+ "ask": [],
+ "deny": []
+ ... | 2 | 2 | 0 | [{"id": "G0", "claim": "The '# cspell:ignore tekton' directive added to cspell.config.yaml is redundant (the config already ignores .tekton/ and 'tekton' is being removed from the custom dictionary) and serves no purpose, so it should be deleted.", "category": "maintainability", "verdict": "supported", "priority": "P2"... | null |
ansible__vscode-ansible__2433 | ansible/vscode-ansible | 2,433 | defect | dc3643499a6a6380e31c9e03e3a65a3c23967ec6 | 198a69a99ce89e598c6a0e09aa7e876df3b32b16 | chore: allow using extester extension to manually run ui tests | - Added fake yarn list output to emulate yarn v1 behavior for vsce compatibility
- Configured extester settings in VS Code workspace settings
- Moved vsce command-line arguments to package.json configuration
- Added vsce ls smoke test during packaging to catch regressions early
Related: AAP-62156
| diff --git a/.config/dictionary.txt b/.config/dictionary.txt
index 1ed5bb4fb4..f05f7eabb7 100644
--- a/.config/dictionary.txt
+++ b/.config/dictionary.txt
@@ -54,6 +54,7 @@ docstrings
equalto
eslintcache
extest
+extester
fqcn
genai
haaaad
diff --git a/.config/fake-yarn-list.txt b/.config/fake-yarn-list.txt
new fi... | 2 | 2 | 1 | [{"id": "G0", "claim": "The string passed to run() is not an f-string, so the variables pre_release_arg and version will not be interpolated; add the f prefix to the string literal.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The comment reads 'i... | null |
ansible__vscode-ansible__2592 | ansible/vscode-ansible | 2,592 | defect | 0044f712f882136806d92af356d44f0c2551772b | 040622288a9d715befce88f00e5465770ec73e29 | fix: trim textfields in collection and project webviews | Fixes AAP-54044
Trim text field inputs in Collection and Project webviews before validation
and payload creation to avoid issues caused by leading/trailing whitespace.
Also fixed validation logic - fields now require a trimmed length of > 2
characters instead of checking for an empty string, because ansible-c... | diff --git a/webviews/CreateAnsibleCollectionApp.vue b/webviews/CreateAnsibleCollectionApp.vue
index b4b0000907..8500cc80e9 100644
--- a/webviews/CreateAnsibleCollectionApp.vue
+++ b/webviews/CreateAnsibleCollectionApp.vue
@@ -45,8 +45,8 @@ const requirementFailures = ref([]);
const isFormValid = computed(() => {
... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add a couple of simple unit tests with vitest to validate the trimming/length-validation behavior introduced by this pull request.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
ansible__vscode-ansible__648 | ansible/vscode-ansible | 648 | defect | fc3c3f1322230f296db9e6c9ce26ad15c44ee453 | 7210462310d168494d73432ed2bbd62359c60d75 | Update the extension to support disabling diagnostics | The PR updates the code to use ALS v1.0.0 and support settings to disable validation.
Related to: https://github.com/ansible/ansible-language-server/pull/448
Removed settings:
- ansible.ansibleLint.enabled
- ansible.ansibleLint.path
- ansible.ansibleLint.arguments
Added settings:
- ansible.validation.ena... | diff --git a/package.json b/package.json
index a8cbbe692f..d270c44a08 100644
--- a/package.json
+++ b/package.json
@@ -143,41 +143,85 @@
"type": "object",
"title": "Ansible",
"properties": {
+ "ansibleServer.trace.server": {
+ "type": "string",
+ "enum": [
+ "off... | 1 | 1 | 0 | [{"id": "G0", "claim": "The description of the new `ansible.validation.enabled` setting should be expanded to explain what it does — for example that when enabled it runs the individually enabled validation providers (such as ansible-lint when `ansible.validation.lint.enabled` is true), and when none of the providers i... | null |
ansys__pymapdl__1615 | ansys/pymapdl | 1,615 | defect | f6c5882bb50511338ddafd7b308617254ce7d3c2 | 14cf8b6d903c311379217c435b02e71394467892 | Use ubuntu image to run as local | This job at the main workflow file ``ci.yml`` aims to make possible to run pytest from inside the ubuntu MAPDL container in local configuration.
I have also habilitated the skipped tests.
### Notes
* I hit a problem with the test ``test_remove_temp_files_fail`` which I have disable it for the moment.
* I also h... | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 1dc6888cb46..5749a2c116c 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -19,6 +19,7 @@ env:
DPF_PORT: 21002
DOCKER_PACKAGE: ghcr.io/pyansys/pymapdl/mapdl
DOCKER_IMAGE_VERSION_DOCS_BUILD: v22.2.0
+ ON_CI: True
# ... | 6 | 3 | 1 | [{"id": "G0", "claim": "There is an issue with the coverage upload in the new local CI workflow that needs fixing.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Tests could be marked with pytest.mark.dpf and then deselected (or selected) via markers, w... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.