Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GraphDeployer
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coscine
backend
scripts
GraphDeployer
Merge requests
!30
Dev
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Dev
dev
into
master
Overview
0
Commits
2
Pipelines
1
Changes
3
Merged
Petar Hristov
requested to merge
dev
into
master
8 months ago
Overview
0
Commits
2
Pipelines
1
Changes
3
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
aaa9f8f9
2 commits,
8 months ago
3 files
+
21
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
src/GraphDeployer/Deployer.cs
+
19
−
0
Options
@@ -125,9 +125,28 @@ public class Deployer
// Get the hash of the currently deployed graph and compare it with the hash of the graph to be deployed
files
.
ForEach
((
path
)
=>
currentRun
.
TryAdd
(
graphId
,
HashUtil
.
GetFileHash
(
path
)));
var
deployedGraph
=
deployedGraphsList
.
FirstOrDefault
((
g
)
=>
g
.
Uri
==
graphId
);
var
hasChanged
=
deployedGraph
is
null
||
!
deployedGraph
.
FileHashes
.
Contains
(
currentRun
[
graphId
])
||
opts
.
Redeploy
;
if
(
hasChanged
)
{
_logger
.
LogDebug
(
"The graph hase changed"
);
}
else
{
_logger
.
LogDebug
(
"The graph has not changed"
);
}
if
(
deployedGraph
is
null
)
{
_logger
.
LogDebug
(
"deployedGraph is null"
);
}
else
{
_logger
.
LogDebug
(
"Deployed hash: {hash}"
,
string
.
Join
(
','
,
deployedGraph
.
FileHashes
));
}
_logger
.
LogDebug
(
"Incoming hash: {hash}"
,
currentRun
[
graphId
]);
_logger
.
LogDebug
(
"Redeploy: {redeploy}"
,
opts
.
Redeploy
);
// Deploy the graph if it has changed or if the redeploy flag is set
if
(
hasChanged
)
{
Loading