Skip to content

Commit 8290362

Browse files
authored
Merge branch 'master' into issue-2455
2 parents ada5d5e + 37120f7 commit 8290362

File tree

338 files changed

+69205
-68527
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

338 files changed

+69205
-68527
lines changed

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,7 @@ indent_size = 4
1111
[*.nix]
1212
indent_style = space
1313
indent_size = 2
14+
15+
[Jenkinsfile*]
16+
indent_style = space
17+
indent_size = 2

Dockerfile

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,36 @@ ENV TZ=America/Chicago
55
RUN ln --symbolic --no-dereference --force /usr/share/zoneinfo/$TZ /etc/localtime \
66
&& echo $TZ > /etc/timezone
77

8-
RUN apt update \
9-
&& apt upgrade --yes \
10-
&& apt install --yes \
11-
libtinfo-dev \
8+
RUN apt update \
9+
&& apt upgrade --yes \
10+
&& apt install --yes \
11+
libtinfo-dev \
1212
curl git make unzip
1313

14+
ARG STACK=2.5.1
15+
RUN curl -sSL https://raw.githubusercontent.com/commercialhaskell/stack/v$STACK/etc/scripts/get-stack.sh | sh
16+
17+
ARG HUB=2.14.2
18+
RUN curl -sSL https://github.com/github/hub/releases/download/v$HUB/hub-linux-amd64-$HUB.tgz | tar -xz \
19+
&& ( cd hub-linux-amd64-$HUB && ./install prefix=/usr/local ) \
20+
&& rm -fr hub-linux-amd64-$HUB
21+
1422
ENV LC_ALL=C.UTF-8
23+
ADD ./src/main/kore/prelude.kore /usr/include/kframework/kore/prelude.kore
1524

1625
ARG USER_ID=1000
1726
ARG GROUP_ID=1000
1827
RUN groupadd --gid $GROUP_ID user \
1928
&& useradd --create-home --uid $USER_ID --shell /bin/sh --gid user user
2029

21-
ARG STACK=2.5.1
22-
RUN curl -sSL https://raw.githubusercontent.com/commercialhaskell/stack/v$STACK/etc/scripts/get-stack.sh | sh
23-
2430
USER $USER_ID:$GROUP_ID
2531
WORKDIR /home/user
2632

2733
ADD --chown=user:user stack.yaml .tmp-haskell/
28-
ADD --chown=user:user kore/package.yaml .tmp-haskell/kore/
29-
RUN cd .tmp-haskell && stack build --only-snapshot --test --bench --haddock
34+
ADD --chown=user:user kore/kore.cabal .tmp-haskell/kore/
35+
RUN ( cd .tmp-haskell && stack build --only-snapshot --test --bench --haddock ) \
36+
&& rm -fr .tmp-haskell
37+
38+
ADD --chown=user:user docker/ssh/config .ssh/
39+
RUN git config --global user.email "[email protected]" \
40+
&& git config --global user.name "RV Jenkins"

Jenkinsfile

