Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
why3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nils Fitinghoff
why3
Commits
ebe5592a
Commit
ebe5592a
authored
Sep 10, 2018
by
Claude Marché
Browse files
Options
Downloads
Patches
Plain Diff
workaround from blocking bugs in the new 'remove' upgrade policy
parent
2a375d95
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/session/controller_itp.ml
+5
-3
5 additions, 3 deletions
src/session/controller_itp.ml
with
5 additions
and
3 deletions
src/session/controller_itp.ml
+
5
−
3
View file @
ebe5592a
...
@@ -921,7 +921,7 @@ let find_prover notification c goal_id pr =
...
@@ -921,7 +921,7 @@ let find_prover notification c goal_id pr =
(* does a proof using new_pr already exists ? *)
(* does a proof using new_pr already exists ? *)
if
Hprover
.
mem
(
get_proof_attempt_ids
c
.
controller_session
goal_id
)
new_pr
if
Hprover
.
mem
(
get_proof_attempt_ids
c
.
controller_session
goal_id
)
new_pr
then
(* yes, then we remove the attempt *)
then
(* yes, then we remove the attempt *)
`
Remove
`
Keep
(* `Remove *)
(* we keep it for now, because it prevents replay to terminate properly *)
else
else
begin
begin
(* we modify the prover in-place *)
(* we modify the prover in-place *)
...
@@ -952,8 +952,9 @@ let replay_proof_attempt c pr limit (parid: proofNodeID) id ~callback ~notificat
...
@@ -952,8 +952,9 @@ let replay_proof_attempt c pr limit (parid: proofNodeID) id ~callback ~notificat
match
find_prover
notification
c
parid
pr
with
match
find_prover
notification
c
parid
pr
with
|
`Keep
->
callback
id
(
Uninstalled
pr
)
|
`Keep
->
callback
id
(
Uninstalled
pr
)
|
`Remove
->
|
`Remove
->
remove_proof_attempt
c
.
controller_session
parid
pr
;
(* it is necessary to call the callback before effectively removing the node, otherwise, a bad id will be used in the callback *)
callback
id
(
Removed
pr
)
callback
id
(
Removed
pr
);
remove_proof_attempt
c
.
controller_session
parid
pr
|
`Found
pr'
->
|
`Found
pr'
->
try
try
if
pr'
<>
pr
then
callback
id
(
UpgradeProver
pr'
);
if
pr'
<>
pr
then
callback
id
(
UpgradeProver
pr'
);
...
@@ -1012,6 +1013,7 @@ let replay ~valid_only ~obsolete_only ?(use_steps=false) ?(filter=fun _ -> true)
...
@@ -1012,6 +1013,7 @@ let replay ~valid_only ~obsolete_only ?(use_steps=false) ?(filter=fun _ -> true)
let
craft_report
s
id
pr
limits
pa
=
let
craft_report
s
id
pr
limits
pa
=
match
s
with
match
s
with
|
UpgradeProver
_
|
Removed
_
->
found_upgraded_prover
:=
true
|
UpgradeProver
_
|
Removed
_
->
found_upgraded_prover
:=
true
(* this is certainly wrong: after removed, there will be no more 'Done' notification, so counter should be decreased *)
|
Scheduled
|
Running
->
()
|
Scheduled
|
Running
->
()
|
Undone
|
Interrupted
->
|
Undone
|
Interrupted
->
decr
count
;
decr
count
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment