Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Better "expected results" in ADA

Aperta
#668 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

A common failure in ADA is the result of poor result formatting. In my experience we can significantly improve on this by having the generation use a regular expression for validation rather than the similarity. This is because the system will often use truncated results (which is good from a readability perspective). For example:

{
    "agentPoolProfiles": [
        {
            "name": "nodepool1",
            "count": 1,
            "vmSize": "Standard_DS2_v2",
            "maxPods": 110,
            "osType": "Linux"
        }
    ],
    "dnsPrefix": "AKSClusterxxx-dns",
    "provisioningState": "Succeeded",
    "resourceGroup": "AKSLabResourceGroupxxx",
    "name": "AKSClusterxxx",
    "type": "Microsoft.ContainerService/ManagedClusters",
    ...
} 

However, this is not valid JSON and thus the validation step fails.

In this case, and in many like it, what we are actually looking for is "provisioningState": "Succeeded". Therefore for responses like this one we can use:

<!-- expected_similarity=.*Succeeded -->

On a similar note, it seems the tool gives a default similarity value of 0.3 which, for the most part, is too low to be reliable.

Lingua principale
Python
Stelle
13
Fork
26
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di MicrosoftDocs/executable-docs

Tutte le issue di MicrosoftDocs/executable-docs

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.