Skip to content

Quick pr #3518

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 11 commits into from
Closed
54 changes: 54 additions & 0 deletions .github/workflows/teamscale_upload.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Upload Coverage to Teamscale

permissions:
actions: read

on:
workflow_run:
workflows: [Pull Request]
types:
- completed

jobs:
download:
runs-on: ubuntu-latest
steps:
- name: 'Download artifact'
uses: actions/github-script@v7
with:
script: |
let allArtifacts = await github.rest.actions.listWorkflowRunArtifacts({
owner: context.repo.owner,
repo: context.repo.repo,
run_id: context.payload.workflow_run.id,
});
let matchArtifact = allArtifacts.data.artifacts.filter((artifact) => {
return artifact.name == "coverage-report"
})[0];
let download = await github.rest.actions.downloadArtifact({
owner: context.repo.owner,
repo: context.repo.repo,
artifact_id: matchArtifact.id,
archive_format: 'zip',
});
const fs = require('fs');
const path = require('path');
const temp = '${{ runner.temp }}/artifacts';
if (!fs.existsSync(temp)){
fs.mkdirSync(temp);
}
fs.writeFileSync(path.join(temp, 'coverage-report.zip'), Buffer.from(download.data));

- name: 'Unzip artifact'
run: unzip "${{ runner.temp }}/artifacts/coverage-report.zip" -d "${{ runner.temp }}/artifacts"
- name: 'Upload coverage'
uses: 'cqse/[email protected]'
with:
server: 'https://fdb.teamscale.io'
project: 'foundationdb-fdb-record-layer'
user: 'fdb-record-layer-build'
partition: 'CI Tests'
accesskey: ${{ secrets.TEAMSCALE_ACCESS_KEY }}
format: 'JACOCO'
revision: ${{ github.event.workflow_run.head_sha }}
files: "${{ runner.temp}}/artifacts/codeCoverageReport.xml"
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
*/
@Tag(Tags.RequiresFDB)
@Execution(ExecutionMode.CONCURRENT)
@Tag("Quicky")
public class FDBRecordStoreCrudTest extends FDBRecordStoreTestBase {

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import com.apple.foundationdb.async.MoreAsyncUtil;
import org.hamcrest.MatcherAssert;
import org.hamcrest.Matchers;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.parallel.Isolated;

Expand All @@ -46,6 +47,7 @@
import static org.junit.jupiter.api.Assertions.assertThrows;

@Isolated // To avoid contention on the thread pool with other tests running in parallel
@Tag("Quicky")
class LazyOpenerTest {

@Test
Expand Down
1 change: 1 addition & 0 deletions gradle/testing.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ test {
excludeTags 'WipesFDB'
excludeTags 'AutomatedTest'
excludeEngines 'auto-test'
includeTags 'Quicky'
}
}

Expand Down
2 changes: 2 additions & 0 deletions yaml-tests/src/test/java/YamlIntegrationTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import com.apple.foundationdb.relational.yamltests.YamlTest;
import com.apple.foundationdb.relational.yamltests.YamlTestConfigFilters;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.TestTemplate;

/**
Expand All @@ -35,6 +36,7 @@
@YamlTest
public class YamlIntegrationTests {
@TestTemplate
@Tag("Quicky")
public void showcasingTests(YamlTest.Runner runner) throws Exception {
runner.runYamsql("showcasing-tests.yamsql");
}
Expand Down
Loading