From Fedora Project Wiki
No edit summary |
No edit summary |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{QA/Test_Case | {{QA/Test_Case | ||
|description=This test case tests whether pushing builds to [http://koji.fedoraproject.org Koji] works as expected. | |description=This test case tests whether pushing builds to [http://koji.fedoraproject.org Koji] works as expected. Depending on the tester, this will include scratch builds and regular builds. We welcome testers who have a package for which they'd need to push a regular Koji build (e.g. updating a package). | ||
|setup= | |setup= | ||
# Boot into the machine/VM you wish to test | # Boot into the machine/VM you wish to test | ||
# Ensure the {{ | # Ensure the {{command|eclipse-fedorapackager-0.2.1-1.fc16}} package '''IS''' installed. Install it via {{command|yum install eclipse-fedorapackager-0.2.1-1.fc16}}. | ||
# Make sure that file {{command|~/.fedora.cert}} exists and your FAS SSH key is properly set up in Eclipse and the public key properly uploaded to the FAS account system. | # Make sure that file {{command|~/.fedora.cert}} exists and your FAS SSH key is properly set up in Eclipse and the public key properly uploaded to the FAS account system. | ||
|actions= | |actions= | ||
# Open Eclipse and use a new workspace. {{command|eclipse -data test_day_20111013_fpe_koji_builds}} | # Open Eclipse and use a new workspace. {{command|eclipse -data test_day_20111013_fpe_koji_builds}} | ||
# Press {{ | # Press {{key_press|Ctrl|Alt|F}} {{key_press|I}} to open the import wizard. Alternatively press {{key_press|Ctrl|3}} and start typing "Projects from Fedora Git", then press return. | ||
# Enter the | # Enter the name of a package you maintain or use package {{package|eclipse-fedorapackager}}. If you use package {{package|eclipse-fedorapackager}} make sure to clone anonymously by selecting the appropriate checkbox and click "Finish". | ||
# The package you've just cloned should show up in your workspace | # The package you've just cloned should show up in your workspace | ||
# Expand the project you've cloned into your workspace and double-click the .spec file in it. The .spec file should open in the editor. | # Expand the project you've cloned into your workspace and double-click the .spec file in it. The .spec file should open in the editor. | ||
# Right-click in the .spec file and select "Fedora Packager" => "Perform Scratch Build", alternatively press {{ | # Koji scratch build: Right-click in the .spec file and select "Fedora Packager" => "Perform Scratch Build", alternatively press {{key_press|Ctrl|Alt|F}} {{key_press|X}} with the .spec file open in the Eclipse editor view. This will check if there are un-pushed changes on the current local branch (i.e. may prompt for SSH passphrase) and will push a scratch build to Koji. | ||
# | # Regular Koji build (optional): If you have a package which needs updating, update the .spec file, make sure that changes have been pushed and then push a regular build. Right-click in the .spec file and select "Fedora Packager" => "Push Build to Koji" or alternatively press {{key_press|Ctrl|Alt|F}} {{key_press|K}}. | ||
|results= | |results= | ||
# On successful Koji build pushes you should see messages similar to this: [[Image:KojiBuildPopupMessage.png]] | # On successful Koji build pushes you should see messages similar to this: [[Image:KojiBuildPopupMessage.png]] | ||
# Moreover, there should be an entry in the Eclipse error log detailing the URL to the task ID. You can show the Error Log view by {{ | # Moreover, there should be an entry in the Eclipse error log detailing the URL to the task ID. You can show the Error Log view by {{key_press|Alt|Shift|Q}} {{key_press|Q}} => "General" => "Error Log". Note that the Error Log view is part of PDE, which means you'd have to have {{command|eclipse-pde}} installed. | ||
# Clicking the link as provided in the message dialog, should show the familiar Koji Web interface. Make sure user data and other task specific information is | # Clicking the link as provided in the message dialog, should show the familiar Koji Web interface. Make sure user data and other task specific information is as expected. | ||
}} | }} |
Latest revision as of 02:03, 29 September 2011
Description
This test case tests whether pushing builds to Koji works as expected. Depending on the tester, this will include scratch builds and regular builds. We welcome testers who have a package for which they'd need to push a regular Koji build (e.g. updating a package).
Setup
- Boot into the machine/VM you wish to test
- Ensure the
eclipse-fedorapackager-0.2.1-1.fc16
package IS installed. Install it viayum install eclipse-fedorapackager-0.2.1-1.fc16
. - Make sure that file
~/.fedora.cert
exists and your FAS SSH key is properly set up in Eclipse and the public key properly uploaded to the FAS account system.
How to test
- Open Eclipse and use a new workspace.
eclipse -data test_day_20111013_fpe_koji_builds
- Press Ctrl+Alt+F I to open the import wizard. Alternatively press Ctrl+3 and start typing "Projects from Fedora Git", then press return.
- Enter the name of a package you maintain or use package
eclipse-fedorapackager
. If you use packageeclipse-fedorapackager
make sure to clone anonymously by selecting the appropriate checkbox and click "Finish". - The package you've just cloned should show up in your workspace
- Expand the project you've cloned into your workspace and double-click the .spec file in it. The .spec file should open in the editor.
- Koji scratch build: Right-click in the .spec file and select "Fedora Packager" => "Perform Scratch Build", alternatively press Ctrl+Alt+F X with the .spec file open in the Eclipse editor view. This will check if there are un-pushed changes on the current local branch (i.e. may prompt for SSH passphrase) and will push a scratch build to Koji.
- Regular Koji build (optional): If you have a package which needs updating, update the .spec file, make sure that changes have been pushed and then push a regular build. Right-click in the .spec file and select "Fedora Packager" => "Push Build to Koji" or alternatively press Ctrl+Alt+F K.
Expected Results
- On successful Koji build pushes you should see messages similar to this:
- Moreover, there should be an entry in the Eclipse error log detailing the URL to the task ID. You can show the Error Log view by Alt+⇧ Shift+Q Q => "General" => "Error Log". Note that the Error Log view is part of PDE, which means you'd have to have
eclipse-pde
installed. - Clicking the link as provided in the message dialog, should show the familiar Koji Web interface. Make sure user data and other task specific information is as expected.