Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
workspaces
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
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
ssa
workspaces
Commits
00d65c9d
Commit
00d65c9d
authored
3 years ago
by
Charlotte Hausman
Browse files
Options
Downloads
Patches
Plain Diff
Add latest 2.0 fixes to main
parent
b229177b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!818
Add latest 2.0 fixes to main
Pipeline
#4478
passed
3 years ago
Stage: cache-build
Stage: build
Stage: unit-test
Stage: test-coverage
Stage: push
Stage: deploy-coverage-page
Stage: generate-yaml
Stage: trigger
Stage: deploy
Stage: e2e-test
Stage: .post
Pipeline: workspaces
#4480
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
apps/cli/executables/pexable/casa_envoy/casa_envoy/foundation.py
+3
-1
3 additions, 1 deletion
...i/executables/pexable/casa_envoy/casa_envoy/foundation.py
shared/workspaces/workspaces/capability/schema.py
+14
-10
14 additions, 10 deletions
shared/workspaces/workspaces/capability/schema.py
with
17 additions
and
11 deletions
apps/cli/executables/pexable/casa_envoy/casa_envoy/foundation.py
+
3
−
1
View file @
00d65c9d
...
...
@@ -59,7 +59,9 @@ class GeneralFoundation(FoundationIF):
# move provided files from parent directory into working directory for CASA
for
file
in
provided_files
:
shutil
.
copy
(
file
.
strip
(),
self
.
working_dir
)
stripped_file
=
file
.
strip
()
if
stripped_file
:
shutil
.
copy
(
stripped_file
,
self
.
working_dir
)
self
.
logger
.
info
(
"
DATA FOUNDATION COMPLETE!
"
)
...
...
This diff is collapsed.
Click to expand it.
shared/workspaces/workspaces/capability/schema.py
+
14
−
10
View file @
00d65c9d
...
...
@@ -181,22 +181,26 @@ class QaPass(Action):
@staticmethod
def
check_still_running
(
version
:
CapabilityVersion
)
->
bool
:
workflow_service_url
=
CapoConfig
().
settings
(
WORKFLOW_SETTINGS_KEY
).
serviceUrl
response
=
requests
.
get
(
f
"
{
workflow_service_url
}
/workflows/
{
version
.
capability
.
name
}
/requests/
"
f
"
{
version
.
current_execution
.
current_workflow_request_id
}
/htcondor_id
"
)
if
json
.
loads
(
response
.
content
.
decode
())[
"
htcondor_job_id
"
]
==
"
None
"
:
if
version
.
current_execution
.
current_workflow_request_id
:
response
=
requests
.
get
(
f
"
{
workflow_service_url
}
/workflows/
{
version
.
capability
.
name
}
/requests/
"
f
"
{
version
.
current_execution
.
current_workflow_request_id
}
/htcondor_id
"
)
if
json
.
loads
(
response
.
content
.
decode
())[
"
htcondor_job_id
"
]
==
"
None
"
:
return
False
return
True
else
:
return
False
return
True
@staticmethod
def
_run_qa_fail_workflow
(
version
:
CapabilityVersion
):
workflow_service_url
=
CapoConfig
().
settings
(
WORKFLOW_SETTINGS_KEY
).
serviceUrl
logger
.
info
(
f
"
QA Failing version:
{
version
.
__json__
()
}
"
)
requests
.
post
(
f
"
{
workflow_service_url
}
/workflows/
{
version
.
capability
.
name
}
/requests/
"
f
"
{
version
.
current_execution
.
current_workflow_request_id
}
/qa_fail
"
)
if
version
.
current_execution
.
current_workflow_request_id
:
requests
.
post
(
f
"
{
workflow_service_url
}
/workflows/
{
version
.
capability
.
name
}
/requests/
"
f
"
{
version
.
current_execution
.
current_workflow_request_id
}
/qa_fail
"
)
@staticmethod
def
_abort_running_execution
(
version
:
CapabilityVersion
):
...
...
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