Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/bdd-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
export GORACE=halt_on_error=1
go test -race -v -coverprofile=core-bdd-coverage.txt -covermode=atomic -run 'TestApplicationLifecycle|TestConfigurationManagement|TestBaseConfigBDDFeatures|TestLoggerDecorator' .
- name: Upload core BDD coverage
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.0 pinned
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v5.5.0 pinned
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: GoCodeAlone/modular
Expand Down Expand Up @@ -124,7 +124,7 @@ jobs:
fi
- name: Upload module BDD coverage
if: always()
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.0 pinned
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v5.5.0 pinned
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: GoCodeAlone/modular
Expand Down Expand Up @@ -200,7 +200,7 @@ jobs:
echo "Merged (fallback) into $OUT from ${#FILES[@]} files" >&2
- name: Upload merged BDD coverage
if: always()
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.0 pinned
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v5.5.0 pinned
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: GoCodeAlone/modular
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
go test -race ./... -v
go test -race -v -coverprofile=coverage.txt -covermode=atomic -json ./... >> report.json
- name: Upload coverage reports to Codecov (unit)
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.0 pinned
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v5.5.0 pinned
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: GoCodeAlone/modular
Expand Down Expand Up @@ -91,7 +91,7 @@ jobs:
go test ./... -v -coverprofile=cli-coverage.txt -covermode=atomic -json >> cli-report.json

- name: Upload CLI coverage reports to Codecov
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.0 pinned
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v5.5.0 pinned
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: GoCodeAlone/modular
Expand Down Expand Up @@ -189,7 +189,7 @@ jobs:
- name: Upload merged total coverage
# Fail the job if Codecov can't find or upload the merged coverage
if: always()
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.0 pinned
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v5.5.0 pinned
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: GoCodeAlone/modular
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/modules-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ jobs:
# BDD tests moved to dedicated module-bdd matrix job

- name: Upload coverage for ${{ matrix.module }}
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.0 pinned
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v5.5.0 pinned
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: GoCodeAlone/modular
Expand Down
2 changes: 1 addition & 1 deletion application.go
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ func (app *StdApplication) InitWithApp(appToPass Application) error {
defer func() {
if r := recover(); r != nil {
mu.Lock()
errs = append(errs, fmt.Errorf("panic initializing module %s: %v", name, r))
errs = append(errs, fmt.Errorf("%w %s: %v", ErrModuleInitializationPanic, name, r))
mu.Unlock()
}
}()
Expand Down
13 changes: 7 additions & 6 deletions errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,13 @@ var (
ErrTenantIsolationViolation = errors.New("tenant isolation violation")

// Reload errors
ErrReloadCircuitBreakerOpen = errors.New("reload circuit breaker is open; backing off")
ErrReloadChannelFull = errors.New("reload request channel is full")
ErrReloadInProgress = errors.New("reload already in progress")
ErrReloadStopped = errors.New("reload orchestrator is stopped")
ErrReloadTimeout = errors.New("reload timed out waiting for module")
ErrDynamicReloadNotEnabled = errors.New("dynamic reload not enabled")
ErrReloadCircuitBreakerOpen = errors.New("reload circuit breaker is open; backing off")
ErrReloadChannelFull = errors.New("reload request channel is full")
ErrReloadInProgress = errors.New("reload already in progress")
ErrReloadStopped = errors.New("reload orchestrator is stopped")
ErrReloadTimeout = errors.New("reload timed out waiting for module")
ErrDynamicReloadNotEnabled = errors.New("dynamic reload not enabled")
ErrModuleInitializationPanic = errors.New("panic initializing module")

// Observer/Event emission errors
ErrNoSubjectForEventEmission = errors.New("no subject available for event emission")
Expand Down
Loading