Skip to content
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

Optimizing the creation of a CGDFG. #839

Merged
merged 6 commits into from
Sep 4, 2022
Merged

Conversation

GearsAD
Copy link
Collaborator

@GearsAD GearsAD commented Jan 10, 2022

User/robot/session is created in a single cal.

@GearsAD GearsAD linked an issue Jan 10, 2022 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Jan 10, 2022

Codecov Report

Merging #839 (8970f0c) into master (8fe55c8) will decrease coverage by 19.54%.
The diff coverage is 0.00%.

@@             Coverage Diff             @@
##           master     #839       +/-   ##
===========================================
- Coverage   77.41%   57.87%   -19.55%     
===========================================
  Files          35       35               
  Lines        3037     3005       -32     
===========================================
- Hits         2351     1739      -612     
- Misses        686     1266      +580     
Impacted Files Coverage Δ
src/Neo4jDFG/entities/Neo4jDFG.jl 0.00% <ø> (-80.00%) ⬇️
src/Neo4jDFG/services/CGStructure.jl 0.00% <0.00%> (-45.69%) ⬇️
src/services/CustomPrinting.jl 81.53% <0.00%> (ø)
src/Neo4jDFG/entities/CGStructure.jl 0.00% <0.00%> (-100.00%) ⬇️
src/Neo4jDFG/services/CommonFunctions.jl 0.00% <0.00%> (-94.62%) ⬇️
src/Neo4jDFG/services/Neo4jDFG.jl 0.00% <0.00%> (-87.07%) ⬇️
src/services/Serialization.jl 66.81% <0.00%> (-5.39%) ⬇️
src/entities/DFGVariable.jl 81.08% <0.00%> (-2.71%) ⬇️
... and 2 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@dehann dehann mentioned this pull request Jan 17, 2022
5 tasks
@dehann
Copy link
Member

dehann commented Jan 17, 2022

Hi @GearsAD , assuming this is ready to be merged?

@dehann dehann added this to the v0.18.0 milestone Jan 17, 2022
@dehann dehann added the enhancement New feature or request label Jan 17, 2022
@dehann
Copy link
Member

dehann commented Jan 17, 2022

closes #815

@dehann
Copy link
Member

dehann commented Jan 17, 2022

Perhaps not, CI is showing error:

[ Info: Testing Driver: CloudGraphsDFG
DFG Structure and Accessors: Test Failed at /home/runner/work/DistributedFactorGraphs.jl/DistributedFactorGraphs.jl/test/testBlocks.jl:175
  Expression: getUserData(fg) == Dict(ud)
   Evaluated: Dict{Symbol, String}() == Dict(:ud => "udEntry")
Stacktrace:
 [1] DFGStructureAndAccessors(::Type{CloudGraphsDFG}, solparams::NoSolverParams)
   @ Main ~/work/DistributedFactorGraphs.jl/DistributedFactorGraphs.jl/test/testBlocks.jl:175
 [2] DFGStructureAndAccessors(::Type{CloudGraphsDFG})
   @ Main ~/work/DistributedFactorGraphs.jl/DistributedFactorGraphs.jl/test/testBlocks.jl:134
 [3] macro expansion
   @ ~/work/DistributedFactorGraphs.jl/DistributedFactorGraphs.jl/test/interfaceTests.jl:33 [inlined]
 [4] macro expansion
   @ /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Test/src/Test.jl:1151 [inlined]
 [5] top-level scope
   @ ~/work/DistributedFactorGraphs.jl/DistributedFactorGraphs.jl/test/interfaceTests.jl:33
DFG Structure and Accessors: Test Failed at /home/runner/work/DistributedFactorGraphs.jl/DistributedFactorGraphs.jl/test/testBlocks.jl:176
  Expression: getRobotData(fg) == Dict(rd)
   Evaluated: Dict{Symbol, String}() == Dict(:rd => "rdEntry")
Stacktrace:
 [1] DFGStructureAndAccessors(::Type{CloudGraphsDFG}, solparams::NoSolverParams)
   @ Main ~/work/DistributedFactorGraphs.jl/DistributedFactorGraphs.jl/test/testBlocks.jl:176
 [2] DFGStructureAndAccessors(::Type{CloudGraphsDFG})
   @ Main ~/work/DistributedFactorGraphs.jl/DistributedFactorGraphs.jl/test/testBlocks.jl:134
 [3] macro expansion
   @ ~/work/DistributedFactorGraphs.jl/DistributedFactorGraphs.jl/test/interfaceTests.jl:33 [inlined]
 [4] macro expansion
   @ /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Test/src/Test.jl:1151 [inlined]
 [5] top-level scope
   @ ~/work/DistributedFactorGraphs.jl/DistributedFactorGraphs.jl/test/interfaceTests.jl:33
DFG Structure and Accessors: Test Failed at /home/runner/work/DistributedFactorGraphs.jl/DistributedFactorGraphs.jl/test/testBlocks.jl:177
  Expression: getSessionData(fg) == Dict(sd)
   Evaluated: Dict{Symbol, String}() == Dict(:sd => "sdEntry")
Stacktrace:
 [1] DFGStructureAndAccessors(::Type{CloudGraphsDFG}, solparams::NoSolverParams)
   @ Main ~/work/DistributedFactorGraphs.jl/DistributedFactorGraphs.jl/test/testBlocks.jl:177
 [2] DFGStructureAndAccessors(::Type{CloudGraphsDFG})
   @ Main ~/work/DistributedFactorGraphs.jl/DistributedFactorGraphs.jl/test/testBlocks.jl:134
 [3] macro expansion
   @ ~/work/DistributedFactorGraphs.jl/DistributedFactorGraphs.jl/test/interfaceTests.jl:33 [inlined]
 [4] macro expansion
   @ /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Test/src/Test.jl:1151 [inlined]
 [5] top-level scope
   @ ~/work/DistributedFactorGraphs.jl/DistributedFactorGraphs.jl/test/interfaceTests.jl:33

@dehann dehann modified the milestones: v0.18.0, v0.18.1 Jan 17, 2022
@dehann
Copy link
Member

dehann commented Jan 17, 2022

might have basic name conflicts with #845

@GearsAD GearsAD self-assigned this Jan 17, 2022
@dehann dehann modified the milestones: v0.18.0, v0.18.1 Jan 31, 2022
@dehann dehann modified the milestones: v0.18.1, v0.0.x Feb 14, 2022
@GearsAD GearsAD requested review from Affie and dehann September 2, 2022 17:01
Copy link
Member

@dehann dehann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. I did not try run the cypher queries, but sure you got those down .

@GearsAD GearsAD merged commit 54805b2 into master Sep 4, 2022
@dehann dehann modified the milestones: v0.0.x, v0.18.6 Sep 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

createDfgSessionIfNotExist should be optimized
3 participants