#179 Drop fedora-health-check Support
Opened 4 months ago by frantisekz. Modified 4 months ago

file modified
+3 -86
@@ -83,75 +83,6 @@ 

    },

  ]

  

- const fti = [

-   {

-     problems: {

-       aarch64: {

-         reason: [

-           "python3.8dist(decorator)",

-           "python3.8dist(numpy)",

-           "python3.8dist(setuptools)",

-           "python3.8dist(six)",

-           "python(abi) = 3.8",

-           "python3.8dist(networkx) >= 2",

-           "python3.8dist(ply) >= 3.4",

-         ],

-         since: "2020-07-17T07:41:32.007689425Z",

-       },

-       armv7hl: {

-         reason: [

-           "python(abi) = 3.8",

-           "python3.8dist(numpy)",

-           "python3.8dist(setuptools)",

-           "python3.8dist(six)",

-           "python3.8dist(networkx) >= 2",

-           "python3.8dist(ply) >= 3.4",

-           "python3.8dist(decorator)",

-         ],

-         since: "2020-07-17T07:41:32.007696065Z",

-       },

-       ppc64le: {

-         reason: [

-           "python(abi) = 3.8",

-           "python3.8dist(decorator)",

-           "python3.8dist(networkx) >= 2",

-           "python3.8dist(ply) >= 3.4",

-           "python3.8dist(numpy)",

-           "python3.8dist(setuptools)",

-           "python3.8dist(six)",

-         ],

-         since: "2020-07-17T07:41:32.007702589Z",

-       },

-       s390x: {

-         reason: [

-           "python3.8dist(networkx) >= 2",

-           "python3.8dist(ply) >= 3.4",

-           "python3.8dist(numpy)",

-           "python3.8dist(setuptools)",

-           "python3.8dist(six)",

-           "python(abi) = 3.8",

-           "python3.8dist(decorator)",

-         ],

-         since: "2020-07-17T07:41:32.007709187Z",

-       },

-       x86_64: {

-         reason: [

-           "python(abi) = 3.8",

-           "python3.8dist(numpy)",

-           "python3.8dist(setuptools)",

-           "python3.8dist(six)",

-           "python3.8dist(decorator)",

-           "python3.8dist(networkx) >= 2",

-           "python3.8dist(ply) >= 3.4",

-         ],

-         since: "2020-07-17T07:41:32.007717430Z",

-       },

-     },

-     release: "Fedora Rawhide",

-     repo: "rawhide",

-   },

- ]

- 

  const orphan = {

    depends_on_orphaned: true,

    direct_dependencies: ["bar"],
@@ -209,7 +140,6 @@ 

      overrides: UNG.EMPTY_ARRAY,

      koschei: UNG.EMPTY_ARRAY,

      orphans: UNG.NOT_ORPHAN,

-     fails_to_install: UNG.EMPTY_ARRAY,

      abrt_reports: UNG.NO_ABRT,

      calendars: [],

      package_versions: {},
@@ -311,8 +241,8 @@ 

                <div className="col-md-12">

                  <p>

                    Packager Dashboard is a service for Fedora package maintainers aiming to provide

-                   all relevant data: FTBFS/FTI status (from both Bugzilla, Koschei and health

-                   check), orphan warnings, bugzillas, pull requests, active overrides and updates -

+                   all relevant data: FTBFS/FTI status (from both Bugzilla, Koschei),

+                   orphan warnings, bugzillas, pull requests, active overrides and updates -

                    at a single place in an easy to read and filter way.

                  </p>

                  <p>
@@ -383,12 +313,6 @@ 

                      </tr>

                      <tr>

                        <th scope="row">

-                         <i className={`fa fa-file-medical-alt mr-1`} />

-                       </th>

-                       <td>FTI or FTBFS (fedora-health-check fails)</td>

-                     </tr>

-                     <tr>

-                       <th scope="row">

                          <i className={`fa fa-user-slash mr-1`} />

                        </th>

                        <td>Orphaned or orphan impacted package</td>
@@ -558,13 +482,6 @@ 

                    data-toggle="tooltip"

                    title=""

                    className={`text-nowrap pointer text-muted font-weight-bold mr-4`}

-                   data-original-title="0 fails in fedora-health-check (FTI/FTBFS)">

-                   <i className={`fa fa-file-medical-alt mr-1`} /> 0

-                 </span>

-                 <span

-                   data-toggle="tooltip"

-                   title=""

-                   className={`text-nowrap pointer text-muted font-weight-bold mr-4`}

                    data-original-title="1 packages orphaned">

                    <i className={`fa fa-user-slash mr-1`} /> 1

                  </span>
@@ -709,7 +626,7 @@ 

                  </p>

                  <Widget

                    title={pkg.name}

-                   {...{ ...pkg.data, fails_to_install: fti }}

+                   {...{ ...pkg.data }}

                    ownershipIcon={null}

                    versions={version}

                    cvesOnly={false}

@@ -138,13 +138,6 @@ 

                className="mr-4"

              />

              <StatIcon

-               category="fti"

-               icon="fa-file-medical-alt"

-               count={stats.fails_to_install}

-               fulltitle={`${stats.fails_to_install} fails in fedora-health-check (FTI/FTBFS)`}

-               className="mr-4"

-             />

-             <StatIcon

                category="orphaned"

                icon="fa-user-slash"

                count={stats.orphans}

@@ -36,7 +36,6 @@ 

        updates,

        overrides,

        koschei,

-       fails_to_install,

        abrt_reports,

        ownershipIcon,

        orphans,
@@ -70,17 +69,10 @@ 

        <Koschei title={title} {...k} key={"koschei" + title + k.release} />

      ))

  

-     const fti_no_src = R.compose(

-       R.filter((r) => R.keys(r).length > 0),

-       R.map((f) => R.pickBy((v, k) => !k.startsWith("src"), f.problems))

-     )(fails_to_install)

- 

-     const fti_items = fails_to_install.map((f) => <FTI title={title} {...f} key={"fti_" + title + f.release + f.repo} isFTI={fti_no_src.length > 0} />)

      const abrt_item = abrt_reports.problems_present? <ABRT {...abrt_reports} pkg={title} /> : null

      const orphan_badge = orphans.orphaned ? <OrphanBadge since={orphans.problematic_since} /> : null

      const orphan_impacted_badge = orphans.depends_on_orphaned ? <OrphanImpactedBadge color="danger">Orphan impacted</OrphanImpactedBadge> : null

      const orphan_item = orphans.depends_on_orphaned? <Orphan {...orphans} title={title}/> : null

-     const fti_src = fails_to_install.map(f => R.keys(f.problems).map(p => p.startsWith("src")).some(R.identity)).some(R.identity)

      const ftbfs_badge = (fti_src || koschei.length > 0) ? <FTBadge>FTBFS</FTBadge> : null

      const fti_badge = fti_no_src.length > 0 ? <FTBadge>FTI</FTBadge> : null

  

file modified
-10
@@ -214,16 +214,6 @@ 

    return static_info.data.orphans[pkg]

  }

  

- export const filterFTI = (options, releases, user_data) => (pkg) => {

-   const { static_info } = user_data

- 

-   return static_info.data.fails_to_install[pkg].filter((fti) => {

-     if (!showRelease(releases, options, fti)) return false

- 

-     return true

-   })

- }

- 

  export const filterABRT = (options, releases, user_data) => (pkg) => {

    const { abrt_reports } = user_data

    if (abrt_reports.status === 204) return NO_ABRT

file modified
-5
@@ -21,7 +21,6 @@ 

        overrides: options.show_overrides ? pkg.data.overrides : EMPTY_ARRAY,

        koschei: options.show_koschei ? pkg.data.koschei : EMPTY_ARRAY,

        orphans: options.show_orphaned ? pkg.data.orphans : NOT_ORPHAN,

-       fails_to_install: options.show_fti ? pkg.data.fails_to_install : EMPTY_ARRAY,

        abrt_reports: options.show_abrt_reports ? pkg.data.abrt_reports : NO_ABRT,

      },

    }
@@ -137,7 +136,6 @@ 

        overrides: filterOverrides(pkg.data.overrides, options, releases),

        koschei: filterKoschei(pkg.data.koschei, options, releases),

        orphans: filterOrphans(pkg.data.orphans, options, releases),

-       fails_to_install: filterFTI(pkg.data.fails_to_install, options, releases),

        abrt_reports: filterABRT(pkg.data.abrt_reports, options, releases),

      },

    }
@@ -149,7 +147,6 @@ 

    (options.show_updates && filtered.updates < unfiltered.updates) ||

    (options.show_overrides && filtered.overrides < unfiltered.overrides) ||

    (options.show_koschei && filtered.koschei < unfiltered.koschei) ||

-   (options.show_fti && filtered.fails_to_install < unfiltered.fails_to_install) ||

    (options.show_orphans && filtered.orphans < unfiltered.orphans) ||

    (options.show_abrt_reports && filtered.abrt_reports < unfiltered.abrt_reports)

  
@@ -160,7 +157,6 @@ 

    pkg.data.updates.length +

    pkg.data.overrides.length +

    pkg.data.koschei.length +

-   pkg.data.fails_to_install.length +

    (pkg.data.abrt_reports.problems_present ? 1 : 0) +

    (pkg.data.orphans.depends_on_orphaned ? 1 : 0) +

    (includeOrphans && pkg.data.orphans.orphaned ? 1 : 0)
@@ -185,7 +181,6 @@ 

      overrides: itemsCntInCategory("overrides"),

      koschei: itemsCntInCategory("koschei"),

      orphans: R.sum(packages.map(pkg => (pkg.data.orphans.depends_on_orphaned ? 1 : 0) + (pkg.data.orphans.orphaned ? 1 : 0))),

-     fails_to_install: itemsCntInCategory("fails_to_install"),

      abrt_reports: R.sum(packages.map(p => p.data.abrt_reports?.outstanding_problems?.length ? 1 : 0)),

    }

  }