From Fedora Project Wiki

mNo edit summary
(rename "target size" to "maximum size" per https://lists.fedoraproject.org/archives/list/test@lists.fedoraproject.org/thread/ABIGYREPXUPSAMJH3YREQ2PJGXZB4GRF/)
 
(47 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Template:Associated_release_criterion|Beta|image-size-requirements}}
{{QA/Test_Case
{{QA/Test_Case
|description=This test validates that ISO images ('''CD''', '''Live''', and '''DVD''') are small enough to fit on the corresponding media.
|description=All ISO images must be small enough to fit on the corresponding media. This test does not apply to disk image files (e.g. ARM and Cloud disk images): their compressed size is not relevant to their deployment, and restrictions on their uncompressed size are applied during the compose process.
|actions=
|actions=
# Inspect the size of '''CD''' install media. The {{command|ls -sh}} command can be used to display the size of the image.
==== Automated checking ====
# Repeat the same inspection, but for the '''Live''' media.
You can run this test easily with the {{pkg|relval}} tool. Run {{command|dnf install relval}} to install it, if you do not already have it, on any Fedora system.
# Finally, inspect the size of the '''DVD''' media.
 
This will run the size checks for the ''current'' compose, and report them to the wiki:
<pre>$ relval size-check --username <fas_user_name></pre> 
 
To run the checks for a specific compose, you can run:
<pre>$ relval size-check --release=NN --milestone=[Alpha,Beta,Final] --compose=COMPOSE --username <fas_user_name></pre>
Example:
<pre>$ relval size-check --release=24 --milestone=Beta --compose=1.6 --username <fas_user_name></pre>
for checking <code>24_Beta-1.6/</code> compose directory.
 
==== Manual checking ====
 
If you have the image downloaded locally, view the size of the file in bytes like this:
<pre>$ du -b Fedora-Server-netinst-x86_64-21_Alpha.iso
419430400 Fedora-Server-netinst-x86_64-21_Alpha.iso</pre>
If you don't have the image downloaded locally, query the size using HTTP headers like this:
<pre>$ curl -sI http://server/image.iso | grep Content-Length
Content-Length: 419430400</pre>
Check all ISO files available for this specific compose.
 
|results=
|results=
# The installer '''CD''' images are of a size ''greater than'' '''2 MiB''', and ''less than or equal to'' '''700 MiB'''.  An example using the {{command|ls}} command:
# The size of checked images is less than or equal to the size specified as ''maximum size'' at [[Releases/{{FedoraVersionNumber|next}}/ReleaseBlocking]] (or at [[Releases/{{FedoraVersionNumber|next}}/Spins]] for spins not covered on the former page).
#: <pre># ls -sh Fedora-13-Beta-x86_64-disc*.iso
#: 692M Fedora-13-Beta-x86_64-disc1.iso  694M Fedora-13-Beta-x86_64-disc4.iso
#: 694M Fedora-13-Beta-x86_64-disc2.iso  693M Fedora-13-Beta-x86_64-disc5.iso
#: 681M Fedora-13-Beta-x86_64-disc3.iso  150M Fedora-13-Beta-x86_64-disc6.iso</pre>
# The installer '''Live''' images are of a size ''greater than'' '''2 MiB''', and ''less than or equal to'' '''1 GB''' <ref>As of Fedora 13, live media is intended for USB media keys and not for CD images. For more details on this change, see [[Features/DesktopLiveImageTarget]].</ref>.  An example using the {{command|ls}} command (with the <code>--si</code> option for SI units):
#: <pre># ls -sh --si F13-Beta-x86_64-Live.iso
#: 987M F13-Beta-x86_64-Live.iso</pre>
# The installer '''DVD''' images are of a size ''greater than'' '''2 MiB''', and ''less than or equal to'' '''4.7 GB'''.  An example using the {{command|ls}} command (with the <code>--si</code> option):
#: <pre># ls -sh --si Fedora-13-Beta-x86_64-DVD.iso
#: 3.8G Fedora-13-Beta-x86_64-DVD.iso</pre>
<references/>
}}
}}


[[Category:Installer_Image_Sanity_Test_Cases]]
[[Category:Installer_Image_Sanity_Test_Cases]]

Latest revision as of 13:06, 16 September 2019

Associated release criterion
This test case is associated with the Fedora_42_Beta_Release_Criteria#image-size-requirements release criterion. If you are doing release validation testing, a failure of this test case may be a breach of that release criterion. If so, please file a bug and nominate it as blocking the appropriate milestone, using the blocker bug nomination page.


Description

All ISO images must be small enough to fit on the corresponding media. This test does not apply to disk image files (e.g. ARM and Cloud disk images): their compressed size is not relevant to their deployment, and restrictions on their uncompressed size are applied during the compose process.


How to test

Automated checking

You can run this test easily with the relval tool. Run dnf install relval to install it, if you do not already have it, on any Fedora system.

This will run the size checks for the current compose, and report them to the wiki:

$ relval size-check --username <fas_user_name>

To run the checks for a specific compose, you can run:

$ relval size-check --release=NN --milestone=[Alpha,Beta,Final] --compose=COMPOSE --username <fas_user_name>

Example:

$ relval size-check --release=24 --milestone=Beta --compose=1.6 --username <fas_user_name>

for checking 24_Beta-1.6/ compose directory.

Manual checking

If you have the image downloaded locally, view the size of the file in bytes like this:

$ du -b Fedora-Server-netinst-x86_64-21_Alpha.iso
419430400	Fedora-Server-netinst-x86_64-21_Alpha.iso

If you don't have the image downloaded locally, query the size using HTTP headers like this:

$ curl -sI http://server/image.iso | grep Content-Length
Content-Length: 419430400

Check all ISO files available for this specific compose.

Expected Results

  1. The size of checked images is less than or equal to the size specified as maximum size at Releases/42/ReleaseBlocking (or at Releases/42/Spins for spins not covered on the former page).