"To unblock kernel development we need apparmor to never fail ADT
testing in devel series, as new kernel is developed. We do not want to
hint to ignore it, because we must never regress apparmor."

unfortunately this is just not possible with the way kernel development
works. The addition of new "features" will break apparmor if there is
any support in the kernel for it as apparmor is default deny. There are
also other reasons kernel changes may result in test failures.

The only way to never block would be to ignore failures on the devel
series, but as you noted we don't want to regress either. Its a tough
situation, I don't have a good solution.

"Is it ok to upload the debdiff from #7 right away? Because this bug
cannot wait for new upstream release of apparmor getting integrated in
Ubuntu and migrating. 3 days for test-suite only fixes is too long."

Unfortunately it is NOT just a test suite issue. This requires an update
to the the policy compiler.

@alexmurray is currently planning to upload the latest version tomorrow
(his tomorrow, which is in just a few hours), but as you note it will
then take time to migrate.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apparmor in Ubuntu.
https://bugs.launchpad.net/bugs/1961196

Title:
  apparmor autotest failure on jammy with linux 5.15

Status in apparmor package in Ubuntu:
  New
Status in apparmor source package in Jammy:
  New

Bug description:
  [Impact]

  test-aa-notify is also checking if the output of `aa-notify --help`
  matches a specific text. However it looks like this output has changed
  in jammy so the autopkgtest is reporting errors like this:

  05:17:31 ERROR| [stderr] === test-aa-notify.py ===
  05:17:31 ERROR| [stderr] .ssF.
  05:17:31 ERROR| [stderr] 
======================================================================
  05:17:31 ERROR| [stderr] FAIL: test_help_contents (__main__.AANotifyTest)
  05:17:31 ERROR| [stderr] Test output of help text
  05:17:31 ERROR| [stderr] 
----------------------------------------------------------------------
  05:17:31 ERROR| [stderr] Traceback (most recent call last):
  05:17:31 ERROR| [stderr]   File 
"/tmp/testlibmse00lib/source/jammy/apparmor-3.0.3/utils/test/test-aa-notify.py",
 line 178, in test_help_contents
  05:17:31 ERROR| [stderr]     self.assertEqual(expected_output_is, output, 
result + output)
  05:17:31 ERROR| [stderr] AssertionError: 'usag[189 chars]ptional arguments:\n 
 -h, --help            sh[746 chars]de\n' != 'usag[189 chars]ptions:\n  -h, 
--help            show this hel[735 chars]de\n'
  05:17:31 ERROR| [stderr]   usage: aa-notify [-h] [-p] [--display DISPLAY] [-f 
FILE] [-l] [-s NUM] [-v]
  05:17:31 ERROR| [stderr]                    [-u USER] [-w NUM] [--debug]
  05:17:31 ERROR| [stderr]
  05:17:31 ERROR| [stderr]   Display AppArmor notifications or messages for 
DENIED entries.
  05:17:31 ERROR| [stderr]
  05:17:31 ERROR| [stderr] - optional arguments:
  05:17:31 ERROR| [stderr] + options:
  05:17:31 ERROR| [stderr]     -h, --help            show this help message and 
exit
  05:17:31 ERROR| [stderr]     -p, --poll            poll AppArmor logs and 
display notifications
  05:17:31 ERROR| [stderr]     --display DISPLAY     set the DISPLAY 
environment variable (might be needed if
  05:17:31 ERROR| [stderr]                           sudo resets $DISPLAY)
  05:17:31 ERROR| [stderr]     -f FILE, --file FILE  search FILE for AppArmor 
messages
  05:17:31 ERROR| [stderr]     -l, --since-last      display stats since last 
login
  05:17:31 ERROR| [stderr]     -s NUM, --since-days NUM
  05:17:31 ERROR| [stderr]                           show stats for last NUM 
days (can be used alone or with
  05:17:31 ERROR| [stderr]                           -p)
  05:17:31 ERROR| [stderr]     -v, --verbose         show messages with stats
  05:17:31 ERROR| [stderr]     -u USER, --user USER  user to drop privileges to 
when not using sudo
  05:17:31 ERROR| [stderr]     -w NUM, --wait NUM    wait NUM seconds before 
displaying notifications (with
  05:17:31 ERROR| [stderr]                           -p)
  05:17:31 ERROR| [stderr]     --debug               debug mode
  05:17:31 ERROR| [stderr]  : Got output "usage: aa-notify [-h] [-p] [--display 
DISPLAY] [-f FILE] [-l] [-s NUM] [-v]
  05:17:31 ERROR| [stderr]                  [-u USER] [-w NUM] [--debug]

  [Test case]

  Simply run test-aa-notify.py from the autopkgtests.

  [Fix]

  Update the expected output returned by `aa-notify --help` in test-aa-
  notify.py.

  [Regression potential]

  This is just an autopkgtest, we may see regressions if the test is
  used with older version of apparmor-notify. With newer versions
  there's no risk of regressions.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/1961196/+subscriptions


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to