Lines changed: 83 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -5,79 +5,115 @@ pipeline {
55
additionalBuildArgs '--build-arg K_COMMIT=$(cat deps/k_release | cut --characters=2-) --build-arg USER_ID=$(id -u) --build-arg GROUP_ID=$(id -g)'
66
}
77
}
8+
parameters {
9+
choice(name: 'STAGE',
10+
choices: [
11+
'TEST',
12+
'UPDATE-TESTS'
13+
],
14+
description: '''
15+
TEST: Run tests, as on push and change request events.
16+
UPDATE-TESTS: Update some generated tests, such as the regression tests.
17+
'''
18+
)
19+
}
820
options {
921
ansiColor('xterm')
1022
}
23+
triggers {
24+
parameterizedCron('''
25+
H H * * 0 % STAGE=UPDATE-TESTS
26+
''')
27+
}
1128
environment {
1229
LONG_REV = """${sh(returnStdout: true, script: 'git rev-parse HEAD').trim()}"""
1330
}
1431
stages {
15-
stage('Init title') {
16-
when { changeRequest() }
17-
steps {
18-
script {
19-
currentBuild.displayName = "PR ${env.CHANGE_ID}: ${env.CHANGE_TITLE}"
20-
}
32+
stage('Update regression tests') {
33+
when { expression { return params.STAGE == 'UPDATE-TESTS' } }
34+
environment {
35+
GITHUB_TOKEN = credentials('rv-jenkins')
2136
}
22-
}
23-
stage('Dependencies') {
2437
steps {
25-
sh '''
26-
./scripts/clean.sh
27-
./scripts/deps.sh
28-
'''
38+
sshagent(['2b3d8d6b-0855-4b59-864a-6b3ddf9c9d1a']) {
39+
sh '''
40+
git remote set-url origin [email protected]:kframework/kore
41+
./scripts/update-tests.sh
42+
'''
43+
}
2944
}
3045
}
31-
stage('Stages') {
32-
failFast true
33-
parallel {
34-
stage('Documentation') {
46+
stage('Test') {
47+
when { expression { return params.STAGE == 'TEST' } }
48+
stages {
49+
stage('Init title') {
50+
when { changeRequest() }
3551
steps {
36-
sh '''
37-
./scripts/docs.sh
38-
'''
52+
script {
53+
currentBuild.displayName = "PR ${env.CHANGE_ID}: ${env.CHANGE_TITLE}"
54+
}
3955
}
4056
}
41-
stage('Unit Tests') {
42-
options {
43-
timeout(time: 24, unit: 'MINUTES')
44-
}
57+
stage('Dependencies') {
4558
steps {
4659
sh '''
47-
./scripts/unit-test.sh
60+
./scripts/clean.sh
61+
./scripts/deps.sh
4862
'''
4963
}
50-
post {
51-
always {
52-
junit 'kore/test-results.xml'
64+
}
65+
stage('Stages') {
66+
failFast true
67+
parallel {
68+
stage('Documentation') {
69+
steps {
70+
sh '''
71+
./scripts/docs.sh
72+
'''
73+
}
74+
}
75+
stage('Unit Tests') {
76+
options {
77+
timeout(time: 24, unit: 'MINUTES')
78+
}
79+
steps {
80+
sh '''
81+
./scripts/unit-test.sh
82+
'''
83+
}
84+
post {
85+
always {
86+
junit 'kore/test-results.xml'
87+
}
88+
}
89+
}
90+
stage('Integration Tests') {
91+
environment {
92+
JOBS = 2
93+
}
94+
options {
95+
timeout(time: 48, unit: 'MINUTES')
96+
}
97+
steps {
98+
sh '''
99+
./scripts/integration-k.sh
100+
'''
101+
}
53102
}
54103
}
55104
}
56-
stage('Integration Tests') {
57-
environment {
58-
JOBS = 2
59-
}
60-
options {
61-
timeout(time: 48, unit: 'MINUTES')
62-
}
105+
stage('Update K Submodules') {
106+
when { branch 'master' }
63107
steps {
64-
sh '''
65-
./scripts/integration-k.sh
66-
'''
108+
build job: 'rv-devops/master', propagate: false, wait: false \
109+
, parameters: [ booleanParam ( name: 'UPDATE_DEPS' , value: true ) \
110+
, string ( name: 'UPDATE_DEPS_REPO' , value: 'kframework/kore' ) \
111+
, string ( name: 'UPDATE_DEPS_VERSION' , value: "${env.LONG_REV}" ) \
112+
]
67113
}
68114
}
69115
}
70116
}
71-
stage('Update K Submodules') {
72-
when { branch 'master' }
73-
steps {
74-
build job: 'rv-devops/master', propagate: false, wait: false \
75-
, parameters: [ booleanParam ( name: 'UPDATE_DEPS' , value: true ) \
76-
, string ( name: 'UPDATE_DEPS_REPO' , value: 'kframework/kore' ) \
77-
, string ( name: 'UPDATE_DEPS_VERSION' , value: "${env.LONG_REV}" ) \
78-
]
79-
}
80-
}
81117
}
82118
post {
83119
unsuccessful {

default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ let
4242
"/*"
4343
"!/stack.yaml"
4444
"!/kore"
45-
"*.cabal"
4645
];
4746
};
4847
inherit checkMaterialization;
@@ -73,6 +72,7 @@ let
7372
shell = import ./shell.nix { inherit default checkMaterialization; };
7473

7574
version = project.kore.components.exes.kore-exec.version;
75+
# version = "0.43.0.0";
7676

7777
prelude-kore = ./src/main/kore/prelude.kore;
7878

deps/k_release

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v5.0.6
1+
v5.1.8

docker/ssh/config

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
host github.com
2+
hostname github.com
3+
user git
4+
identityagent SSH_AUTH_SOCK
5+
stricthostkeychecking accept-new

kore/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ All notable changes to this project will be documented in this file.
1414

1515
### Fixed
1616

17+
## [0.44.0.0] - 2021-04-22
18+
19+
### Fixed
20+
21+
- Concrete side conditions will be fully simplified. (#2526)
22+
- A memory leak is removed where deciding if a Map or Set is defined. (#2550)
23+
1724
## [0.43.0.0] - 2021-04-07
1825

1926
### Changed

0 commit comments

Comments
 (0)