Add cockroach support and tests #896
No reviewers
Labels
No Label
backport/done
backport/v1
blocked
db
oracle
db
sqlserver
duplicate
feature
cache
frontport/done
frontport/main
invalid
kind
breaking
kind
bug
kind
build
kind
dependencies
kind
docs
kind
driver
kind
enhancement
kind
feature
kind
performance
kind
proposal
kind
question
kind
refactor
kind
testing
need
feedback
need
test
proposal:accepted
RaspBerry Pi
regression
skip-changelog
upstream
wip
wontfix
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: xorm/xorm#896
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "lunny/test_cockroach"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Should fix #802
Codecov Report
61.35% <42.85%> (-1.24%)
73.5% <44.44%> (-2.46%)
0% <0%> (-73.81%)
57.44% <0%> (-5.52%)
50.76% <0%> (-5.38%)
52.22% <0%> (-4.39%)
57.41% <0%> (-2.32%)
77.09% <0%> (-2.22%)
64.61% <0%> (-2.06%)
54.96% <0%> (-1.33%)
Continue to review full report at Codecov.
@lunny you can use the
--background
flag to run cockroachdb to run in the background@lunny it looks like a lot of failures from the tests come from the colType being
STRING(255)
, per postgresql docs that is not an available column type.The following table has the available column types for text/strings:
Here is the link to the specific docs page that I am refering to: https://www.postgresql.org/docs/9.6/static/datatype-character.html
gentle ping..
@vtolstov I will change this and test with the latest cockroach
@lunny do you already have tests and all works fine?
Will continue the work on this PR.
a part of #802
thanks! can you add cockroach server running in tests (i think that this is root case for message:
)
@vtolstov yeah. I have added it to drone but I missed
start -insecure
command and just pushed a new commit.@lunny as i see, you also need to add ip to /etc/hosts or change connection string
@lunny sorry, can you fix connection error?
@vtolstov I don't think we need add /etc/hosts since drone will do the name to internal ip? I'm investing why the cockroah docker is not work.
@ -119,0 +123,4 @@
depends_on:
- build
commands:
- go test -v -race -db="postgres" -conn_str="postgres://postgres:@cockroach/xorm_test?sslmode=disable" -schema=xorm -coverprofile=coverage8-1.txt -covermode=atomic
cockroach runs on different port
https://drone.gitea.com/xorm/xorm/215/1/6 cockroach failed to start so DNS lookup failed
@lunny or @techknowlogick can you fix starting of cockroach db?
The problem iscockroach
service run failed.OK. Finally run cockroach on drone successfully! :) @techknowlogick @vtolstov
Wow! Many thanks! Last thing - when you want to tag new release of xorm?
P.S. Big thanks!
Wow! Many thanks! Last thing - when you want to tag new release of xorm?
P.S. Big thanks!
@vtolstov yes, I will tag 1.0.0 after left issues fixed on https://gitea.com/xorm/xorm/milestone/1242 .