Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-16242

[hammer-cli-foreman-admin] [rubygem-hammer_cli_foreman_admin] Pull 100% completed translations from the Phrase (a.k.a Memsource), and package them into installable build, to determine readiness for Sat-6.13 L10N QA milestone

XMLWordPrintable

    • Important

      Description of problem:
      Pull 100% completed translations from the Translation Platform - Phrase (a.k.a Memsource - https://cloud.memsource.com/web/project2/show/ASQQUcSoKMp1pag1fdbooa/) for Sat-6.13 Resource: [hammer-cli-foreman-admin] (also listed at http://satellite.transtats.psi.redhat.com/pipelines/release/sat-6-13), and package them into an installable build, to determine readiness for Sat-6.13 L10N QA event.

      For Sat-6.13 Resource - [hammer-cli-foreman-admin] :

      1) Translations Statistics of 100% completed translations pulled/downloaded from the Phrase, for in-house locales: Japanese (ja), Chinese Simplified (zh_CN) and French (fr), is as follows:

      $ find . ( -name "hammer-cli-foreman-admin_fr.po" -o -name "hammer-cli-foreman-adminja.po" -o -name "hammer-cli-foreman-admin_zh_cn.po" ) -exec msgfmt -vvv -o /dev/null {} \;
      ./download_4/fr/hammer-cli-foreman-admin__fr.po: 14 translated messages.
      ./download_6/zh_cn/hammer-cli-foreman-admin__zh_cn.po: 14 translated messages.
      ./download_6/ja/hammer-cli-foreman-admin__ja.po: 14 translated messages.
      $

      2) However, as per http://satellite.transtats.psi.redhat.com/jobs/log/8016326d-fbc4-4488-8bbc-3158d6a51bf5/detail ,

      Calculated Stats rubygem-hammer_cli_foreman_admin-1.1.0-1.el8sat built on 2021-12-15 20:16:02.695259
      Language Total Translated Fuzzy Untranslated Complete

      Calculate Translation Stats
      2023-02-15 12:27:33.9…

      (":: Calculated Stats, {'id': 'brew - satellite-6.13-rhel-8-candidate', "
      "'stats': [

      {'unit': 'MESSAGE', 'locale': 'en', 'translated': 0, " "'untranslated': 14, 'fuzzy': 0, 'total': 14}

      ,

      {'unit': 'MESSAGE', 'locale': " "'en', 'translated': 0, 'untranslated': 14, 'fuzzy': 0, 'total': 14}

      ]}")

      Also,
      [root@i18nqe-vm008 ~]# rpm -q rubygem-hammer_cli_foreman_admin
      rubygem-hammer_cli_foreman_admin-1.1.0-1.el8sat.noarch
      [root@i18nqe-vm008 ~]# rpm -ql rubygem-hammer_cli_foreman_admin-1.1.0-1.el8sat | grep locale
      /usr/share/gems/gems/hammer_cli_foreman_admin-1.1.0/locale
      /usr/share/gems/gems/hammer_cli_foreman_admin-1.1.0/locale/en
      /usr/share/gems/gems/hammer_cli_foreman_admin-1.1.0/locale/en/hammer-cli-foreman-admin.edit.po
      /usr/share/gems/gems/hammer_cli_foreman_admin-1.1.0/locale/en/hammer-cli-foreman-admin.po
      /usr/share/gems/gems/hammer_cli_foreman_admin-1.1.0/locale/hammer-cli-foreman-admin.pot
      [root@i18nqe-vm008 ~]#

      3) (Above) On comparing 2 with 1, it appears:

      • Only 'locale/en/hammer-cli-foreman-admin.po' found
      • *.po files for other in-house locales: ja, zh_CN and fr, not found in the rpm
      • 100% completed translations from the Phrase are not pulled and packaged yet, into the downstream build

      Version-Release number of selected component (if applicable):
      Satellite-6.13 Snap 10

      How reproducible:
      Always

      Steps to Reproduce:
      1. Pull/download the 100% translations from Translation Platform - Phrase for Sat-6.13 resource: hammer-cli-foreman-admin
      2. Calculate the Translation statistics of PO file using msgfmt utility: find . -name "*.po" -exec msgfmt -vvv -o /dev/null {} \;
      3. Now, to calculate the Translation statistics for said downstream package, either visit - (preferred) http://satellite.transtats.psi.redhat.com/jobs/log/8016326d-fbc4-4488-8bbc-3158d6a51bf5/detail or https://brewweb.engineering.redhat.com/brew/
      3.1 Visit the Brew build system at https://brewweb.engineering.redhat.com/brew/
      3.2 Enter the downstream package name for the aforementioned said Sat-6.13 resource: [hammer-cli-foreman-admin], package: [rubygem-hammer_cli_foreman_admin]
      3.3 Download the said srpm
      3.4 Unpack the sprm
      3.5. Unpack the sources from the SPEC file
      3.6. Calculate the Translation statistics of PO file using msgfmt utility: find . -name "*.po" -exec msgfmt -vvv -o /dev/null {} \;
      4. Compare - Translation statistics obtained in step 3 (Package Build System) with Translation statistics obtained in step 2 (Translation Platform Phrase), and ensure they are same (and there is no difference)

      Actual results:
      1. 100% completed translations from the Phrase are not pulled and packaged yet into an installable downstream build

      Expected results:
      1. Pull 100% completed translations from the Phrase and package them into an installable downstream build

      Additional info:
      1. For aforementioned Sat-6.13 Resource, respective (Build) Changelog could possibly mention: Pull Translations from Phrase or similar, so as to figure it out if downstream Translations are packaged or not
      2. Please refer https://cloud.memsource.com/web/project2/show/ASQQUcSoKMp1pag1fdbooa - as it shows said resource being completed for in-house locales: ja, zh_CN and fr
      3. Currently, did not find downstream bugzilla component for the aforementioned Sat-6.13 Resource i.e. [hammer-cli-foreman-admin], package: [rubygem-hammer_cli_foreman_admin]
      4. Please, suggest if there are other workarounds to know if downstream translations are ideally packaged or not (ideally: fixed_in_version of the build incorporating 100% completed translations pulled from Translation Platform - Phrase, is what is expected here, towards effective resolution of this bug)

            jira-bugzilla-migration RH Bugzilla Integration
            jira-bugzilla-migration RH Bugzilla Integration
            Sandeep Shedmake Sandeep Shedmake
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: