mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 19:21:50 +00:00
Stop running linters concurrently (#36714)
* ci: try pleasing the docsite linter
* linearize 🐪
This commit is contained in:
parent
eb7c9f73d2
commit
bd4ab81872
@ -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**.
|
||||
{{""}}
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user