Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-vault
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Platform
Development
swh-vault
Commits
5348fcd4
Commit
5348fcd4
authored
2 years ago
by
Benoit Chauvet
Browse files
Options
Downloads
Patches
Plain Diff
add missing sentry captures
parent
478c27f1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
requirements.txt
+2
-1
2 additions, 1 deletion
requirements.txt
swh/vault/cookers/base.py
+2
-0
2 additions, 0 deletions
swh/vault/cookers/base.py
swh/vault/cookers/git_bare.py
+3
-0
3 additions, 0 deletions
swh/vault/cookers/git_bare.py
with
7 additions
and
1 deletion
requirements.txt
+
2
−
1
View file @
5348fcd4
click
fastimport
flask
psycopg2
python-dateutil
fastimport
sentry-sdk
typing-extensions
This diff is collapsed.
Click to expand it.
swh/vault/cookers/base.py
+
2
−
0
View file @
5348fcd4
...
...
@@ -10,6 +10,7 @@ import traceback
from
typing
import
ClassVar
,
Set
from
psycopg2.extensions
import
QueryCanceledError
import
sentry_sdk
from
swh.model.swhids
import
CoreSWHID
,
ObjectType
from
swh.storage.interface
import
StorageInterface
...
...
@@ -151,6 +152,7 @@ class BaseVaultCooker(metaclass=abc.ABCMeta):
f
"
The full error was:
\n\n
{
tb
}
"
,
)
logging
.
exception
(
"
Bundle cooking failed.
"
)
sentry_sdk
.
capture_exception
()
else
:
self
.
backend
.
set_status
(
self
.
BUNDLE_TYPE
,
self
.
swhid
,
"
done
"
)
self
.
backend
.
set_progress
(
self
.
BUNDLE_TYPE
,
self
.
swhid
,
None
)
...
...
This diff is collapsed.
Click to expand it.
swh/vault/cookers/git_bare.py
+
3
−
0
View file @
5348fcd4
...
...
@@ -42,6 +42,8 @@ import tempfile
from
typing
import
Any
,
Dict
,
Iterable
,
Iterator
,
List
,
NoReturn
,
Optional
,
Set
,
Tuple
import
zlib
import
sentry_sdk
from
swh.core.api.classes
import
stream_results_optional
from
swh.model
import
git_objects
from
swh.model.hashutil
import
hash_to_bytehex
,
hash_to_hex
...
...
@@ -210,6 +212,7 @@ class GitBareCooker(BaseVaultCooker):
subprocess
.
run
([
"
git
"
,
"
-C
"
,
self
.
gitdir
,
"
repack
"
,
"
-d
"
],
check
=
True
)
except
subprocess
.
CalledProcessError
:
logging
.
exception
(
"
git-repack failed with:
"
)
sentry_sdk
.
capture_exception
()
# Remove their non-packed originals
subprocess
.
run
([
"
git
"
,
"
-C
"
,
self
.
gitdir
,
"
prune-packed
"
],
check
=
True
)
...
...
This diff is collapsed.
Click to expand it.
Phabricator Migration user
@phabricator-migration
mentioned in merge request
!177 (closed)
·
2 years ago
mentioned in merge request
!177 (closed)
mentioned in merge request !177
Toggle commit list
Phabricator Migration user
@phabricator-migration
mentioned in merge request
!148 (closed)
·
2 years ago
mentioned in merge request
!148 (closed)
mentioned in merge request !148
Toggle commit list
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