Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6b138e0646
|
No files matched your search
@@ -1 +0,0 @@
|
|||||||
Acceptance: a fresh protected-branch build must publish through the scheduled trusted publisher and resolve from an empty Maven cache.
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
Organization-scoped CI qualification. Workflow implementation lives in platform-ci; enrollment lives in ci-policy.
|
|
||||||
|
|
||||||
Shared CI tooling visibility approved and public; qualify public consumer access.
|
|
||||||
@@ -1,12 +1,12 @@
|
|||||||
version: 2.1
|
version: 2.1
|
||||||
setup: true
|
setup: true
|
||||||
orbs:
|
orbs:
|
||||||
qqq-orb: kingsrook/qqq-orb@0.8
|
qqq-orb: kingsrook/qqq-orb@0.7.12
|
||||||
workflows:
|
workflows:
|
||||||
setup:
|
setup:
|
||||||
jobs:
|
jobs:
|
||||||
- qqq-orb/generate_pipeline:
|
- qqq-orb/generate_pipeline:
|
||||||
orb_version: '0.8'
|
orb_version: 0.7.12
|
||||||
filters:
|
filters:
|
||||||
branches:
|
branches:
|
||||||
ignore: automation/qbit-rc-pending
|
ignore: automation/qbit-rc-pending
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
name: build
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
jobs:
|
|
||||||
maven:
|
|
||||||
uses: self:KofTwentyTwo/ci-workflows/.gitea/workflows/maven.yaml@v1
|
|
||||||
secrets: inherit
|
|
||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
profile: qbit
|
profile: qbit
|
||||||
orb_version: '0.8'
|
orb_version: 0.7.12
|
||||||
default_branch: develop
|
default_branch: develop
|
||||||
java_version: '21'
|
java_version: '21'
|
||||||
browsers: true
|
browsers: true
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ This QBit provides automatic tracing for QQQ processes. Every execution is logge
|
|||||||
|
|
||||||
### Prerequisites
|
### Prerequisites
|
||||||
|
|
||||||
- QQQ application (v4.1.0+)
|
- QQQ application (v4.0.0+)
|
||||||
- Database backend configured
|
- Database backend configured
|
||||||
|
|
||||||
### Installation
|
### Installation
|
||||||
|
|||||||
@@ -23,13 +23,12 @@
|
|||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<revision>0.3.0-SNAPSHOT</revision>
|
<revision>0.3.0-SNAPSHOT</revision>
|
||||||
<qqq.version>4.1.0-RC.26</qqq.version>
|
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>com.kingsrook</groupId>
|
<groupId>com.kingsrook</groupId>
|
||||||
<artifactId>qbit-build-parent</artifactId>
|
<artifactId>qbit-build-parent</artifactId>
|
||||||
<version>2.2.1</version>
|
<version>2.0.0</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<groupId>com.kingsrook.qbits</groupId>
|
<groupId>com.kingsrook.qbits</groupId>
|
||||||
@@ -70,14 +69,6 @@
|
|||||||
|
|
||||||
<dependencyManagement>
|
<dependencyManagement>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<!-- Published QQQ 4.1 core (minimum QQQ 4.1), imported ahead of the parent's BOM. -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.kingsrook.qqq</groupId>
|
|
||||||
<artifactId>qqq-bom-pom</artifactId>
|
|
||||||
<version>${qqq.version}</version>
|
|
||||||
<type>pom</type>
|
|
||||||
<scope>import</scope>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.junit</groupId>
|
<groupId>org.junit</groupId>
|
||||||
<artifactId>junit-bom</artifactId>
|
<artifactId>junit-bom</artifactId>
|
||||||
@@ -107,4 +98,39 @@
|
|||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
<profiles>
|
||||||
|
<!-- Opt-in check against the next qqq line: mvn -B verify -Pqqq-snapshot -->
|
||||||
|
<!-- (override the version with -Dqqq.snapshot.version=...). Default builds -->
|
||||||
|
<!-- take the qqq version only from qbit-build-parent. -->
|
||||||
|
<profile>
|
||||||
|
<id>qqq-snapshot</id>
|
||||||
|
<properties>
|
||||||
|
<qqq.snapshot.version>4.1.0-SNAPSHOT</qqq.snapshot.version>
|
||||||
|
</properties>
|
||||||
|
<dependencyManagement>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.kingsrook.qqq</groupId>
|
||||||
|
<artifactId>qqq-bom-pom</artifactId>
|
||||||
|
<version>${qqq.snapshot.version}</version>
|
||||||
|
<type>pom</type>
|
||||||
|
<scope>import</scope>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</dependencyManagement>
|
||||||
|
<repositories>
|
||||||
|
<repository>
|
||||||
|
<id>sonatype-snapshots</id>
|
||||||
|
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
|
||||||
|
<releases>
|
||||||
|
<enabled>false</enabled>
|
||||||
|
</releases>
|
||||||
|
<snapshots>
|
||||||
|
<enabled>true</enabled>
|
||||||
|
</snapshots>
|
||||||
|
</repository>
|
||||||
|
</repositories>
|
||||||
|
</profile>
|
||||||
|
</profiles>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
+1
-12
@@ -94,18 +94,7 @@ class ProcessTraceBackendActivityStatsManagerTest
|
|||||||
manager.add(processTraceId, key, 1, 2, 3);
|
manager.add(processTraceId, key, 1, 2, 3);
|
||||||
manager.setCleanupIntervalMillis(5);
|
manager.setCleanupIntervalMillis(5);
|
||||||
manager.setCleanupMaxAge(20);
|
manager.setCleanupMaxAge(20);
|
||||||
// Wait for the scheduled cleanup rather than assuming a shared CI runner
|
SleepUtils.sleep(50, TimeUnit.MILLISECONDS);
|
||||||
// will schedule the background thread within 50 milliseconds.
|
|
||||||
long deadline = System.nanoTime() + TimeUnit.SECONDS.toNanos(2);
|
|
||||||
while(System.nanoTime() < deadline)
|
|
||||||
{
|
|
||||||
var messages = collectingLogger.getCollectedMessages();
|
|
||||||
if(!messages.isEmpty() && messages.get(messages.size() - 1).getMessage().contains("\"size\":0"))
|
|
||||||
{
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
SleepUtils.sleep(5, TimeUnit.MILLISECONDS);
|
|
||||||
}
|
|
||||||
|
|
||||||
QLogger.deactivateCollectingLoggerForClass(ProcessTraceBackendActivityStatsManager.class);
|
QLogger.deactivateCollectingLoggerForClass(ProcessTraceBackendActivityStatsManager.class);
|
||||||
assertThat(collectingLogger.getCollectedMessages()).anyMatch(clm -> clm.getMessage().contains("\"size\":1"));
|
assertThat(collectingLogger.getCollectedMessages()).anyMatch(clm -> clm.getMessage().contains("\"size\":1"));
|
||||||
|
|||||||
Reference in new issue
Block a user