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

windows: test fails on github actions #52

Open
laszewsk opened this issue Dec 16, 2023 · 5 comments
Open

windows: test fails on github actions #52

laszewsk opened this issue Dec 16, 2023 · 5 comments
Assignees
Labels
Milestone

Comments

@laszewsk
Copy link
Member

self = <tests.test_verbose.Test_Verbose object at 0x0000021F7849C410>
see :https://github.com/cloudmesh/cloudmesh-common/actions/runs/7233342461/job/19708496081#step:7:1012

def test_6_print_VERBOSE(self):
    HEADING()

    help = "hallo"

    for v in [0,1,2,3,4,5,6,7,8,9,10]:
        print("TEST FOR VERBOSE", v)
        with io.StringIO() as buf, redirect_stdout(buf):
            variables["verbose"] = v
            VERBOSE(help, verbose=6)
            output = buf.getvalue()
        print (output)

        if v < 6:
          assert "hallo" not in output

E AssertionError: assert 'hallo' not in '\x1b[34m\n#...-\n\x1b[0m\n'
E 'hallo' is contained here:
E ------
E # 'hallo'
E # ----------------------------------------------------------------------
E

@laszewsk
Copy link
Member Author

I have outcommented the test for now so we can move on

@laszewsk
Copy link
Member Author

this seems only to happen on windows. maybe the stringio on windows does not behave right

@laszewsk
Copy link
Member Author

@laszewsk
Copy link
Member Author

i had to disable all windows checks in the yaml file as they failed and i do not have a windows machine to fix them

@laszewsk laszewsk added this to the high milestone Dec 24, 2023
@laszewsk
Copy link
Member Author

I suggest splitting up the actions into two different YAML files.

test-via-conda-linux.yaml
test-via-conda-windows.yaml

I out-commented in the current test the Windows task.
I have not done many Github actions and I hope that by separating them it is easier to switch one off and on in case something does not work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants