FuelLabs / FuelLabs/github-actions

Different ordering of `items` leads to workflow success/failure

Offen
#30 0 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
bug documentation
Vorherrschende Sprache
JavaScript
Sterne
12
Forks
14
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

I added an item at the end of an `items` array [here](https://github.com/FuelLabs/fuels-ts/pull/1979/commits/8878a01e5e52f97d7684c94c036e16d1e9db8d1f#diff-48d163c9a33d438ae5ffe114ba037546d91027416af1fbd2f9e780c15505253fR470) and it led to [CI failure](https://github.com/FuelLabs/fuels-ts/actions/runs/8497077113/job/23275253795?pr=1979#step:6:1182).
When I [put it](https://github.com/FuelLabs/fuels-ts/pull/1979/commits/d7aa2b1fde86036eb524dcfe0b78a5320d59a1d7) at the beginning of the list the CI workflow [succeeded](https://github.com/FuelLabs/fuels-ts/actions/runs/8497533123/job/23276209837?pr=1979).

I installed the workflow locally and ran `vp-docs.js` against the `fuels-ts` docs. The failing ordering yields this:

```ts
const order = processVPConfig(configFile.split(EOL));
console.log(order);

// Tooling: [],
// Testing: [
// 'Testing in TS',
// 'Setting Up a Custom Chain',
// 'Tweaking the Blockchain'
// ],
// CLI: [],
// fuels: [ 'Config File', 'Commands', 'Binaries', 'Graphql Integration' ],
```

The successful ordering yields this:
```ts
const order = processVPConfig(configFile.split(EOL));
console.log(order);

// Tooling: [ 'GraphQL Integration' ],
// Testing: [
// 'Testing in TS',
// 'Setting Up a Custom Chain',
// 'Tweaking the Blockchain'
// ],
// CLI: [],
// fuels: [ 'Config File', 'Commands', 'Binaries' ],
```

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Beginne mit vp-docs.js und dem im Bericht gezeigten Aufruf processVPConfig(configFile.split(EOL)). Reproduziere die beiden Elementreihenfolgen anhand der fuels-ts-Dokumentation und vergleiche die resultierenden Kategorie-Arrays mit dem Ergebnis des CI-Workflows. Erledigt ist die Aufgabe, wenn die Elementreihenfolge nicht mehr beeinflusst, ob der Workflow erfolgreich ist.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
github-actions, javascript
Bereich
ci-cd, tooling
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.