From Fedora Project Wiki

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
{{draft}}
{{admon/important|If you can somehow improve quality of this document, please join the fight and help}}
{|border="1"
{|border="1"
|-style="color: white; background-color: #3074c2; border:1px; font-weight: bold"  
|-style="color: white; background-color: #3074c2; border:1px; font-weight: bold"  
| DATE || TIME || WHERE
| DATE || TIME || WHERE
|-
|-
| '''2009-08-20''' || From ''12:00'' to ''21:00'' UTC (8am - 5pm EDT, 14:00 - 23:00 CET) || [irc://irc.freenode.net/fedora-test-day #fedora-test-day] ([http://webchat.freenode.net/?channels=fedora-test-day webirc])
| '''2009-08-20''' || From ''12:00'' to ''21:00'' UTC (8am - 5pm EDT, 14:00 - 23:00 CET) || [irc://irc.freenode.net/fedora-qa #fedora-qa] ([http://webchat.freenode.net/?channels=fedora-qa webirc])
|-
|-
|}
|}


== Testing ABRT ==
Today's installment of Fedora Test Day will focus on '''Automated Bug Reporting Tool (ABRT)'''. This tool should help non-power users with bug reporting, making it as easy as a few mouse clicks. ABRT is a daemon that watches for application crashes. When a crash occurs, it collects the crash data (core file, application's command line etc.) and takes action according to the type of application that crashed and according to the configuration in the abrt.conf configuration file.
''Bottom line'': do not hunt the bugs with a pitchforks, rather use bugzappers/big light source to draw them from the dark and [http://fedorapeople.org/~dpravec/AsciiArt/MyBugZappers.html kill them easily at close range].


== What to test? ==
ABRT should be easy for users and very useful for developers and admins. Ease of crash/bug reporting and quick response from maintainers based on info from ABRT should make Fedora more stable and thus more attractive for users.


Today's installment of Fedora Test Day will focus on '''Automated Bug Reporting Tool ([[Features/ABRT|ABRT]])'''. This tool should help non-power users with bug reporting, making it as easy as a few mouse clicks. [[Features/ABRT|ABRT]] is a daemon that watches for application crashes. When a crash occurs, it collects the crash data (core file, application's command line etc.) and takes action according to the type of application that crashed and according to the configuration in the abrt.conf configuration file.
We will test:  
''Bottom line'': do not hunt the bugs with a pitchforks, rather use bugzappers/big light source to draw them from the dark and [http://fedorapeople.org/~dpravec/AsciiArt/MyBugZappers.html kill them easily at close range].


[[Features/ABRT|ABRT]] should be easy for users and very useful for developers and admins. Ease of crash/bug reporting and quick response from maintainers based on info from [[Features/ABRT|ABRT]] should make Fedora more stable and thus more attractive for users.
* ABRT GUI;
* compiled (C/C++) programs support;
* Python programs support;
* detection if apps are from supported packages;
* using configured plugins:
** database plugin;
** bugzilla plugin (report crash to bugzilla);
** file transfer plugin (transfer crash data via network);
** mailx plugin (send mail when crash happens);
** kernel oops plugin;
** RunApp plugin (run arbitrary application when crash happens).


== Who's available ==
== Who's available ==


The following people will be available for testing, workarounds, bug fixes, and general discussion:
The following people will be available for testing, workarounds, bug fixes, and general discussion:
* Development - [[User:zprikryl|Zdeněk Přikryl]] (zprikryl), [[User:jmoskovc|Jiří Moskovčák]] (jmoskovc)
* Development - [[User:zprikryl| Zdenek Prikryl]] (confirmed) [[User:jmoskovc| Jiri Moskovcak]] (confirmed) '''<<FIXME: Confirmation needed>>'''
* Quality Assurance - [[User:dpravec|David Pravec]] (dpravec), [[User:kparal|Kamil Páral]] (kparal), [[User:jlaska|James Laska]] (jlaska), [[User:mnowak|Michal Nowak]] (mnowak)
* Quality Assurance - [[User:dpravec| David Pravec]], [[User:kparal| Kamil Páral]], [[User:jlaska| James Laska]]


== What's needed to be able to test ==
== Prerequisite for Test Day ==


* A system with some kind of network connection
You will need to get current ABRT (select your method):
* '''Fully updated''' Rawhide or Fedora 11 installation  with ABRT installed or special [[#Live_Image|ABRT TestDay Live image]] (i686 or x86_64)
# install latest ABRT from Rawhide
# install latest ABRT from its development repository on Fedora 11
'''<<FIXME: for now we have only internal [[RedHat]] IP server, setup public repository!>>'''. For Redhat internal abrt development server create /etc/yum.repos.d/abrt.repo containing:


=== How to install ABRT ===
<pre>
If you do not use the provided LiveCD, but you use your own Fedora 11 or Rawhide installation, you need to install latest ABRT packages by running following commands:
[abrt]
name=ABRT
baseurl=http://10.34.33.153/$releasever/$basearch/
gpgcheck=0
enabled=1
</pre>
# download and burn ABRT Testing CD ([http://fedorapeople.org/~dpravec/testdays/2009-08-20_ABRT/ ISO images] will be available at least 24 hours before the test day starts)
 
{{admon/important| Note: for reporting to work well, you should have a ''fully-updated system'' (Fedora 11 or Rawhide). Reporting uses <code>-debuginfo</code> packages, which have to match the version of the corresponding crashed program's packages. This also avoids reporting a bug which has already been fixed in a later version of the software. }}
 
 
== ABRT Documentation ==
* [https://fedoraproject.org/wiki/Features/ABRTF12 ABRT features, overview]
* [https://fedorahosted.org/abrt/wiki ABRT Home page] (trac wiki)
* [http://fedoraproject.org/w/uploads/a/ab/ABRT.odp ABRT FUDCon Berlin 2009 presentation]
* ABRT was in the past called [[Features/CrashCatcher|CrashCatcher]]
 
== How to start using ABRT  ==
 
Install abrt and plugins:
<pre># yum install abrt-desktop</pre>
 
This is not needed when you will use [http://fedorapeople.org/~dpravec/testdays/2009-08-20_ABRT/ ABRT TestDay Live CD].
{{admon/important| After installation of ABRT you should ''reboot'' your computer to have everything working properly.}}


First add correct repository:
* '''Fedora 11:'''
<pre>
<pre>
curl -o /etc/yum.repos.d/abrt.repo  http://jmoskovc.fedorapeople.org/abrt.repo
# chkconfig abrt on
# reboot
</pre>
</pre>
* '''Rawhide:'''
 
=== Test basic functionality ===
 
Now if something crashes, ABRT will handle the crash. If you want to  test this, crash something, for example:
<pre>
<pre>
curl -o /etc/yum.repos.d/abrt-rawhide.repo  http://jmoskovc.fedorapeople.org/abrt-rawhide.repo
$ xfontsel &
$ killall -6 xfontsel
</pre>
</pre>


Now install/update ABRT:
An icon will appear in the notification area.
You can now run the GUI:
<pre>
<pre>
su
$ abrt-gui &
rm -f /var/cache/abrt/abrt-db
yum remove kerneloops
yum install abrt-desktop
reboot
</pre>
</pre>


Please do not forget to '''reboot'''. It's needed after installing [[Features/ABRT|ABRT]].
Now select the crash, click "report" to report it, or click "delete" to delete it.
 
{{admon/tip|ABRT packages were updated|Latest package version is 0.0.7.2-3. If yum doesn't see the update, you have to <code>yum clean all</code>. Restart the service <code>service abrt restart</code> after the update.}}
 
=== '''Live Image''' ===
 
Optionally, you may download a non-destructive rawhide live image for your architecture with latest ABRT pre-installed. Tips on using a live image are available at [[FedoraLiveCD]]. For Fedora on USB flash disk consult [[FedoraLiveCD/USBHowTo]].
 
{|
! Architecture !! SHA256
|-
| [http://dpravec.fedorapeople.org/testdays/2009-08-20_ABRT/testday-20090820_i686-2.iso i686] || <code>635e295f50abf3fc7fc765c658ce68e86428c5812f3ca0e648fa26d33f90cd86</code>
|-
| [http://dpravec.fedorapeople.org/testdays/2009-08-20_ABRT/testday-20090820_x86_64-2.iso x86_64] || <code>542047d8d09a4bd2ec9a8da7e2ac3b17e862ba88e4014aa00c153c7d6ea86622</code>
|}


{{admon/important|Check if you have latest images|There were older images available for some time, but when they have been updated with newer ABRT version, we produced new ones. Please make sure you have the latest image by verifying the checksum (run <code>sha256sum  testday-20090820*.iso</code> ). Thanks.}}
=== ABRT Test Cases to be tested ===


== How to test ==
<!-- Provide a list of test areas or test cases that you'd like contributors to execute.  For other examples, see [[:Category:Test_Cases]].
-->


=== Test Cases ===
Available tests include:
* [[QA:Testcase_ABRT]] - default crash report
* [[QA:Testcase_ABRT_Logger]] - Logger plugin
* [[QA:Testcase_ABRT_Mailx]] - Mailx plugin
* [[QA:TestCase ABRT BlackList]] - package blacklist
* [[QA:Testcase ABRT GPG check]] --reporting crashes of signed packages only
* [[QA:TestCase ABRT GPG Keys]] -- additional keys for signing packages
* [[QA:Testcase ABRT Actions and Reporters]] -- testing of action/reporting plugins
* [[QA:Testcase ABRT Cron]] -- periodical plugins using cron
* [[QA:Testcase ABRT Plugins]] -- configuring plugins


Follow each of following [[:Category:ABRT_Test_Cases|ABRT Test Cases]] and sum up the results in the tables below. Report your findings also in [https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora&component=abrt Bugzilla] or [https://fedorahosted.org/abrt/report/1 ABRT Trac] (enter FAS username/password). Please provide links to bugreports in results table.
[https://fedoraproject.org/wiki/Category:ABRT_Test_Cases  ABRT_Test_Cases] might have more TestCases in the future.


# [[QA:Testcase_ABRT]] - default crash report
# [[QA:Testcase_ABRT_Logger]] - Logger plugin
# [[QA:Testcase_ABRT_Bugzilla]] - Bugzilla plugin
# [[QA:Testcase_ABRT_Mailx]] - Mailx plugin
# [[QA:TestCase ABRT BlackList]] - package blacklist
# [[QA:Testcase ABRT GPG check]] - reporting crashes of signed packages only
# [[QA:TestCase ABRT GPG Keys]] - additional keys for signing packages
# [[QA:Testcase ABRT Actions and Reporters]] - testing of action/reporting plugins
# [[QA:Testcase ABRT Cron]] - periodical plugins using Cron
# [[QA:Testcase ABRT Plugins]] - configuring plugins
# [[QA:Testcase ABRT CLI]] - CLI interface
# [[QA:Testcase ABRT kernel]] - kernel oops
# [[QA:Testcase ABRT python]] - python tracebacks


=== Known issues ===  
=== Known issues ===  


Consult list of [https://fedorahosted.org/abrt/report/1 active tickets] before reporting an issue.  The most common issues are listed below:
Consult list of [https://fedorahosted.org/abrt/report/1 active tickets] before reporting an issue.  The most common issues are listed below:
* '''Applet (or other icons) in notification area is not visible''' - that's a known bug in Rawhide, please try to run <code>killall notification-area-applet</code> and reload it a few times, it may help
* '''Recreate Report for same crash''' - if you want to recreate a report of same crash, you have to remove ABRT's db and cache (rm -r /var/cache/abrt/*) and make a crash gain
* '''Recreate report for same crash''' - if you want to recreate a report of same crash, you have to delete it using button in GUI and make a crash gain
* '''Nothing happened?''' - if it seems to do nothing, try to disable PGP checking and restart daemon
* '''Nothing happened?''' - if it seems to do nothing, try to disable PGP checking and restart daemon
* '''Graphical warnings''' - gui writes some gtk warnings (it's gtk's fault)
* '''Graphical warnings''' - gui writes some gtk warnings
* '''rpm %requires''' - it needs rpm >= 4.7.0-1
* '''rpm %requires''' - it needs rpm >= 4.7.0-1
* ''' bug-buddy or other crash catching tools might take precedence over ABRT''' if you are using them. ABRT will catch only crashes which are not caught by other tools.
* you cannot use abrt to catch crashes of OpenOffice, KDE and Java apps -- they are catching those crashes themselves.
* '''Cannot catch OpenOffice.org, KDE and Java''' - these applications have a built-in method for capturing failures so it is the same as with BugBuddy etc.
* '''if you're updating from version <= 0.0.5-6 make sure you remove /var/abrt/cache/abrt-db (we've changed the db fomrat and not yet implemented automatic updating mechanism)'''
* '''if you're updating from version <= 0.0.5-6''' - make sure you remove /var/cache/abrt/abrt-db (we've changed the db format and not yet implemented automatic updating mechanism)'''
* '''GUI doesn't inform you about success of failure of a reporting.''' But you can find results in ABRT's db (default path /var/cache/abrt, it is sqlite3 db, table name is "abrt")
* '''GUI doesn't inform you about success of failure of a reporting.''' - But you can find results in ABRT's db (default path /var/cache/abrt, it is sqlite3 db, table name is "abrt") - it should be fixed, but in case it's not try to look for these files


== Test Results ==
== Test Results ==
<!-- Construct a table or list to allow testers to post results.  Each column should be a test case or configuration, and each row should consist of test results.  For example: -->


=== Issues that were identified ===
=== Issues that were identified ===


Don't report duplicates, thanks :) Just write a comment to the bugzilla that you have also noticed the bug.
{| border="1px"
 
|-style="color: white; background-color: #3074c2; font-weight: bold"  
{| class="wikitable sortable" border="1"
| Tester || Description || Bug references
! Tester  
! Description
! Bug references
|-
| [[User:kparal]]
| Right click on applet hides the applet but does nothing
| {{bz|518386}}
|-
|-
| [[User:guaneryu]]
|  [[User:FasUser]] || ..... || [http://bugzilla.redhat.com/show_bug.cgi?id=xxx #xxx]  
| OpenGPGCheck option takes no effect
| {{bz|518396}} CLOSED
|-
| [[User:czhang]]
| testcase #1: no item can be selected after clicked abrt-gui icon if other user's application crashes.
| {{bz|518409}} CLOSED
|-
| [[User:mhlavink]]
| continuous reporting of one kernel oops
| {{bz|518413}}
|-
| [[User:mhlavink]]
| ordinary user's applet shows up for root owned crashes
| {{bz|518420}}
|-
| [[User:mhlavink]]
| abrt silently starts when plugin is configured but not installed
| {{bz|518422}}
|-
| [[User:hdong]]
| testcase #8: CCpp:<APPNAME> doesn't work
| {{bz|518414}} CLOSED
|-
| [[User:azelinka]]
| report window larger that screen (no horizontal scrolling)
| {{bz|518425}} CLOSED
|-
| [[User:azelinka]]
|  bugzilla plugin can't detect correct component for a bug
| {{bz|518438}} CLOSED
|-
| [[User:tpelka]]
|  RunApp do not work - abrt-plugin-runapp installed
| {{bz|518465}} CLOSED
|-
| [[User:vbenes]]
cannot use # in bugzilla password
| {{bz|518459}} CLOSED
|-
| [[User:vbenes]]
| crash while scanning syslog
| {{bz| 518472}}
|-
| [[User:vbenes]]
| missing python-sexy dependency
| FIXED no bz
|-
| [[User:dpravec]]
| it would be nice for some admins to be able to catch and process crashes of theirs own compiled (unpackaged, unsigned) applications. Not for Bugzilla plugin, but for some custom reporting/actions.
| Trac [https://fedorahosted.org/abrt/ticket/73 #73]
|-
| [[User:dpravec]]
| when abrt is upgrading from older version, the old database is making it confused. Dont force users to rm the file manually, detect this during upgrade and migrate the database, or just backup it.
| Trac [https://fedorahosted.org/abrt/ticket/74 #74]
|-
| [[User:tpelka]]
| Wouldn't be cool use keyring except plaintext passwords?
| TBD
|-
| [[User:azelinka]]
|  user configuration of plugins doesn't survive service restart
| {{bz|518457}}
|-
| [[User:mnowak|Michal Nowak]]
| abrt-gui allows "sending" report which is not in existing anymore
| Trac [https://fedorahosted.org/abrt/ticket/75 #75]
|-
| [[User:jlaska]]
| Missing %requirse on python-sexy
| {{bz|518488}} -  Missing %requires python-sexy - ImportError: No module named sexy
|-
| [[User:jlaska]]
| /usr/sbin/abrt segfaults on startup (both abrt-0.0.7.1-1.fc12 and abrt-0.0.7.2-3.fc12)
| {{bz|518498}} -  Segmentation fault. 0x006aa95e in two_way_short_needle (needle_len=
|-
| [[User:jlaska]]
| The bugzilla plugin works great, however gdb segfaulted while trying to grab a backtrace from the original failure
| {{bz|FIXME}}
|-
| [[User:jkoten]]
| testcase #8
  CCpp = Logger //logger is not silent for transmission, logs the crash 
  CCpp:transmission = Mailx("[abrt] Transmission")
| {{bz|518606}}
|-
|| [[User:jkoten]]
| testcase #8
  CCpp = Logger, Mailx
  CCpp:transmission = Mailx("[abrt] Transmission") //abrt crashes when reporting transmission crash 
| {{bz|518609}}
|-
|-
|}
|}
Line 210: Line 140:
=== Things that work alright ===
=== Things that work alright ===


{| class="wikitable sortable" border="1"
{| border="1px"
! Tester
|-style="color: white; background-color: #3074c2; font-weight: bold"
! Description
| Tester || Description
|-
| [[User:guaneryu]]
|
*1. Followed the testcase description, got the expected result
*2. Followed the testcase description, got the expected result
*3. Followed the testcase description, got the expected result
*4. Followed the testcase description, got the expected result
*5. Followed the testcase description, got the expected result
*9. Followed the testcase description, added "5 = Logger" at the [cron] section, got expected result from "abrt -d" output
*10.Followed the testcase description, changed "MaxCrashReportsSize" to 0 and no crash could be detected
*11.Followed the testcase description, got the expected result
*12.Followed the testcase description, got the expected result from command line, and abrt-applet popped up a notification but no items listed in abrt-gui
|-
| [[User:kparal]]
| testcase #1 worked ok
|-
| [[User:hdong]]
|
*1.Testcase_ABRT            get expected results, but some crashed process icon miss in abrt-gui item list, others show
*2.Testcase_ABRT_Logger    PASS
*3.Testcase_ABRT_Bugzilla  PASS
*4.Testcase_ABRT_Mailx      PASS
*5.TestCase ABRT BlackList  PASS
*9.Testcase ABRT Cron      PASS
*10.Testcase ABRT Plugins  get expected results, set MaxCrashReportsSize to 0,no crash could be detected
*11.Testcase ABRT CLI      PASS
*12.Testcase ABRT kernel    get expected results, abrt-applet poped up the notification but no items listed in abrt-gui
|-
| [[User:czhang]]
| testcase #2~#5, #9~#12 work as what expected.
|-
| [[User:twaugh]] || Catching Python traceback
|-
| [[User:mvadkert]]
| testcase #2~#5 work as what expected.
|-
| [[User:vbenes]]
|
* testcase #1 PASS
* testcase #2 PASS
* testcase #3 PASS
* testcase #4 PASS
* testcase #5 PASS
* testcase #6 N/A
* testcase #7 N/A
* testcase #8 TBD
* testcase #9 TBD
* testcase #10 PASS
* testcase #11 TBD
* testcase #12 TBD
* testcase #13 TBD
|-
| [[User:jlaska]]
| PASS ([[QA:Testcase_ABRT_Bugzilla]], [[QA:Testcase_ABRT_Logger]])
|-
|-
| [[User:jkoten]]
| [[User:FasUser]] || ..............
|
* testcases #1 - #5; #9 - #13 PASS 
* testcase #8 Partial success - ActionsAndReporters = Mailx("[abrt] !!!!crash was detected!!!!!"), Logger, RunApp("ls", "ls-output") // works as expected - plugins were activated immediately after a crash occurs.
|-
|-
|}
|}


  [[Category:Fedora 12 Test Days]]
 
{{admon/warning| TODO: some tools/scripts/icons for users to help with testing. Let the user easily monitor what is going on, or give him some tools so he can test ABRT even without command line tools. Or is this a bad idea? Please help us with this!}}
 
{{admon/warning| TODO: should users during ABRT test day report bugs directly into [[Bugzilla]]? How can we delete all such "bugs" later if they will eat too much space? Or will we use another Bugzilla? Where? How? ? Who can help?}}
 
[[Category:Test Days]]
 
[[Category:Draft_documentation]]
Please note that all contributions to Fedora Project Wiki are considered to be released under the Attribution-Share Alike 4.0 International (see Fedora Project Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please solve the following task below and enter the answer in the box (more info):

Cancel Editing help (opens in new window)