Uploaded image for project: 'Product Technical Learning'
  1. Product Technical Learning
  2. PTL-15209

Grading failure in compreview-review2 due to mismatch between course instructions and grading script format for sysinfo.txt

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • en-US (English)

      Please fill in the following information:


      URL: https://rol.redhat.com/rol/app/courses/rh104-9.1/pages/ch08s03
      Reporter RHNID: shasingh01
      Section Title:  h5. Lab: Working with a Linux System                                                                      

      Issue description

      In the RH104 lab titled "Lab: Working with a Linux System", the exercise compreview-review2 fails grading with the message:

      FAIL Validating the contents of the sysinfo.txt file on servera
      FAIL Validating the contents of the sysinfo.txt file on workstation, 

      even when it follows the instructions exactly as provided.

      Steps to reproduce:

      The course content instructs learners to build sysinfo.txt manually using echo and specific values:

      echo "IP: 172.25.250.10/24" >> sysinfo.txt
      echo "Disk: 9.4GB" >> sysinfo.txt
      echo "Memory: 1770MB" >> sysinfo.txt
      echo "Timezone: EST" >> sysinfo.txt

      However, the grading script performs a strict binary comparison using:

      cmp /tmp/.grading/sysinfo.txt /home/student/sysinfo.txt

      The /tmp/.grading/sysinfo.txt is auto-generated by the script using system commands:

      hostname
      ip -br -4 addr show dev eth0 | awk '{ print $3 }'
      df -h --output=size / | grep -v Size
      free -m | awk '/Mem:/ { print $2 }'
      date +%Z

      Therefore, any deviation such as:

       

      spacing differences (e.g. 9.4 GB vs 9.4GB)

      memory format (e.g. 1770MB vs 1770 MB)

      missing MB/GB units

      trailing newline characters

      omission of /24 in CIDR

      will result in a false negative grading outcome.

      Please review, thank you

      Workaround:

       

      Expected result:

              rht-pagomez Patrick Gomez
              shasingh01 Shashi Singh
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: