-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
set up gitpod builds for every PR #8145
Conversation
Codecov Report
@@ Coverage Diff @@
## main #8145 +/- ##
==========================================
- Coverage 82.05% 82.05% -0.01%
==========================================
Files 100 100
Lines 5772 5755 -17
==========================================
- Hits 4736 4722 -14
+ Misses 1036 1033 -3
|
Just noting i added some database configs to #8122 too, so let's see... |
config/dabase.yml.gitpod
Outdated
@@ -0,0 +1,34 @@ | |||
# Warning: The contents of the database defined as "test" will be erased and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ooh! yeah..... good call!
@jywarren I think it will setup db now Please review |
wow! Hope so! 🎉 thank you! My build has taken >24m so far, in #8122 but once prebuilt, hopefully it'll go faster. |
OK, i had to, in the console, run:
(last line instead of and then it worked!!! |
Added those last tweaks... hey tremendous job @keshavsethi -- thank you! Fingers X this passes, then we'll be zooming along! |
@@ -0,0 +1 @@ | |||
FROM gitpod/workspace-mysql |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jywarren I think we can remove this file??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
possibly! want to try?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jywarren I checked gitpod after removing. Buil did getting failed so added it again.
Thanks!!
.gitpod.yml
Outdated
- init: > | ||
bundle install --without production && | ||
cp config/database.yml.gitpod config/database.yml && | ||
mysql -e "SET @@global.sql_mode=(SELECT REPLACE(@@global.sql_mode, 'ONLY_FULL_GROUP_BY', ''));"; && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm there must be a syntax error in here, but I'm not sure where!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Also depending on the mysql version, the syntax may be different, but I believe this one is good for us as I tested it on the console. Ref: https://stackoverflow.com/questions/23921117/disable-only-full-group-by)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@keshavsethi I kind of got stuck here but maybe you can figure out the next step? Or if @icarito has an idea?
.gitpod.yml
Outdated
bundle install --without production && | ||
cp config/database.yml.gitpod config/database.yml && | ||
mysql -e "SET @@global.sql_mode=(SELECT REPLACE(@@global.sql_mode, 'ONLY_FULL_GROUP_BY', ''));"; && | ||
mysql -e "CREATE DATABASE plots;"; && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe the issue is here, there's a ;
and then &&
, this is a syntax error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, after this fix we still see it:
gitpod /workspace/plots2 $ HISTFILE=/workspace/.gitpod/cmd-0 history -r; {
> bundle install --without production && cp config/database.yml.gitpod config/database.yml && mysql -e "SET @@global.sql_mode=(SELECT REPLACE(@@global.sql_mode, 'ONLY_FULL_GROUP_BY', ''));" && mysql -e "CREATE DATABASE plots;"; && cp db/schema.rb.example db/schema.rb && rake db:setup && yarn install
bash: syntax error near unexpected token `&&'
gitpod /workspace/plots2 $
gitpod /workspace/plots2 $ } && {
bash: syntax error near unexpected token `}'
gitpod /workspace/plots2 $ passenger start
bash: passenger: command not found
gitpod /workspace/plots2 $
gitpod /workspace/plots2 $ }
bash: syntax error near unexpected
But, actually there's a ;
on the next line too, so I'll try removing that.
That did it. Perfect: https://3000-a8cc69d8-8dd5-4128-93f5-1816a29b5f96.ws-us02.gitpod.io/ |
Thanks, everyone. This is really exciting. Adding a badge to the README too. 🎉 🎉 🎉 @keshavsethi @Tlazypanda @cesswairimu @sagarpreet-chadha @Shulammite-Aso @keshav234156 @NitinBhasneria @shreyaa-sharmaa @SidharthBansal if you rebase or resync your PRs on Great for testing integrations, checking UI changes on PRs (esp from first-timers), all kinds of things. Woohoo!!!! |
Aww, it looks like we didn't actually completely solve #8145 (comment) -- I'm trying to work on it a bit more in #8152 now! |
Wow this is so cool!!! |
I believe so but basically it's hosted at GitPod, free! |
Just confirming that we see an error on https://3000-ff07100e-6fdf-4fbe-b308-983437a28749.ws-us02.gitpod.io/wiki --
line 17 of Trace of template inclusion: app/views/wiki/index.html.erb
|
yes, some of our queries seem to be incompatible with MySQL 5.7 - I ran into this with our recent upgrade. In Cloud SQL I added the flag: sql_mode="TRADITIONAL" and it started working. |
MySQL 5.7 and higher? Thanks for the tip, i'll try that! |
* test gitpod * just checking gitpod * changed version * tasks gitpod * gitpod.io * initial setup * db setup * init update * create db * sql error * gitpod test * path issue * Update .gitpod.yml * Update .gitpod.yml * removed .gitpod.dockerfile * added gitpod.dockerfile * passenger start added * switch to mysql * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml Co-authored-by: Jeffrey Warren <[email protected]> Co-authored-by: Sebastian Silva <[email protected]>
addressing in #8152 |
* test gitpod * just checking gitpod * changed version * tasks gitpod * gitpod.io * initial setup * db setup * init update * create db * sql error * gitpod test * path issue * Update .gitpod.yml * Update .gitpod.yml * removed .gitpod.dockerfile * added gitpod.dockerfile * passenger start added * switch to mysql * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml Co-authored-by: Jeffrey Warren <[email protected]> Co-authored-by: Sebastian Silva <[email protected]>
* test gitpod * just checking gitpod * changed version * tasks gitpod * gitpod.io * initial setup * db setup * init update * create db * sql error * gitpod test * path issue * Update .gitpod.yml * Update .gitpod.yml * removed .gitpod.dockerfile * added gitpod.dockerfile * passenger start added * switch to mysql * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml Co-authored-by: Jeffrey Warren <[email protected]> Co-authored-by: Sebastian Silva <[email protected]>
* test gitpod * just checking gitpod * changed version * tasks gitpod * gitpod.io * initial setup * db setup * init update * create db * sql error * gitpod test * path issue * Update .gitpod.yml * Update .gitpod.yml * removed .gitpod.dockerfile * added gitpod.dockerfile * passenger start added * switch to mysql * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml Co-authored-by: Jeffrey Warren <[email protected]> Co-authored-by: Sebastian Silva <[email protected]>
* test gitpod * just checking gitpod * changed version * tasks gitpod * gitpod.io * initial setup * db setup * init update * create db * sql error * gitpod test * path issue * Update .gitpod.yml * Update .gitpod.yml * removed .gitpod.dockerfile * added gitpod.dockerfile * passenger start added * switch to mysql * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml Co-authored-by: Jeffrey Warren <[email protected]> Co-authored-by: Sebastian Silva <[email protected]>
* test gitpod * just checking gitpod * changed version * tasks gitpod * gitpod.io * initial setup * db setup * init update * create db * sql error * gitpod test * path issue * Update .gitpod.yml * Update .gitpod.yml * removed .gitpod.dockerfile * added gitpod.dockerfile * passenger start added * switch to mysql * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml Co-authored-by: Jeffrey Warren <[email protected]> Co-authored-by: Sebastian Silva <[email protected]>
* test gitpod * just checking gitpod * changed version * tasks gitpod * gitpod.io * initial setup * db setup * init update * create db * sql error * gitpod test * path issue * Update .gitpod.yml * Update .gitpod.yml * removed .gitpod.dockerfile * added gitpod.dockerfile * passenger start added * switch to mysql * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml Co-authored-by: Jeffrey Warren <[email protected]> Co-authored-by: Sebastian Silva <[email protected]>
* test gitpod * just checking gitpod * changed version * tasks gitpod * gitpod.io * initial setup * db setup * init update * create db * sql error * gitpod test * path issue * Update .gitpod.yml * Update .gitpod.yml * removed .gitpod.dockerfile * added gitpod.dockerfile * passenger start added * switch to mysql * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml Co-authored-by: Jeffrey Warren <[email protected]> Co-authored-by: Sebastian Silva <[email protected]>
* test gitpod * just checking gitpod * changed version * tasks gitpod * gitpod.io * initial setup * db setup * init update * create db * sql error * gitpod test * path issue * Update .gitpod.yml * Update .gitpod.yml * removed .gitpod.dockerfile * added gitpod.dockerfile * passenger start added * switch to mysql * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml Co-authored-by: Jeffrey Warren <[email protected]> Co-authored-by: Sebastian Silva <[email protected]>
* test gitpod * just checking gitpod * changed version * tasks gitpod * gitpod.io * initial setup * db setup * init update * create db * sql error * gitpod test * path issue * Update .gitpod.yml * Update .gitpod.yml * removed .gitpod.dockerfile * added gitpod.dockerfile * passenger start added * switch to mysql * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml Co-authored-by: Jeffrey Warren <[email protected]> Co-authored-by: Sebastian Silva <[email protected]>
Here I am just testing gitpod with some changes
Thanks!
fixes #8122