Stop running linters concurrently (#36714)

* ci: try pleasing the docsite linter

* linearize 🐪
This commit is contained in:
Jean-Hadrien Chabran 2022-06-07 14:44:45 +02:00 committed by GitHub
parent eb7c9f73d2
commit bd4ab81872
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 9 deletions

View File

@ -2,7 +2,7 @@
This page is an ADR log. Read the first entry to learn about the reasoning and context behind the adoption of ADRs.
Are you considering adding an ADR? Check out the [How-to page](./how-to.md)!
Are you considering adding an ADR? Check out the [How-to page](how-to.md)!
To preserve order, individual documents are prefixed by the **current epoch Unix timestamp**.
{{""}}

View File

@ -65,7 +65,7 @@ func main() {
adrs = append(adrs, adr{
Title: title,
Number: number,
Path: "./" + entry.Name(),
Path: entry.Name(),
Date: time.Unix(int64(ts), 0).Format("2006-01-02"),
})
break

View File

@ -126,12 +126,14 @@ func runCheckScriptsAndReport(ctx context.Context, dst io.Writer, fns ...lint.Ru
// want to allow linters to take any longer.
linterTimeout := 5 * time.Minute
runnerCtx, cancelRunners := context.WithTimeout(ctx, linterTimeout)
for _, fn := range fns {
go func(fn lint.Runner) {
go func() {
for _, fn := range fns {
// go func(fn lint.Runner) {
reportsCh <- fn(runnerCtx, repoState)
wg.Done()
}(fn)
}
// }(fn)
}
}()
go func() {
wg.Wait()
close(reportsCh)

View File

@ -4,9 +4,9 @@
This page is an ADR log. Read the first entry to learn about the reasoning and context behind the adoption of ADRs.
Are you considering adding an ADR? Check out the [How-to page](./how-to.md)!
Are you considering adding an ADR? Check out the [How-to page](how-to.md)!
To preserve order, individual documents are prefixed by the **current epoch Unix timestamp**.
1. _2022-04-26_ [Record architecture decisions](./1650968652-record-architecture-decisions.md)
2. _2022-05-13_ [Use Go for scripting purposes](./1652433602-use-go-for-scripting.md)
1. _2022-04-26_ [Record architecture decisions](1650968652-record-architecture-decisions.md)
2. _2022-05-13_ [Use Go for scripting purposes](1652433602-use-go-for-scripting.md)