BerkeleyPhotonicsGenerator / BPG

The Berkeley Photonics Generator (BPG) is a Python framework that enables the generation and simulation of photonics layout
BSD 3-Clause "New" or "Revised" License
35 stars 9 forks source link

Test PR #148

Closed edwardcwang closed 5 years ago

hammer-robot commented 5 years ago

Step run_bpg_tests failed with details below:

+ export BPG_DIR=/buildbot/runtests/build
+ BPG_DIR=/buildbot/runtests/build
+ /opt/run_bpg.sh
+ mkdir -p workdir
+ cd workdir
+ '[' -z /buildbot/runtests/build ']'
+ '[' -z '' ']'
+ BAG_HASH=e2b2f54
+ '[' -z '' ']'
+ BAG2_TEMPLATES_EC_HASH=e79f54c
+ '[' '!' -d BAG_framework ']'
+ git clone https://github.com/edwardcwang/BAG_framework.git
Cloning into 'BAG_framework'...
+ pushd BAG_framework
+ git checkout e2b2f54
/buildbot/runtests/build/workdir/BAG_framework /buildbot/runtests/build/workdir
Note: checking out 'e2b2f54'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at e2b2f54 1. fix type-hinting warnings in Pycharm.
+ popd
+ '[' '!' -d BAG2_TEMPLATES_EC ']'
/buildbot/runtests/build/workdir
+ git clone https://github.com/edwardcwang/BAG2_TEMPLATES_EC.git
Cloning into 'BAG2_TEMPLATES_EC'...
+ pushd BAG2_TEMPLATES_EC
+ git checkout e79f54c
/buildbot/runtests/build/workdir/BAG2_TEMPLATES_EC /buildbot/runtests/build/workdir
Note: checking out 'e79f54c'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at e79f54c Merge pull request #2 from ucb-art/gf14_compatibility
+ popd
+ export BAG_WORK_DIR=/buildbot/runtests/build/workdir
+ BAG_WORK_DIR=/buildbot/runtests/build/workdir
+ export BAG_FRAMEWORK=/buildbot/runtests/build/workdir/BAG_framework
+ BAG_FRAMEWORK=/buildbot/runtests/build/workdir/BAG_framework
/buildbot/runtests/build/workdir
+ export BAG_TEMP_DIR=/buildbot/runtests/build/workdir/tmp
+ BAG_TEMP_DIR=/buildbot/runtests/build/workdir/tmp
+ export BAG_TECH_CONFIG_DIR=/buildbot/runtests/build/examples/tech/BAG_tech_files
+ BAG_TECH_CONFIG_DIR=/buildbot/runtests/build/examples/tech/BAG_tech_files
+ export PYTHONPATH=/buildbot/runtests/build/workdir/BAG_framework:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ PYTHONPATH=/buildbot/runtests/build/workdir/BAG_framework:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ mkdir -p /buildbot/runtests/build/workdir/tmp
+ rm -f BPG
+ ln -s /buildbot/runtests/build BPG
+ BPG/run_tests.py
============================= test session starts ==============================
platform linux -- Python 3.6.7, pytest-3.3.2, py-1.5.2, pluggy-0.6.0
rootdir: /buildbot/runtests/build/workdir/BPG, inifile:
collected 20 items

BPG/tests/test_add_rect.py F                                             [  5%]
BPG/tests/test_add_round.py .                                            [ 10%]
BPG/tests/test_anyangle.py ....                                          [ 30%]
BPG/tests/test_anyangle_alignment.py .                                   [ 35%]
BPG/tests/test_dataprep_generic.py .                                     [ 40%]
BPG/tests/test_dataprep_op.py .                                          [ 45%]
BPG/tests/test_dataprep_width_space.py .                                 [ 50%]
BPG/tests/test_flatten.py .                                              [ 55%]
BPG/tests/test_gds_import.py .                                           [ 60%]
BPG/tests/test_logger.py ..                                              [ 70%]
BPG/tests/test_lumerical_material_generator.py .                         [ 75%]
BPG/tests/test_path.py .                                                 [ 80%]
BPG/tests/test_port_extraction.py .                                      [ 85%]
BPG/tests/test_sweep.py .                                                [ 90%]
BPG/tests/test_wg_port.py .                                              [ 95%]
BPG/examples/Waveguide.py .                                              [100%]

=================================== FAILURES ===================================
________________________________ test_add_rect _________________________________

    def test_add_rect():
        """
        Unit test definition
        """
        spec_file = 'BPG/tests/specs/add_rect_specs.yaml'
        plm = BPG.PhotonicLayoutManager(spec_file)
>       plm.generate_content()

BPG/tests/test_add_rect.py:56: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
BPG/BPG/layout_manager.py:181: in generate_content
    self.generate_template()
BPG/BPG/layout_manager.py:163: in generate_template
    debug=False))
BAG_framework/bag/layout/template.py:263: in new_template
    gen_cls=temp_cls, debug=debug, **kwargs)
BAG_framework/bag/util/cache.py:635: in new_master
    master.finalize()
BPG/BPG/template.py:254: in finalize
    TemplateBase.finalize(self)
BAG_framework/bag/layout/template.py:631: in finalize
    self.draw_layout()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tests.test_add_rect.AddRect object at 0xffffb3d8e400>

    def draw_layout(self):
        """ Specifies the creation of the lumerical shapes """

        self.add_rect(
            layer='SI',
            coord1=self.params['point1'],
            coord2=self.params['point2'],
            unit_mode=False,
        )
>       1/0
E       ZeroDivisionError: division by zero

BPG/tests/test_add_rect.py:34: ZeroDivisionError
----------------------------- Captured stdout call -----------------------------
*WARNING* Cannot find file: /buildbot/runtests/build/workdir/BAG_server_port.txt
Setting up tech info class
Loading layermap from /buildbot/runtests/build/workdir/BPG/examples/tech/BPG_tech_files/gds_map.yaml
Loading lumerical export config from /buildbot/runtests/build/workdir/BPG/examples/tech/BPG_tech_files/lumerical_map.yaml
Loading dataprep procedure from /buildbot/runtests/build/workdir/BPG/examples/tech/BPG_tech_files/dataprep_routine.yaml
Loading dataprep parameters from /buildbot/runtests/build/workdir/BPG/examples/tech/BPG_tech_files/dataprep_parameters.yaml
----------------------------- Captured stderr call -----------------------------
##########################
Starting BPG Build
2019-04-03 23:50:19.695325
##########################
PhotonicCoreLayout initialized from spec file: BPG/tests/specs/add_rect_specs.yaml
loading layermap from /buildbot/runtests/build/workdir/BPG/examples/tech/BPG_tech_files/gds_map.yaml
loading dataprep procedure from /buildbot/runtests/build/workdir/BPG/examples/tech/BPG_tech_files/dataprep_routine.yaml
loading dataprep and DRC parameters from /buildbot/runtests/build/workdir/BPG/examples/tech/BPG_tech_files/dataprep_parameters.yaml
loading lumerical export configuration from /buildbot/runtests/build/workdir/BPG/examples/tech/BPG_tech_files/lumerical_map.yaml
loaded paths successfully

------------------------------Generating template-------------------------------
------------------------------ Captured log call -------------------------------
selector_events.py          65 DEBUG    Using selector: EpollSelector
=============================== warnings summary ===============================
tests/test_gds_import.py::TestGDSImport
  cannot collect test class 'TestGDSImport' because it has a __init__ constructor

-- Docs: http://doc.pytest.org/en/latest/warnings.html
=============== 1 failed, 19 passed, 1 warnings in 40.63 seconds ===============

-------------------------------BPG call completed-------------------------------
Ran with 1 warnings.

See /buildbot/runtests/build/workdir/gen_libs/Waveguide/output.log for details.

-------------------------------BPG call completed-------------------------------
Ran with 2 warnings.

See /buildbot/runtests/build/workdir/gen_libs/bpg_test_suite/output.log for details.

-------------------------------BPG call completed-------------------------------
Ran with 2 warnings.

See /buildbot/runtests/build/workdir/gen_libs/bpg_test_suite/output.log for details.

-------------------------------BPG call completed-------------------------------
Ran with 2 warnings.

See /buildbot/runtests/build/workdir/gen_libs/bpg_test_suite/output.log for details.

-------------------------------BPG call completed-------------------------------
Ran with 2 warnings.

See /buildbot/runtests/build/workdir/gen_libs/bpg_test_suite/output.log for details.

-------------------------------BPG call completed-------------------------------
Ran with 2 warnings.

See /buildbot/runtests/build/workdir/gen_libs/bpg_test_suite/output.log for details.

-------------------------------BPG call completed-------------------------------
Ran with 0 warnings.

See /buildbot/runtests/build/workdir/gen_libs/bpg_test_suite/custom_log_name_test.txt for details.

-------------------------------BPG call completed-------------------------------
Ran with 2 warnings.

See /buildbot/runtests/build/workdir/gen_libs/bpg_test_suite/output.log for details.

-------------------------------BPG call completed-------------------------------
Ran with 2 warnings.

See /buildbot/runtests/build/workdir/gen_libs/bpg_test_suite/output.log for details.

-------------------------------BPG call completed-------------------------------
Ran with 2 warnings.

See /buildbot/runtests/build/workdir/gen_libs/bpg_test_suite/output.log for details.

-------------------------------BPG call completed-------------------------------
Ran with 2 warnings.

See /buildbot/runtests/build/workdir/gen_libs/bpg_test_suite/output.log for details.

-------------------------------BPG call completed-------------------------------
Ran with 2 warnings.

See /buildbot/runtests/build/workdir/gen_libs/bpg_test_suite/output.log for details.

-------------------------------BPG call completed-------------------------------
Ran with 2 warnings.

See /buildbot/runtests/build/workdir/gen_libs/bpg_test_suite/output.log for details.

-------------------------------BPG call completed-------------------------------
Ran with 2 warnings.

See /buildbot/runtests/build/workdir/gen_libs/bpg_test_suite/output.log for details.

-------------------------------BPG call completed-------------------------------
Ran with 2 warnings.

See /buildbot/runtests/build/workdir/gen_libs/bpg_test_suite/output.log for details.

-------------------------------BPG call completed-------------------------------
Ran with 2 warnings.

See /buildbot/runtests/build/workdir/gen_libs/bpg_test_suite/output.log for details.

-------------------------------BPG call completed-------------------------------
Ran with 2 warnings.

See /buildbot/runtests/build/workdir/gen_libs/bpg_test_suite/output.log for details.

-------------------------------BPG call completed-------------------------------
Ran with 2 warnings.

See /buildbot/runtests/build/workdir/gen_libs/bpg_test_suite/output.log for details.
hammer-robot commented 5 years ago

Step run_bpg_photonics_dev failed with details below:

+ export BPG_DIR=/buildbot/runtests/build
+ BPG_DIR=/buildbot/runtests/build
+ /opt/run_bpg_photonics_dev.sh
+ mkdir -p workdir
+ cd workdir
+ '[' -z /buildbot/runtests/build ']'
+ '[' -z '' ']'
+ PHOTONICS_DEV_HASH=9a82057
+ rm -rf Photonics_Dev
+ git clone git@github.com:pvnbhargava/Photonics_Dev.git
Cloning into 'Photonics_Dev'...
+ cd Photonics_Dev
+ git checkout 9a82057
Note: checking out '9a82057'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 9a82057 Use ssh for BAG for now
+ git submodule update --init --recursive
Submodule 'BAG2_TEMPLATES_EC' (git@github.com:ucb-art/BAG2_TEMPLATES_EC.git) registered for path 'BAG2_TEMPLATES_EC'
Submodule 'BAG_framework' (git@github.com:ucb-art/BAG_framework.git) registered for path 'BAG_framework'
Submodule 'BPG' (git@github.com:pvnbhargava/BPG.git) registered for path 'BPG'
Submodule 'Photonic_Core_Layout' (git@github.com:pvnbhargava/Photonic_Core_Layout.git) registered for path 'Photonic_Core_Layout'
Submodule 'gdspy' (https://github.com/heitzmann/gdspy.git) registered for path 'gdspy'
Cloning into '/buildbot/runtests/build/workdir/Photonics_Dev/BAG2_TEMPLATES_EC'...
ERROR: Repository not found.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'git@github.com:ucb-art/BAG2_TEMPLATES_EC.git' into submodule path '/buildbot/runtests/build/workdir/Photonics_Dev/BAG2_TEMPLATES_EC' failed
Failed to clone 'BAG2_TEMPLATES_EC'. Retry scheduled
Cloning into '/buildbot/runtests/build/workdir/Photonics_Dev/BAG_framework'...
ERROR: Repository not found.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'git@github.com:ucb-art/BAG_framework.git' into submodule path '/buildbot/runtests/build/workdir/Photonics_Dev/BAG_framework' failed
Failed to clone 'BAG_framework'. Retry scheduled
Cloning into '/buildbot/runtests/build/workdir/Photonics_Dev/BPG'...
Cloning into '/buildbot/runtests/build/workdir/Photonics_Dev/Photonic_Core_Layout'...
Cloning into '/buildbot/runtests/build/workdir/Photonics_Dev/gdspy'...
Cloning into '/buildbot/runtests/build/workdir/Photonics_Dev/BAG2_TEMPLATES_EC'...
ERROR: Repository not found.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'git@github.com:ucb-art/BAG2_TEMPLATES_EC.git' into submodule path '/buildbot/runtests/build/workdir/Photonics_Dev/BAG2_TEMPLATES_EC' failed
Failed to clone 'BAG2_TEMPLATES_EC' a second time, aborting
hammer-robot commented 5 years ago

Step run_bpg_tests failed with details below:

+ export BPG_DIR=/buildbot/runtests/build
+ BPG_DIR=/buildbot/runtests/build
+ /opt/run_bpg.sh
+ mkdir -p workdir
+ cd workdir
+ '[' -z /buildbot/runtests/build ']'
+ '[' -z '' ']'
+ BAG_HASH=e2b2f54
+ '[' -z '' ']'
+ BAG2_TEMPLATES_EC_HASH=e79f54c
+ '[' '!' -d BAG_framework ']'
+ pushd BAG_framework
+ git checkout e2b2f54
/buildbot/runtests/build/workdir/BAG_framework /buildbot/runtests/build/workdir
HEAD is now at e2b2f54 1. fix type-hinting warnings in Pycharm.
+ popd
/buildbot/runtests/build/workdir
+ '[' '!' -d BAG2_TEMPLATES_EC ']'
+ pushd BAG2_TEMPLATES_EC
+ git checkout e79f54c
/buildbot/runtests/build/workdir/BAG2_TEMPLATES_EC /buildbot/runtests/build/workdir
HEAD is now at e79f54c Merge pull request #2 from ucb-art/gf14_compatibility
+ popd
+ export BAG_WORK_DIR=/buildbot/runtests/build/workdir
+ BAG_WORK_DIR=/buildbot/runtests/build/workdir
+ export BAG_FRAMEWORK=/buildbot/runtests/build/workdir/BAG_framework
+ BAG_FRAMEWORK=/buildbot/runtests/build/workdir/BAG_framework
+ export BAG_TEMP_DIR=/buildbot/runtests/build/workdir/tmp
+ BAG_TEMP_DIR=/buildbot/runtests/build/workdir/tmp
+ export BAG_TECH_CONFIG_DIR=/buildbot/runtests/build/examples/tech/BAG_tech_files
+ BAG_TECH_CONFIG_DIR=/buildbot/runtests/build/examples/tech/BAG_tech_files
+ export PYTHONPATH=/buildbot/runtests/build/workdir/BAG_framework:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ PYTHONPATH=/buildbot/runtests/build/workdir/BAG_framework:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ mkdir -p /buildbot/runtests/build/workdir/tmp
/buildbot/runtests/build/workdir
+ rm -f BPG
+ ln -s /buildbot/runtests/build BPG
+ BPG/run_tests.py
============================= test session starts ==============================
platform linux -- Python 3.6.7, pytest-3.3.2, py-1.5.2, pluggy-0.6.0
rootdir: /buildbot/runtests/build/workdir/BPG, inifile:
collected 20 items

BPG/tests/test_add_rect.py F                                             [  5%]
BPG/tests/test_add_round.py .                                            [ 10%]
BPG/tests/test_anyangle.py ....                                          [ 30%]
BPG/tests/test_anyangle_alignment.py .                                   [ 35%]
BPG/tests/test_dataprep_generic.py .                                     [ 40%]
BPG/tests/test_dataprep_op.py .                                          [ 45%]
BPG/tests/test_dataprep_width_space.py .                                 [ 50%]
BPG/tests/test_flatten.py .                                              [ 55%]
BPG/tests/test_gds_import.py .                                           [ 60%]
BPG/tests/test_logger.py ..                                              [ 70%]
BPG/tests/test_lumerical_material_generator.py .                         [ 75%]
BPG/tests/test_path.py .                                                 [ 80%]
BPG/tests/test_port_extraction.py .                                      [ 85%]
BPG/tests/test_sweep.py .                                                [ 90%]
BPG/tests/test_wg_port.py .                                              [ 95%]
BPG/examples/Waveguide.py .                                              [100%]

=================================== FAILURES ===================================
________________________________ test_add_rect _________________________________

    def test_add_rect():
        """
        Unit test definition
        """
        spec_file = 'BPG/tests/specs/add_rect_specs.yaml'
        plm = BPG.PhotonicLayoutManager(spec_file)
>       plm.generate_content()

BPG/tests/test_add_rect.py:56: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
BPG/BPG/layout_manager.py:181: in generate_content
    self.generate_template()
BPG/BPG/layout_manager.py:163: in generate_template
    debug=False))
BAG_framework/bag/layout/template.py:263: in new_template
    gen_cls=temp_cls, debug=debug, **kwargs)
BAG_framework/bag/util/cache.py:635: in new_master
    master.finalize()
BPG/BPG/template.py:254: in finalize
    TemplateBase.finalize(self)
BAG_framework/bag/layout/template.py:631: in finalize
    self.draw_layout()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tests.test_add_rect.AddRect object at 0xffffb0b4d9b0>

    def draw_layout(self):
        """ Specifies the creation of the lumerical shapes """

        self.add_rect(
            layer='SI',
            coord1=self.params['point1'],
            coord2=self.params['point2'],
            unit_mode=False,
        )
>       1/0
E       ZeroDivisionError: division by zero

BPG/tests/test_add_rect.py:34: ZeroDivisionError
----------------------------- Captured stdout call -----------------------------
*WARNING* Cannot find file: /buildbot/runtests/build/workdir/BAG_server_port.txt
Setting up tech info class
Loading layermap from /buildbot/runtests/build/workdir/BPG/examples/tech/BPG_tech_files/gds_map.yaml
Loading lumerical export config from /buildbot/runtests/build/workdir/BPG/examples/tech/BPG_tech_files/lumerical_map.yaml
Loading dataprep procedure from /buildbot/runtests/build/workdir/BPG/examples/tech/BPG_tech_files/dataprep_routine.yaml
Loading dataprep parameters from /buildbot/runtests/build/workdir/BPG/examples/tech/BPG_tech_files/dataprep_parameters.yaml
----------------------------- Captured stderr call -----------------------------
##########################
Starting BPG Build
2019-04-03 23:54:00.023251
##########################
PhotonicCoreLayout initialized from spec file: BPG/tests/specs/add_rect_specs.yaml
loading layermap from /buildbot/runtests/build/workdir/BPG/examples/tech/BPG_tech_files/gds_map.yaml
loading dataprep procedure from /buildbot/runtests/build/workdir/BPG/examples/tech/BPG_tech_files/dataprep_routine.yaml
loading dataprep and DRC parameters from /buildbot/runtests/build/workdir/BPG/examples/tech/BPG_tech_files/dataprep_parameters.yaml
loading lumerical export configuration from /buildbot/runtests/build/workdir/BPG/examples/tech/BPG_tech_files/lumerical_map.yaml
loaded paths successfully

------------------------------Generating template-------------------------------
------------------------------ Captured log call -------------------------------
selector_events.py          65 DEBUG    Using selector: EpollSelector
=============================== warnings summary ===============================
tests/test_gds_import.py::TestGDSImport
  cannot collect test class 'TestGDSImport' because it has a __init__ constructor

-- Docs: http://doc.pytest.org/en/latest/warnings.html
=============== 1 failed, 19 passed, 1 warnings in 40.57 seconds ===============

-------------------------------BPG call completed-------------------------------
Ran with 1 warnings.

See /buildbot/runtests/build/workdir/gen_libs/Waveguide/output.log for details.

-------------------------------BPG call completed-------------------------------
Ran with 2 warnings.

See /buildbot/runtests/build/workdir/gen_libs/bpg_test_suite/output.log for details.

-------------------------------BPG call completed-------------------------------
Ran with 2 warnings.

See /buildbot/runtests/build/workdir/gen_libs/bpg_test_suite/output.log for details.

-------------------------------BPG call completed-------------------------------
Ran with 2 warnings.

See /buildbot/runtests/build/workdir/gen_libs/bpg_test_suite/output.log for details.

-------------------------------BPG call completed-------------------------------
Ran with 2 warnings.

See /buildbot/runtests/build/workdir/gen_libs/bpg_test_suite/output.log for details.

-------------------------------BPG call completed-------------------------------
Ran with 2 warnings.

See /buildbot/runtests/build/workdir/gen_libs/bpg_test_suite/output.log for details.

-------------------------------BPG call completed-------------------------------
Ran with 0 warnings.

See /buildbot/runtests/build/workdir/gen_libs/bpg_test_suite/custom_log_name_test.txt for details.

-------------------------------BPG call completed-------------------------------
Ran with 2 warnings.

See /buildbot/runtests/build/workdir/gen_libs/bpg_test_suite/output.log for details.

-------------------------------BPG call completed-------------------------------
Ran with 2 warnings.

See /buildbot/runtests/build/workdir/gen_libs/bpg_test_suite/output.log for details.

-------------------------------BPG call completed-------------------------------
Ran with 2 warnings.

See /buildbot/runtests/build/workdir/gen_libs/bpg_test_suite/output.log for details.

-------------------------------BPG call completed-------------------------------
Ran with 2 warnings.

See /buildbot/runtests/build/workdir/gen_libs/bpg_test_suite/output.log for details.

-------------------------------BPG call completed-------------------------------
Ran with 2 warnings.

See /buildbot/runtests/build/workdir/gen_libs/bpg_test_suite/output.log for details.

-------------------------------BPG call completed-------------------------------
Ran with 2 warnings.

See /buildbot/runtests/build/workdir/gen_libs/bpg_test_suite/output.log for details.

-------------------------------BPG call completed-------------------------------
Ran with 2 warnings.

See /buildbot/runtests/build/workdir/gen_libs/bpg_test_suite/output.log for details.

-------------------------------BPG call completed-------------------------------
Ran with 2 warnings.

See /buildbot/runtests/build/workdir/gen_libs/bpg_test_suite/output.log for details.

-------------------------------BPG call completed-------------------------------
Ran with 2 warnings.

See /buildbot/runtests/build/workdir/gen_libs/bpg_test_suite/output.log for details.

-------------------------------BPG call completed-------------------------------
Ran with 2 warnings.

See /buildbot/runtests/build/workdir/gen_libs/bpg_test_suite/output.log for details.

-------------------------------BPG call completed-------------------------------
Ran with 2 warnings.

See /buildbot/runtests/build/workdir/gen_libs/bpg_test_suite/output.log for details.
hammer-robot commented 5 years ago

Step run_bpg_photonics_dev failed with details below:

+ export BPG_DIR=/buildbot/runtests/build
+ BPG_DIR=/buildbot/runtests/build
+ /opt/run_bpg_photonics_dev.sh
+ mkdir -p workdir
+ cd workdir
+ '[' -z /buildbot/runtests/build ']'
+ '[' -z '' ']'
+ PHOTONICS_DEV_HASH=9a82057
+ rm -rf Photonics_Dev
+ git clone git@github.com:pvnbhargava/Photonics_Dev.git
Cloning into 'Photonics_Dev'...
+ cd Photonics_Dev
+ git checkout 9a82057
Note: checking out '9a82057'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 9a82057 Use ssh for BAG for now
+ git submodule update --init --recursive
Submodule 'BAG2_TEMPLATES_EC' (git@github.com:ucb-art/BAG2_TEMPLATES_EC.git) registered for path 'BAG2_TEMPLATES_EC'
Submodule 'BAG_framework' (git@github.com:ucb-art/BAG_framework.git) registered for path 'BAG_framework'
Submodule 'BPG' (git@github.com:pvnbhargava/BPG.git) registered for path 'BPG'
Submodule 'Photonic_Core_Layout' (git@github.com:pvnbhargava/Photonic_Core_Layout.git) registered for path 'Photonic_Core_Layout'
Submodule 'gdspy' (https://github.com/heitzmann/gdspy.git) registered for path 'gdspy'
Cloning into '/buildbot/runtests/build/workdir/Photonics_Dev/BAG2_TEMPLATES_EC'...
Cloning into '/buildbot/runtests/build/workdir/Photonics_Dev/BAG_framework'...
Cloning into '/buildbot/runtests/build/workdir/Photonics_Dev/BPG'...
Cloning into '/buildbot/runtests/build/workdir/Photonics_Dev/Photonic_Core_Layout'...
Cloning into '/buildbot/runtests/build/workdir/Photonics_Dev/gdspy'...
Submodule path 'BAG2_TEMPLATES_EC': checked out 'e79f54c8da5b16c1b02ba6483296883488b9a83a'
Submodule path 'BAG_framework': checked out 'e2b2f54423735020be61f66a915b676da5c54797'
Submodule path 'BPG': checked out '916710d46530f0b382a8251443c4d5fdfa5b5fe6'
Submodule path 'Photonic_Core_Layout': checked out '85d956999919841c22dd7b843954b96bcdead94c'
Submodule path 'gdspy': checked out 'fe624a08e9b1ba36172d26767594011fc5d77b38'
+ mkdir -p tmp
+ rm -rf BPG
+ ln -s ../BPG .
+ source workspace_setup/.bashrc
++ echo '---Loading .bashrc---'
---Loading .bashrc---
+++ pwd
++ export BAG_WORK_DIR=/buildbot/runtests/build/workdir/Photonics_Dev
++ BAG_WORK_DIR=/buildbot/runtests/build/workdir/Photonics_Dev
++ export BAG_CONFIG_PATH=/buildbot/runtests/build/workdir/Photonics_Dev/workspace_setup/bag_config.yaml
++ BAG_CONFIG_PATH=/buildbot/runtests/build/workdir/Photonics_Dev/workspace_setup/bag_config.yaml
++ export BAG_FRAMEWORK=/buildbot/runtests/build/workdir/Photonics_Dev/BAG_framework
++ BAG_FRAMEWORK=/buildbot/runtests/build/workdir/Photonics_Dev/BAG_framework
++ export BAG_TEMP_DIR=/buildbot/runtests/build/workdir/Photonics_Dev/tmp
++ BAG_TEMP_DIR=/buildbot/runtests/build/workdir/Photonics_Dev/tmp
++ export BAG_TECH_CONFIG_DIR=/buildbot/runtests/build/workdir/Photonics_Dev/BPG/examples/tech/BAG_tech_files
++ BAG_TECH_CONFIG_DIR=/buildbot/runtests/build/workdir/Photonics_Dev/BPG/examples/tech/BAG_tech_files
++ export BAG_TEMP_DIR=/buildbot/runtests/build/workdir/Photonics_Dev/tmp
++ BAG_TEMP_DIR=/buildbot/runtests/build/workdir/Photonics_Dev/tmp
++ export IPYTHONDIR=/buildbot/runtests/build/workdir/Photonics_Dev/.ipython
++ IPYTHONDIR=/buildbot/runtests/build/workdir/Photonics_Dev/.ipython
++ export BAG_PYTHON=python3
++ BAG_PYTHON=python3
+ export PYTHONPATH=/buildbot/runtests/build/workdir/Photonics_Dev/BAG_framework:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ PYTHONPATH=/buildbot/runtests/build/workdir/Photonics_Dev/BAG_framework:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ BPG/run_tests.py
============================= test session starts ==============================
platform linux -- Python 3.6.7, pytest-3.3.2, py-1.5.2, pluggy-0.6.0
rootdir: /buildbot/runtests/build/workdir/Photonics_Dev/BPG, inifile:
collected 20 items

BPG/tests/test_add_rect.py F                                             [  5%]
BPG/tests/test_add_round.py .                                            [ 10%]
BPG/tests/test_anyangle.py ....                                          [ 30%]
BPG/tests/test_anyangle_alignment.py .                                   [ 35%]
BPG/tests/test_dataprep_generic.py .                                     [ 40%]
BPG/tests/test_dataprep_op.py .                                          [ 45%]
BPG/tests/test_dataprep_width_space.py .                                 [ 50%]
BPG/tests/test_flatten.py .                                              [ 55%]
BPG/tests/test_gds_import.py .                                           [ 60%]
BPG/tests/test_logger.py ..                                              [ 70%]
BPG/tests/test_lumerical_material_generator.py .                         [ 75%]
BPG/tests/test_path.py .                                                 [ 80%]
BPG/tests/test_port_extraction.py .                                      [ 85%]
BPG/tests/test_sweep.py .                                                [ 90%]
BPG/tests/test_wg_port.py .                                              [ 95%]
BPG/examples/Waveguide.py .                                              [100%]

=================================== FAILURES ===================================
________________________________ test_add_rect _________________________________

    def test_add_rect():
        """
        Unit test definition
        """
        spec_file = 'BPG/tests/specs/add_rect_specs.yaml'
        plm = BPG.PhotonicLayoutManager(spec_file)
>       plm.generate_content()

../BPG/tests/test_add_rect.py:56: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
BPG/BPG/layout_manager.py:181: in generate_content
    self.generate_template()
BPG/BPG/layout_manager.py:163: in generate_template
    debug=False))
BAG_framework/bag/layout/template.py:263: in new_template
    gen_cls=temp_cls, debug=debug, **kwargs)
BAG_framework/bag/util/cache.py:635: in new_master
    master.finalize()
BPG/BPG/template.py:254: in finalize
    TemplateBase.finalize(self)
BAG_framework/bag/layout/template.py:631: in finalize
    self.draw_layout()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tests.test_add_rect.AddRect object at 0xffff86dfce10>

    def draw_layout(self):
        """ Specifies the creation of the lumerical shapes """

        self.add_rect(
            layer='SI',
            coord1=self.params['point1'],
            coord2=self.params['point2'],
            unit_mode=False,
        )
>       1/0
E       ZeroDivisionError: division by zero

../BPG/tests/test_add_rect.py:34: ZeroDivisionError
----------------------------- Captured stdout call -----------------------------
*WARNING* Cannot find file: /buildbot/runtests/build/workdir/Photonics_Dev/BAG_server_port.txt
Setting up tech info class
Loading layermap from /buildbot/runtests/build/workdir/Photonics_Dev/BPG/examples/tech/BPG_tech_files/gds_map.yaml
Loading lumerical export config from /buildbot/runtests/build/workdir/Photonics_Dev/BPG/examples/tech/BPG_tech_files/lumerical_map.yaml
Loading dataprep procedure from /buildbot/runtests/build/workdir/Photonics_Dev/BPG/examples/tech/BPG_tech_files/dataprep_routine.yaml
Loading dataprep parameters from /buildbot/runtests/build/workdir/Photonics_Dev/BPG/examples/tech/BPG_tech_files/dataprep_parameters.yaml
----------------------------- Captured stderr call -----------------------------
##########################
Starting BPG Build
2019-04-03 23:54:46.440153
##########################
PhotonicCoreLayout initialized from spec file: BPG/tests/specs/add_rect_specs.yaml
loading layermap from /buildbot/runtests/build/workdir/Photonics_Dev/BPG/examples/tech/BPG_tech_files/gds_map.yaml
loading dataprep procedure from /buildbot/runtests/build/workdir/Photonics_Dev/BPG/examples/tech/BPG_tech_files/dataprep_routine.yaml
loading dataprep and DRC parameters from /buildbot/runtests/build/workdir/Photonics_Dev/BPG/examples/tech/BPG_tech_files/dataprep_parameters.yaml
loading lumerical export configuration from /buildbot/runtests/build/workdir/Photonics_Dev/BPG/examples/tech/BPG_tech_files/lumerical_map.yaml
loaded paths successfully

------------------------------Generating template-------------------------------
------------------------------ Captured log call -------------------------------
selector_events.py          65 DEBUG    Using selector: EpollSelector
=============================== warnings summary ===============================
tests/test_gds_import.py::TestGDSImport
  cannot collect test class 'TestGDSImport' because it has a __init__ constructor

-- Docs: http://doc.pytest.org/en/latest/warnings.html
=============== 1 failed, 19 passed, 1 warnings in 41.20 seconds ===============

-------------------------------BPG call completed-------------------------------
Ran with 1 warnings.

See /buildbot/runtests/build/workdir/Photonics_Dev/gen_libs/Waveguide/output.log for details.

-------------------------------BPG call completed-------------------------------
Ran with 2 warnings.

See /buildbot/runtests/build/workdir/Photonics_Dev/gen_libs/bpg_test_suite/output.log for details.

-------------------------------BPG call completed-------------------------------
Ran with 2 warnings.

See /buildbot/runtests/build/workdir/Photonics_Dev/gen_libs/bpg_test_suite/output.log for details.

-------------------------------BPG call completed-------------------------------
Ran with 2 warnings.

See /buildbot/runtests/build/workdir/Photonics_Dev/gen_libs/bpg_test_suite/output.log for details.

-------------------------------BPG call completed-------------------------------
Ran with 2 warnings.

See /buildbot/runtests/build/workdir/Photonics_Dev/gen_libs/bpg_test_suite/output.log for details.

-------------------------------BPG call completed-------------------------------
Ran with 2 warnings.

See /buildbot/runtests/build/workdir/Photonics_Dev/gen_libs/bpg_test_suite/output.log for details.

-------------------------------BPG call completed-------------------------------
Ran with 0 warnings.

See /buildbot/runtests/build/workdir/Photonics_Dev/gen_libs/bpg_test_suite/custom_log_name_test.txt for details.

-------------------------------BPG call completed-------------------------------
Ran with 2 warnings.

See /buildbot/runtests/build/workdir/Photonics_Dev/gen_libs/bpg_test_suite/output.log for details.

-------------------------------BPG call completed-------------------------------
Ran with 2 warnings.

See /buildbot/runtests/build/workdir/Photonics_Dev/gen_libs/bpg_test_suite/output.log for details.

-------------------------------BPG call completed-------------------------------
Ran with 2 warnings.

See /buildbot/runtests/build/workdir/Photonics_Dev/gen_libs/bpg_test_suite/output.log for details.

-------------------------------BPG call completed-------------------------------
Ran with 2 warnings.

See /buildbot/runtests/build/workdir/Photonics_Dev/gen_libs/bpg_test_suite/output.log for details.

-------------------------------BPG call completed-------------------------------
Ran with 2 warnings.

See /buildbot/runtests/build/workdir/Photonics_Dev/gen_libs/bpg_test_suite/output.log for details.

-------------------------------BPG call completed-------------------------------
Ran with 2 warnings.

See /buildbot/runtests/build/workdir/Photonics_Dev/gen_libs/bpg_test_suite/output.log for details.

-------------------------------BPG call completed-------------------------------
Ran with 2 warnings.

See /buildbot/runtests/build/workdir/Photonics_Dev/gen_libs/bpg_test_suite/output.log for details.

-------------------------------BPG call completed-------------------------------
Ran with 2 warnings.

See /buildbot/runtests/build/workdir/Photonics_Dev/gen_libs/bpg_test_suite/output.log for details.

-------------------------------BPG call completed-------------------------------
Ran with 2 warnings.

See /buildbot/runtests/build/workdir/Photonics_Dev/gen_libs/bpg_test_suite/output.log for details.

-------------------------------BPG call completed-------------------------------
Ran with 2 warnings.

See /buildbot/runtests/build/workdir/Photonics_Dev/gen_libs/bpg_test_suite/output.log for details.

-------------------------------BPG call completed-------------------------------
Ran with 2 warnings.

See /buildbot/runtests/build/workdir/Photonics_Dev/gen_libs/bpg_test_suite/output.log for details.