• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

capillariesio / capillaries / 19619258155

23 Nov 2025 11:57PM UTC coverage: 91.472% (-0.7%) from 92.204%
19619258155

push

github

web-flow
AMQP 1.0 (#91)

Completely rewrote message broker comm layer, removed support for RabbitMQ AMQP 0.9.1, added support for AMQP 1.0 - tested with RabbitMQ 4.2.0, AciveMQ Classic 6.1.8, ActiveMQ Artemis 2.44.0.

Fixed a few bugs in/around message handler.

Improvements in TF deployment.

Removed k8s POC and Amazon Keyspaces deployment, they are now in https://github.com/capillariesio/capillaries-experimental.

Added experimental CapiMQ message broker.

242 of 312 new or added lines in 5 files covered. (77.56%)

5610 of 6133 relevant lines covered (91.47%)

1.09 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/pkg/sc/script_def_cache.go
1
package sc
2

3
import (
4
        "time"
5

6
        "github.com/hashicorp/golang-lru/v2/expirable"
7
)
8

9
const ScriptDefCacheMaxElements int = 50
10
const ScriptDefCacheElementLife time.Duration = 1
11

12
// WARING: deserialized ScriptDef can take megabytes (big python scripts, big tag maps), so keep an eye on memory consumption
13
// If bad comes to worse, implement file-based caching (will require implementing take/restore ScriptDef snapshot code)
14
var ScriptDefCache *expirable.LRU[string, ScriptInitResult]
15

NEW
16
func NewScriptDefCache() *expirable.LRU[string, ScriptInitResult] {
×
NEW
17
        return expirable.NewLRU[string, ScriptInitResult](ScriptDefCacheMaxElements, nil, ScriptDefCacheElementLife*time.Minute)
×
NEW
18
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc