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

Convert yeb to eb #2181

Closed
wants to merge 15 commits into from
Closed

Conversation

ocaisa
Copy link
Member

@ocaisa ocaisa commented Mar 23, 2017

Add a function to dump a parsed yeb to an equivalent .eb easyconfig (without any comments)

@ocaisa
Copy link
Member Author

ocaisa commented Mar 23, 2017

Should add a check to make sure it is a yeb easyconfig instance before allowing the conversion

@ocaisa
Copy link
Member Author

ocaisa commented Mar 23, 2017

@boegel Ok, that's the first step down from my side for #2122

@boegel boegel modified the milestone: 3.3.0 Apr 26, 2017
@boegel boegel modified the milestones: 3.3.0, 3.x Jun 22, 2017
@ocaisa
Copy link
Member Author

ocaisa commented Nov 22, 2018

@boegel I still believe yeb files have a future, kicking the can on this :)

easybuild/framework/easyconfig/easyconfig.py Outdated Show resolved Hide resolved
easybuild/framework/easyconfig/easyconfig.py Outdated Show resolved Hide resolved
easybuild/framework/easyconfig/easyconfig.py Show resolved Hide resolved
easybuild/framework/easyconfig/easyconfig.py Outdated Show resolved Hide resolved
easybuild/framework/easyconfig/easyconfig.py Outdated Show resolved Hide resolved
easybuild/framework/easyconfig/easyconfig.py Outdated Show resolved Hide resolved
easybuild/framework/easyconfig/easyconfig.py Show resolved Hide resolved
easybuild/framework/easyconfig/easyconfig.py Outdated Show resolved Hide resolved
@ocaisa ocaisa closed this Aug 30, 2019
@ocaisa ocaisa reopened this Aug 30, 2019
@boegelbot
Copy link

Travis test report: 11/21 runs failed - see https://travis-ci.org/easybuilders/easybuild-framework/builds/578793665

Only showing partial log for 1st failed test suite run 3364.11;
full log at https://travis-ci.org/easybuilders/easybuild-framework/jobs/578793676

...
    print "Skipping test_parse_yeb (no PyYAML available)"
                                                        ^
SyntaxError: invalid syntax

  File "/tmp/578793676/lib/python3.6/site-packages/easybuild_framework-4.0.0.dev0-py3.6.egg/easybuild/tools/py2vs3/py2.py", line 67
    raise exception_class, message, traceback
                         ^
SyntaxError: invalid syntax

  File "/tmp/578793676/lib/python3.6/site-packages/easybuild_framework-4.0.0.dev0-py3.6.egg/test/framework/yeb.py", line 116
    print "Skipping test_parse_yeb (no PyYAML available)"
                                                        ^
SyntaxError: invalid syntax

Adding easybuild-framework 4.0.0.dev0 to easy-install.pth file
Installing bootstrap_eb.py script to /tmp/578793676/bin
Installing minimal_bash_completion.bash script to /tmp/578793676/bin
Installing eb_bash_completion.bash script to /tmp/578793676/bin
Installing install_eb_dep.sh script to /tmp/578793676/bin
Installing eb script to /tmp/578793676/bin
Installing optcomplete.bash script to /tmp/578793676/bin

