Skip to content
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

Problem with .travis.dist.yml #10

Closed
stronk7 opened this issue Jul 11, 2020 · 5 comments · Fixed by #13
Closed

Problem with .travis.dist.yml #10

stronk7 opened this issue Jul 11, 2020 · 5 comments · Fixed by #13
Labels
bug Something isn't working

Comments

@stronk7
Copy link
Member

stronk7 commented Jul 11, 2020

In #5 we moved to dockered selenium-firefox execution. But it seems that the final .travis.dist.yml changes are a non-working version. Basically:

  • if the docker container is launched BEFORE moodle-plugin-ci install then, the later, is unable to complete the moodle.git clone operation. See this travis build and the changes applied (following the .travis.dist.yml advise).
  • Only if the docker container is launched AFTER moodle-plugin-ci install it's possible to get it working. See this travis build and the changes applied.

So, this issue is about to fix that (make a really working .travis.dist.yml file). And, maybe (optional) to consider to move all this stuff, and also the nvm / nodejs one (see #7) to within moodle-plugin-ci install. Both are just "distractions", the plugin developer shouldn't need to modify all that stuff, ideally install should provide all (IMO).

Ciao :-)

@stronk7 stronk7 added the bug Something isn't working label Jul 11, 2020
stronk7 added a commit to stronk7/moodle-local_codechecker that referenced this issue Jul 11, 2020
Just note that there is moodlehq/moodle-plugin-ci#10
about a problem with the currenly provided .travis.dist.yml
file in the master branch.
@kabalin
Copy link
Member

kabalin commented Jul 13, 2020

I remember I kept docker container run as last item in install step for a reason :) Anyway, I don't mind having it within install, although, may be a better place for it within behat command (like selenium jar execution used to be) along with php server initialisation (already there)?

@mudrd8mz
Copy link
Member

is unable to complete the moodle.git clone operation

Just to confirm this is the problem I was experiencing a few days ago when I tried to use the travis.dist in my own plugin.

@kabalin
Copy link
Member

kabalin commented Jul 13, 2020

In #5 we moved to dockered selenium-firefox execution.

Just to note in #5 we had a fix for Firefox container version, the actual change was made in open-lms-open-source/moodle-plugin-ci#107

@stronk7
Copy link
Member Author

stronk7 commented Jul 13, 2020

Just to note in #5 we had a fix for Firefox container version, the actual change was made in blackboard-open-source/moodle-plugin-ci#107

Yeah, you are correct, I became confused with our #5 , open-lms-open-source/moodle-plugin-ci#99 and everything else. And did the same in the CHANGELOG issue (#11 ) that I'm amending right now.

BTW, oftopic, just saw that, curiously... while we add firefox for everybody (.travis.dist.yml), curiously we use chrome for out own tests of this repo (.travis.yml). Caused some fun here :-)

@stronk7
Copy link
Member Author

stronk7 commented Jul 13, 2020

I remember I kept docker container run as last item in install step for a reason :) Anyway, I don't mind having it within install, although, may be a better place for it within behat command (like selenium jar execution used to be) along with php server initialisation (already there)?

I really think, as commented in the issue description... that all that stuff should be kept away from developers. In an ideal world, they should be able to just define the jobs combos (branch, db...) they want to run and then let moodle-plugin-ci install to do all the work. So they don't have to mind about nvm, npm, docker or anything else.

I'm aware we are not near to that, just painting the (my) ideal picture.

In fact, it's something that we need to be really careful, because it's also something that, maybe doesn't correspond to all jobs, but just to the behat ones (for example), or in other cases (for example, nvm / nodejs, or codechecker...) something similar happens, each job should install exclusively what is needed for it.

Anyway, this belongs to other, future issues.

kabalin added a commit to kabalin/moodle-plugin-ci that referenced this issue Jul 17, 2020
kabalin added a commit to kabalin/moodle-plugin-ci that referenced this issue Jul 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants