Skip to content

tests: Revert "tests: disable second special character case for prompting integration tests" - #16931

Merged
olivercalder merged 1 commit into
canonical:masterfrom
olivercalder:prompting-escape-prompt-path-followup
May 8, 2026
Merged

tests: Revert "tests: disable second special character case for prompting integration tests"#16931
olivercalder merged 1 commit into
canonical:masterfrom
olivercalder:prompting-escape-prompt-path-followup

Conversation

@olivercalder

Copy link
Copy Markdown
Member

This PR is a follow-up to #16854 which re-enables the second special_characters test case for the apparmor-prompting-integration-tests spread test.

This is blocked until canonical/prompting-client#305 is resolved.

This work is tracked internally by: https://warthogs.atlassian.net/browse/SNAPDENG-36784

@github-actions github-actions Bot added the Run only one system Only runs spread tests on one system label Apr 17, 2026
@olivercalder olivercalder changed the title Prompting escape prompt path followup tests: Revert "tests: disable second special character case for prompting integration tests" Apr 17, 2026
@github-actions

github-actions Bot commented Apr 17, 2026

Copy link
Copy Markdown

Thu May 7 22:00:43 UTC 2026
The following results are from: https://github.com/canonical/snapd/actions/runs/25520661992

Failures:

Skipped tests from snapd-testing-skip

If you wish to have any of the below tests run in your PR, in your PR description, add 'unskip:' followed by a copy-and-pasted list (without variants) of the below tests you wish to run (unskip plus test list must be valid yaml)

  • garden:ubuntu-25.10-64:tests/main/apparmor-prompting-support
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-integration-tests:audio_record_single
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-integration-tests:audio_record_timespan_allow
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-integration-tests:audio_record_timespan_deny
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-integration-tests:create_multiple_actioned_by_other_pid_always_allow
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-integration-tests:create_multiple_actioned_by_other_pid_always_deny
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-integration-tests:create_multiple_allow
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-integration-tests:create_multiple_deny
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-integration-tests:create_multiple_not_actioned_by_other_pid_single_allow
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-integration-tests:create_multiple_not_actioned_by_other_pid_single_deny
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-integration-tests:create_write_chmod_same_fd_single_allow
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-integration-tests:create_write_chmod_same_path_single_allow
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-integration-tests:create_write_write_same_path_single_deny
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-integration-tests:download_file_conflict
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-integration-tests:download_file_defaults
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-integration-tests:download_file_safer
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-integration-tests:read_single_allow
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-integration-tests:read_single_deny
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-integration-tests:special_characters
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-integration-tests:timespan_allow
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-integration-tests:timespan_deny
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-integration-tests:write_read_multiple_actioned_by_other_pid_allow_deny
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-integration-tests:write_read_multiple_actioned_by_other_pid_deny_allow
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-integration-tests:write_single_allow
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-integration-tests:write_single_deny
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-integration-tests:audio_record_single
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-integration-tests:audio_record_timespan_allow
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-integration-tests:audio_record_timespan_deny
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-integration-tests:create_multiple_actioned_by_other_pid_always_allow
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-integration-tests:create_multiple_actioned_by_other_pid_always_deny
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-integration-tests:create_multiple_allow
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-integration-tests:create_multiple_deny
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-integration-tests:create_multiple_not_actioned_by_other_pid_single_allow
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-integration-tests:create_multiple_not_actioned_by_other_pid_single_deny
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-integration-tests:create_write_chmod_same_fd_single_allow
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-integration-tests:create_write_chmod_same_path_single_allow
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-integration-tests:create_write_write_same_path_single_deny
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-integration-tests:download_file_conflict
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-integration-tests:download_file_defaults
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-integration-tests:download_file_safer
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-integration-tests:read_single_allow
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-integration-tests:read_single_deny
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-integration-tests:special_characters
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-integration-tests:timespan_allow
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-integration-tests:timespan_deny
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-integration-tests:write_read_multiple_actioned_by_other_pid_allow_deny
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-integration-tests:write_read_multiple_actioned_by_other_pid_deny_allow
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-integration-tests:write_single_allow
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-integration-tests:write_single_deny

@olivercalder

Copy link
Copy Markdown
Member Author

Once canonical/prompting-client#306 lands, this should work again.

@olivercalder
olivercalder force-pushed the prompting-escape-prompt-path-followup branch from ec6bd83 to 7d62430 Compare April 24, 2026 03:09
@olivercalder
olivercalder marked this pull request as ready for review April 24, 2026 03:09
@github-actions github-actions Bot removed the Run only one system Only runs spread tests on one system label Apr 24, 2026
@olivercalder
olivercalder marked this pull request as draft April 24, 2026 03:10
@codecov

codecov Bot commented Apr 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.12%. Comparing base (cef124a) to head (a911c14).

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #16931      +/-   ##
==========================================
- Coverage   79.13%   79.12%   -0.01%     
==========================================
  Files        1369     1366       -3     
  Lines      191354   191344      -10     
  Branches     2465     2465              
==========================================
- Hits       151421   151401      -20     
- Misses      30826    30833       +7     
- Partials     9107     9110       +3     
Flag Coverage Δ
unittests 79.12% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@olivercalder

Copy link
Copy Markdown
Member Author

canonical/prompting-client#306 landed since the last run, retrying now. If it passes, this can be marked as ready for review.

@olivercalder

Copy link
Copy Markdown
Member Author

Right, we need to wait until the prompting-client build with canonical/prompting-client#306 makes its way to latest/stable, as that's the snap version we use for the scripted client.

@olivercalder

Copy link
Copy Markdown
Member Author

canonical/prompting-client#306 landed and the prompting-client build with the fix has been pushed to latest/stable. This should be able to pass now.

@olivercalder
olivercalder marked this pull request as ready for review May 4, 2026 19:49
@olivercalder
olivercalder force-pushed the prompting-escape-prompt-path-followup branch from 7d62430 to 529ee2e Compare May 4, 2026 19:51

@natibek natibek left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@olivercalder
olivercalder force-pushed the prompting-escape-prompt-path-followup branch from 529ee2e to c3892d5 Compare May 5, 2026 22:07
@olivercalder olivercalder added the Auto rerun spread Auto reruns spread up to 4 times in non-draft PRs w/ >=1 approval and <20 fails in any fund. system label May 5, 2026

@Rnfudge02 Rnfudge02 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@andrewphelpsj andrewphelpsj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

…ting integration tests"

The second prompt in the sequence was being parsed incorrectly by the
scripted prompting-client, causing it to expect a prompt with the
incorrect interface.

canonical/prompting-client#306 resolved this
issue and the test case can now be re-enabled

This reverts commit a6225d3.

Signed-off-by: Oliver Calder <oliver.calder@canonical.com>
@olivercalder
olivercalder force-pushed the prompting-escape-prompt-path-followup branch from c3892d5 to a911c14 Compare May 7, 2026 20:36
@olivercalder
olivercalder merged commit c989018 into canonical:master May 8, 2026
211 of 214 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Auto rerun spread Auto reruns spread up to 4 times in non-draft PRs w/ >=1 approval and <20 fails in any fund. system

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants