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

[CI] .ci/scripts/pre_archive_test.py fails only for x-pack/functionbeat in some Windows versions #24406

Closed
v1v opened this issue Mar 6, 2021 · 1 comment · Fixed by #24567
Labels
automation Team:Automation Label for the Observability productivity team

Comments

@v1v
Copy link
Member

v1v commented Mar 6, 2021

Module: x-pack/functionbeat

Windows:

  • windows-2012-r2
  • windows-2016
  • windows-7-32-bit
  • wiindows-2019

Stacktrace:

python .ci/scripts/pre_archive_test.py
— Prepare test output
2s
[2021-03-05T12:19:53.263Z] 
[2021-03-05T12:19:53.263Z] C:\Users\jenkins\workspace\PR-24374-2-f69dd93b-7f43-43af-b2b7-60fd64536706\src\github.com\elastic\beats>python .ci/scripts/pre_archive_test.py 
[2021-03-05T12:19:55.174Z] Copy .\x-pack\functionbeat\build into build\x-pack\functionbeat\build
[2021-03-05T12:19:55.174Z] Copy .\x-pack\functionbeat\null\build into build\x-pack\functionbeat\null\build
[2021-03-05T12:19:55.174Z] Traceback (most recent call last):
[2021-03-05T12:19:55.174Z]   File "C:\Python38\lib\distutils\file_util.py", line 41, in _copy_file_contents
[2021-03-05T12:19:55.174Z]     fdst = open(dst, 'wb')
[2021-03-05T12:19:55.174Z] FileNotFoundError: [Errno 2] No such file or directory: 'build\\x-pack\\functionbeat\\null\\build\\ve\\windows\\Lib\\site-packages\\pip\\_vendor\\urllib3\\packages\\ssl_match_hostname\\__pycache__\\_implementation.cpython-38.pyc'
[2021-03-05T12:19:55.174Z] 
[2021-03-05T12:19:55.174Z] During handling of the above exception, another exception occurred:
[2021-03-05T12:19:55.174Z] 
[2021-03-05T12:19:55.174Z] Traceback (most recent call last):
[2021-03-05T12:19:55.174Z]   File ".ci/scripts/pre_archive_test.py", line 20, in <module>
[2021-03-05T12:19:55.174Z]     distutils.dir_util.copy_tree(root, dest, preserve_symlinks=1)
[2021-03-05T12:19:55.174Z]   File "C:\Python38\lib\distutils\dir_util.py", line 157, in copy_tree
[2021-03-05T12:19:55.174Z]     copy_tree(src_name, dst_name, preserve_mode,
[2021-03-05T12:19:55.174Z]   File "C:\Python38\lib\distutils\dir_util.py", line 157, in copy_tree
[2021-03-05T12:19:55.174Z]     copy_tree(src_name, dst_name, preserve_mode,
[2021-03-05T12:19:55.174Z]   File "C:\Python38\lib\distutils\dir_util.py", line 157, in copy_tree
[2021-03-05T12:19:55.174Z]     copy_tree(src_name, dst_name, preserve_mode,
[2021-03-05T12:19:55.174Z]   [Previous line repeated 7 more times]
[2021-03-05T12:19:55.174Z]   File "C:\Python38\lib\distutils\dir_util.py", line 161, in copy_tree
[2021-03-05T12:19:55.174Z]     copy_file(src_name, dst_name, preserve_mode,
[2021-03-05T12:19:55.174Z]   File "C:\Python38\lib\distutils\file_util.py", line 151, in copy_file
[2021-03-05T12:19:55.174Z]     _copy_file_contents(src, dst)
[2021-03-05T12:19:55.174Z]   File "C:\Python38\lib\distutils\file_util.py", line 43, in _copy_file_contents
[2021-03-05T12:19:55.174Z]     raise DistutilsFileError(
[2021-03-05T12:19:55.174Z] distutils.errors.DistutilsFileError: could not create 'build\x-pack\functionbeat\null\build\ve\windows\Lib\site-packages\pip\_vendor\urllib3\packages\ssl_match_hostname\__pycache__\_implementation.cpython-38.pyc': No such file or directory
script returned exit code 1

image

While the expected behaviour should be something like:

image

@v1v v1v added automation Team:Automation Label for the Observability productivity team labels Mar 6, 2021
@v1v
Copy link
Member Author

v1v commented Mar 6, 2021

#24316 was added to ensure workspaces were unique, and somehow might be related, no idea how but it seems the very first time it happened was with that particular PR and also when merged

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automation Team:Automation Label for the Observability productivity team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant