Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tempsdb
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container 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
public
tempsdb
Commits
671026da
Unverified
Commit
671026da
authored
10 months ago
by
Piotr Maślanka
Browse files
Options
Downloads
Patches
Plain Diff
fix
parent
dbf39434
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+36
-0
36 additions, 0 deletions
.gitlab-ci.yml
tempsdb/series.pyx
+1
-1
1 addition, 1 deletion
tempsdb/series.pyx
with
37 additions
and
1 deletion
.gitlab-ci.yml
+
36
−
0
View file @
671026da
...
@@ -43,3 +43,39 @@ test_python310:
...
@@ -43,3 +43,39 @@ test_python310:
test_python311
:
test_python311
:
extends
:
.test_python
extends
:
.test_python
image
:
python:3.11
image
:
python:3.11
.build_python
:
only
:
-
master
stage
:
build
script
:
-
pip install --break-system-packages --upgrade Cython setuptools pip
-
pip install --break-system-packages -r requirements.txt
-
python setup.py bdist_wheel
-
cp dist/*.whl .
artifacts
:
paths
:
-
"
*.whl"
build_python38
:
extends
:
.build_python
image
:
python:3.8
build_python39
:
extends
:
.build_python
image
:
python:3.9
build_python310
:
extends
:
.build_python
image
:
python:3.10
build_python38
:
extends
:
.build_python
image
:
python:3.11
build_python311_armv7l
:
extends
:
.build_python
image
:
zoo.smok.co/build/build:armv7l-python311
This diff is collapsed.
Click to expand it.
tempsdb/series.pyx
+
1
−
1
View file @
671026da
...
@@ -453,7 +453,7 @@ cdef class TimeSeries:
...
@@ -453,7 +453,7 @@ cdef class TimeSeries:
:raises ValueError: Timestamp not larger than previous timestamp or invalid block size
:raises ValueError: Timestamp not larger than previous timestamp or invalid block size
:raises InvalidState: the resource is closed
:raises InvalidState: the resource is closed
"""
"""
cdef
int
data_len
=
len
(
data
)
cdef
unsigned
int
data_len
=
len
(
data
)
if
data_len
>
self
.
block_size
:
if
data_len
>
self
.
block_size
:
raise
ValueError
(
'
Data too long
'
)
raise
ValueError
(
'
Data too long
'
)
data
=
data
+
b
'
\x00
'
*
(
self
.
block_size
-
data_len
)
data
=
data
+
b
'
\x00
'
*
(
self
.
block_size
-
data_len
)
...
...
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