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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coscine
backend
scripts
GraphDeployer
Compare revisions
v2.1.3 to v2.1.4
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
coscine/backend/scripts/graphdeployer
Select target project
No results found
v2.1.4
Select Git revision
Branches
Fix/xxxx-oldSchool
Hotfix/2352-onlyChanged
Hotfix/2615-graphDeployerLag
Hotfix/790-orgDeploy
Hotfix/953-fileNameWithSpace
Hotfix/999-fixGraphdeployer
Hotfix/xxxx-directoryDependency
Hotfix/xxxx-fastDeployment
Issue/2518-docs
Issue/2568-betterLogging
Issue/2668-graphDeployer
Issue/2880-gd
Issue/2906-containerCron
Issue/2915-migrateSql2Linked
Issue/2944-gdShenanigans
Issue/2967-fixGD
Issue/2980-fixContainerBuild
Issue/3109-onboarding
Issue/3130-onboardingUzK
Issue/xxxx-fixDevcontainer
Issue/xxxx-generateLatestTag
Product/483-organizations
Product/871-generalDeployment
Sprint/2020-07
Sprint/2020-11
Sprint/2020-12
Sprint/2022-01
Topic/711-organizations
Topic/713-rwthOrgState
Topic/886-generalDeployment
dev
gitkeep
master
petar.hristov-master-patch-9e49
test_ci
Tags
v1.1.0
v1.1.1
v1.2.0
v1.2.1
v1.2.10
v1.2.11
v1.2.2
v1.2.3
v1.2.4
v1.2.5
v1.2.6
v1.2.7
v1.2.8
v1.2.9
v2.0.0
v2.0.1
v2.1.0
v2.1.1
v2.1.10
v2.1.11
v2.1.2
v2.1.3
v2.1.4
v2.1.5
v2.1.6
v2.1.7
v2.1.8
v2.1.9
63 results
Swap
Target
coscine/backend/scripts/graphdeployer
Select target project
coscine/backend/scripts/graphdeployer
1 result
v2.1.3
Select Git revision
Branches
Fix/xxxx-oldSchool
Hotfix/2352-onlyChanged
Hotfix/2615-graphDeployerLag
Hotfix/790-orgDeploy
Hotfix/953-fileNameWithSpace
Hotfix/999-fixGraphdeployer
Hotfix/xxxx-directoryDependency
Hotfix/xxxx-fastDeployment
Issue/2518-docs
Issue/2568-betterLogging
Issue/2668-graphDeployer
Issue/2880-gd
Issue/2906-containerCron
Issue/2915-migrateSql2Linked
Issue/2944-gdShenanigans
Issue/2967-fixGD
Issue/2980-fixContainerBuild
Issue/3109-onboarding
Issue/3130-onboardingUzK
Issue/xxxx-fixDevcontainer
Issue/xxxx-generateLatestTag
Product/483-organizations
Product/871-generalDeployment
Sprint/2020-07
Sprint/2020-11
Sprint/2020-12
Sprint/2022-01
Topic/711-organizations
Topic/713-rwthOrgState
Topic/886-generalDeployment
dev
gitkeep
master
petar.hristov-master-patch-9e49
test_ci
Tags
v1.1.0
v1.1.1
v1.2.0
v1.2.1
v1.2.10
v1.2.11
v1.2.2
v1.2.3
v1.2.4
v1.2.5
v1.2.6
v1.2.7
v1.2.8
v1.2.9
v2.0.0
v2.0.1
v2.1.0
v2.1.1
v2.1.10
v2.1.11
v2.1.2
v2.1.3
v2.1.4
v2.1.5
v2.1.6
v2.1.7
v2.1.8
v2.1.9
63 results
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source
2
Fix: File hashing and formatting
· 168cb56a
Petar Hristov
authored
10 months ago
168cb56a
Chore: 2.1.4
· 886518d0
CoscineBot
authored
10 months ago
# [2.1.4](
v2.1.3...v2.1.4
) (2024-09-05) ## Fix * File hashing and formatting
886518d0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/GraphDeployer/Deployer.cs
+6
-4
6 additions, 4 deletions
src/GraphDeployer/Deployer.cs
src/GraphDeployer/GraphDeployer.csproj
+1
-1
1 addition, 1 deletion
src/GraphDeployer/GraphDeployer.csproj
with
7 additions
and
5 deletions
src/GraphDeployer/Deployer.cs
View file @
886518d0
...
@@ -64,6 +64,7 @@ public class Deployer
...
@@ -64,6 +64,7 @@ public class Deployer
{
{
_logger
.
LogInformation
(
"Running in Dummy Mode. No changes will be made."
);
_logger
.
LogInformation
(
"Running in Dummy Mode. No changes will be made."
);
}
}
_logger
.
LogDebug
(
"Redeploy: {redeploy}"
,
opts
.
Redeploy
);
// Override the working folder if specified in the configuration
// Override the working folder if specified in the configuration
if
(!
string
.
IsNullOrWhiteSpace
(
_graphDeployerConfiguration
.
WorkingFolder
))
if
(!
string
.
IsNullOrWhiteSpace
(
_graphDeployerConfiguration
.
WorkingFolder
))
...
@@ -123,6 +124,8 @@ public class Deployer
...
@@ -123,6 +124,8 @@ public class Deployer
var
graphId
=
kv
.
Key
.
ToString
();
var
graphId
=
kv
.
Key
.
ToString
();
var
currentRun
=
new
Dictionary
<
string
,
string
>();
var
currentRun
=
new
Dictionary
<
string
,
string
>();
_logger
.
LogDebug
(
"Deploying graph: {graphName}"
,
graphId
);
// Get the hash of the currently deployed graph and compare it with the hash of the graph to be deployed
// 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
)));
files
.
ForEach
((
path
)
=>
currentRun
.
TryAdd
(
graphId
,
HashUtil
.
GetFileHash
(
path
)));
...
@@ -131,7 +134,7 @@ public class Deployer
...
@@ -131,7 +134,7 @@ public class Deployer
if
(
hasChanged
)
if
(
hasChanged
)
{
{
_logger
.
LogDebug
(
"The graph has
e
changed"
);
_logger
.
LogDebug
(
"The graph has changed"
);
}
else
}
else
{
{
_logger
.
LogDebug
(
"The graph has not changed"
);
_logger
.
LogDebug
(
"The graph has not changed"
);
...
@@ -139,13 +142,12 @@ public class Deployer
...
@@ -139,13 +142,12 @@ public class Deployer
if
(
deployedGraph
is
null
)
if
(
deployedGraph
is
null
)
{
{
_logger
.
LogDebug
(
"
d
eployed
G
raph is null"
);
_logger
.
LogDebug
(
"
D
eployed
g
raph is null"
);
}
else
{
}
else
{
_logger
.
LogDebug
(
"Deployed hash: {hash}"
,
string
.
Join
(
','
,
deployedGraph
.
FileHashes
));
_logger
.
LogDebug
(
"Deployed hash: {hash}"
,
string
.
Join
(
','
,
deployedGraph
.
FileHashes
));
}
}
_logger
.
LogDebug
(
"Incoming hash: {hash}"
,
currentRun
[
graphId
]);
_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
// Deploy the graph if it has changed or if the redeploy flag is set
if
(
hasChanged
)
if
(
hasChanged
)
...
...
This diff is collapsed.
Click to expand it.
src/GraphDeployer/GraphDeployer.csproj
View file @
886518d0
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<AssemblyName>Coscine.GraphDeployer</AssemblyName>
<AssemblyName>Coscine.GraphDeployer</AssemblyName>
<ImplicitUsings>enable</ImplicitUsings>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Nullable>enable</Nullable>
<Version>2.1.
3
</Version>
<Version>2.1.
4
</Version>
</PropertyGroup>
</PropertyGroup>
<PropertyGroup>
<PropertyGroup>
...
...
This diff is collapsed.
Click to expand it.