Installed /tmp/578793676/lib/python3.6/site-packages/easybuild_framework-4.0.0.dev0-py3.6.egg
Processing dependencies for easybuild-framework==4.0.0.dev0
Finished processing dependencies for easybuild-framework==4.0.0.dev0
travis_time:end:07bcf22b:start=1567174395575164603,finish=1567174400412399397,duration=4837234794
�[0K�[32;1mThe command "mkdir -p $PYTHONPATH; easy_install --prefix /tmp/$TRAVIS_JOB_ID $TRAVIS_BUILD_DIR/dist/easybuild-framework*tar.gz" exited with 0.�[0m

travis_time:start:00344ff7
�[0K$ SETUPTOOLS_IMPORTS=$(egrep -RI '^(from|import)[ ]*pkg_resources|^(from|import)[ ]*setuptools' easybuild/ || true)
travis_time:end:00344ff7:start=1567174400418157927,finish=1567174400434641644,duration=16483717
�[0K�[32;1mThe command "SETUPTOOLS_IMPORTS=$(egrep -RI '^(from|import)[ ]*pkg_resources|^(from|import)[ ]*setuptools' easybuild/ || true)" exited with 0.�[0m

travis_time:start:04805d4b
�[0K$ test "x$SETUPTOOLS_IMPORTS" = "x" || (echo "Found setuptools and/or pkg_resources imports in easybuild/:\n${SETUPTOOLS_IMPORTS}" && exit 1)
travis_time:end:04805d4b:start=1567174400440002188,finish=1567174400443628103,duration=3625915
�[0K�[32;1mThe command "test "x$SETUPTOOLS_IMPORTS" = "x" || (echo "Found setuptools and/or pkg_resources imports in easybuild/:
${SETUPTOOLS_IMPORTS}" && exit 1)" exited with 0.�[0m

travis_time:start:0b602148
�[0K$ cd $HOME
travis_time:end:0b602148:start=1567174400448673910,finish=1567174400451812563,duration=3138653
�[0K�[32;1mThe command "cd $HOME" exited with 0.�[0m

travis_time:start:0b09d016
�[0K$ EB_VERBOSE=1 eb --version
>> Considering 'python2'...
>> 'python2' version: 2.7.12, which matches Python 2 version requirement (>= 2.6)
>> Selected Python command: python2 (/opt/pyenv/shims/python2)
>> python2 -m easybuild.main --version
This is EasyBuild 4.0.0.dev0 (framework: 4.0.0.dev0, easyblocks: 0.0.UNKNOWN.EASYBLOCKS) on host travis-job-188a5a8d-ff1f-4ede-93f5-fe4a4e13d5e1.
travis_time:end:0b09d016:start=1567174400456594849,finish=1567174401555689753,duration=1099094904
�[0K�[32;1mThe command "EB_VERBOSE=1 eb --version" exited with 0.�[0m

travis_time:start:0063f38a
�[0K$ eb --check-github --github-user=easybuild_test
== temporary log file in case of crash /tmp/eb-ATLuix/easybuild-pwpQX4.log

Checking status of GitHub integration...

Making sure we're online...OK

* GitHub user...easybuild_test => OK
* GitHub token...(no token found) => FAIL
* git command...OK ("git version 2.21.0; ")
* GitPython module...FAIL (import failed)
* push access to easybuild_test/easybuild-easyconfigs repo @ GitHub...FAIL (GitPython is not available)
* creating gists...FAIL (res: None)
* location to Git working dirs... not found (suboptimal)

One or more checks FAILed, GitHub configuration not fully complete!
See http://easybuild.readthedocs.org/en/latest/Integration_with_GitHub.html#configuration for help.

Status of GitHub integration:
* --from-pr: OK
* --new-pr: not supported
* --review-pr: OK
* --update-pr: not supported
* --upload-test-report: not supported

travis_time:end:0063f38a:start=1567174401560993674,finish=1567174402571364760,duration=1010371086
�[0K�[32;1mThe command "eb --check-github --github-user=easybuild_test" exited with 0.�[0m

travis_time:start:28c86d68
�[0K$ python -O -m test.framework.suite 2>&1 | tee test_framework_suite.log
Traceback (most recent call last):
  File "/opt/python/3.6.7/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/opt/python/3.6.7/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmp/578793676/lib/python3.6/site-packages/easybuild_framework-4.0.0.dev0-py3.6.egg/test/framework/suite.py", line 81, in <module>
    import test.framework.yeb as y
  File "/tmp/578793676/lib/python3.6/site-packages/easybuild_framework-4.0.0.dev0-py3.6.egg/test/framework/yeb.py", line 116
    print "Skipping test_parse_yeb (no PyYAML available)"
                                                        ^
SyntaxError: invalid syntax
travis_time:end:28c86d68:start=1567174402577158738,finish=1567174410144089389,duration=7566930651
�[0K�[32;1mThe command "python -O -m test.framework.suite 2>&1 | tee test_framework_suite.log" exited with 0.�[0m

travis_time:start:0ee73e00
�[0K$ IGNORE_PATTERNS="vsc\.install\.shared_setup|no GitHub token available|skipping SvnRepository test|lib/python2.6/site-packages|required Lmod as modules tool|GC3Pie not available, skipping test"
travis_time:end:0ee73e00:start=1567174410149528623,finish=1567174410153001125,duration=3472502
�[0K�[32;1mThe command "IGNORE_PATTERNS="vsc\.install\.shared_setup|no GitHub token available|skipping SvnRepository test|lib/python2.6/site-packages|required Lmod as modules tool|GC3Pie not available, skipping test"" exited with 0.�[0m

travis_time:start:03c09a10
�[0K$ PRINTED_MSG=$(egrep -v "${IGNORE_PATTERNS}" test_framework_suite.log | grep '\.\n*[A-Za-z]' || true)
travis_time:end:03c09a10:start=1567174410158137269,finish=1567174410165568026,duration=7430757
�[0K�[32;1mThe command "PRINTED_MSG=$(egrep -v "${IGNORE_PATTERNS}" test_framework_suite.log | grep '\.
*[A-Za-z]' || true)" exited with 0.�[0m

travis_time:start:051958bc
�[0K$ test "x$PRINTED_MSG" = "x" || (echo "Found printed messages in output of test suite\n${PRINTED_MSG}" && exit 1)
Found printed messages in output of test suite\n  File "/opt/python/3.6.7/lib/python3.6/runpy.py", line 193, in _run_module_as_main
  File "/opt/python/3.6.7/lib/python3.6/runpy.py", line 85, in _run_code
  File "/tmp/578793676/lib/python3.6/site-packages/easybuild_framework-4.0.0.dev0-py3.6.egg/test/framework/suite.py", line 81, in <module>
    import test.framework.yeb as y
  File "/tmp/578793676/lib/python3.6/site-packages/easybuild_framework-4.0.0.dev0-py3.6.egg/test/framework/yeb.py", line 116

*bleep, bloop, I'm just a bot (boegelbot v20180813.01)*Please talk to my owner @boegel if you notice you me acting stupid),or submit a pull request to https://github.com/boegel/boegelbot fix the problem.

test/framework/yeb.py Outdated Show resolved Hide resolved
test/framework/yeb.py Outdated Show resolved Hide resolved
@boegel boegel modified the milestones: 3.x, 4.x Feb 20, 2020
@ocaisa
Copy link
Member Author

ocaisa commented May 3, 2023

.yeb support is now deprecated so this no longer makes sense

@ocaisa ocaisa closed this May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants