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] bump gvm 0.2.4 and fix windows tooling issues for Windows 7 #22661

Merged
merged 28 commits into from
Dec 2, 2020

Conversation

v1v
Copy link
Member

@v1v v1v commented Nov 18, 2020

What does this PR do?

  • Fail fast if gvm is not installed correctly and add some traces
  • Install gvm always.
  • Configure temporary USERPROFILE to the workspace location.
  • Use a https://s3.us-east-1.amazonaws.com/deploy.andrewkroh.com/gvm/gvm-windows-amd64.exe temporarily.
  • Update the version for gvm with the latest @andrewkroh will provide it :)

Why is it important?

Detect issues earlier

Known issues

  • gvm does not install go correctly
level=info msg="ERROR: Cannot find C:\\Users\\jenkins\\.gvm\\versions\\go1.14.7.windows.amd64\\bin\\go.exe"
C:\Users\jenkins\workspace\Beats_beats_PR-22661\src\github.com\elastic\beats>DIR /A /S C:\Users\jenkins\.gvm\versions\go1.14.7.windows.amd64 
...
  Directory of C:\Users\jenkins\.gvm\versions\go1.14.7.windows.amd64\bin
 
 11/20/2020  12:21 PM    <DIR>          .
 11/20/2020  12:21 PM    <DIR>          ..
 11/20/2020  12:21 PM    <DIR>          tool
  • installed gvm got corrupted for windows-7-32 bits
  • gvm with chocolate exits without installing mage.
[2020-11-23T16:52:15.639Z] C:\Users\jenkins\workspace\Beats_beats_PR-22661\src\github.com\elastic\beats>mage dumpVariables 
[2020-11-23T16:52:15.639Z] 'mage' is not recognized as an internal or external command,
[2020-11-23T16:52:15.639Z] operable program or batch file.
  • after installing it with choco then go environment is not ready
[2020-11-23T19:29:20.115Z] go: downloading github.com/magefile/mage v1.10.0
[2020-11-23T19:29:20.372Z] go tool: no such tool "compile"
[2020-11-23T19:29:20.372Z] go tool: no such tool "compile"

Screenshots

image

@v1v v1v requested a review from a team as a code owner November 18, 2020 17:36
@botelastic botelastic bot added needs_team Indicates that the issue/PR needs a Team:* label Team:Automation Label for the Observability productivity team and removed needs_team Indicates that the issue/PR needs a Team:* label labels Nov 18, 2020
@elasticmachine
Copy link
Collaborator

elasticmachine commented Nov 18, 2020

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: Pull request #22661 updated

  • Start Time: 2020-12-02T09:34:21.051+0000

  • Duration: 59 min 19 sec

Test stats 🧪

Test Results
Failed 0
Passed 35096
Skipped 3545
Total 38641

💚 Flaky test report

Tests succeeded.

Expand to view the summary

Test stats 🧪

Test Results
Failed 0
Passed 35096
Skipped 3545
Total 38641

@v1v v1v self-assigned this Nov 18, 2020
)
FOR /f "tokens=*" %%i IN ('"gvm.exe" use %GO_VERSION% --format=batch') DO %%i

FOR /f "tokens=*" %%i IN ('"%GVM_BIN%" use %GO_VERSION% --format=batch') DO %%i
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@v1v v1v added windows-7 Enable builds in the CI for windows-7 windows-7-32 Enable builds in the CI for windows-7 32 bits labels Nov 18, 2020
@v1v
Copy link
Member Author

v1v commented Nov 18, 2020

jenkins run the tests please

@v1v
Copy link
Member Author

v1v commented Nov 20, 2020

I managed to find the reason of those failures, not sure how it happens:

[2020-11-20T12:22:03.678Z]  Directory of C:\Users\jenkins\.gvm\versions\go1.14.7.windows.amd64\bin
[2020-11-20T12:22:03.678Z] 
[2020-11-20T12:22:03.678Z] 11/20/2020  12:21 PM    <DIR>          .
[2020-11-20T12:22:03.678Z] 11/20/2020  12:21 PM    <DIR>          ..
[2020-11-20T12:22:03.678Z] 11/20/2020  12:21 PM    <DIR>          tool
[2020-11-20T12:22:03.678Z]                0 File(s)              0 bytes

So the bin folder of the just installed go version is empty :S

@v1v v1v force-pushed the feature/windows-7-issues branch from 2f4c80f to 19bee55 Compare November 23, 2020 10:38
@v1v v1v force-pushed the feature/windows-7-issues branch from a114a85 to 75bf856 Compare November 24, 2020 15:12
@v1v
Copy link
Member Author

v1v commented Nov 24, 2020

jenkins run the tests please

3 similar comments
@v1v
Copy link
Member Author

v1v commented Nov 25, 2020

jenkins run the tests please

@v1v
Copy link
Member Author

v1v commented Nov 25, 2020

jenkins run the tests please

@v1v
Copy link
Member Author

v1v commented Nov 25, 2020

jenkins run the tests please

@v1v v1v marked this pull request as ready for review November 25, 2020 13:56
@v1v v1v added windows-10 Enable builds in the CI for windows-10 windows-2012 Enable builds in the CI for windows-2012 windows-2016 Enable builds in the CI for windows-2016 labels Nov 25, 2020
@v1v v1v requested review from andrewkroh and a team November 25, 2020 17:34
v1v added 2 commits December 2, 2020 09:32
…-issues

* upstream/master: (41 commits)
  Fix version parser regex for packaging (elastic#22581)
  Fix local_dynamic documentation and add providers inline doc. (elastic#22657)
  fix: use proper param name for e2e tests (elastic#22836)
  [Heartbeat] Fix exit on disabled monitor (elastic#22829)
  Update Golang to 1.14.12 (elastic#22790)
  docs: fix setup.template.overwrite typos (elastic#22804)
  Add docs section for ECS EC2 monitoring (elastic#22784)
  Fixing logic to keep list of unique cluster UUIDs (elastic#22808)
  Skip somewhat flaky UDP system test on Windows (elastic#22810)
  Fix polling node when it is not ready and monitor by hostname (elastic#22666)
  Skip Filebeat test_shutdown on windows 7 (elastic#22797)
  Make monitoring Namespace thread-safe (elastic#22640)
  Drop pkt_dstaddr and pkt_srcaddr when equals to "-" (elastic#22721)
  Add support for reading from UNIX datagram sockets (elastic#22699)
  Fix export dashboard command from Elastic Cloud (elastic#22746)
  Skip flaky winlogbeat test on Windows-7 (elastic#22754)
  Missing `>` (elastic#22763) (elastic#22766)
  Fix k8s watcher issue when node access to list nodes and ns (elastic#22714)
  [Metricbeat/Kibana/stats] Enforce `exclude_usage=true` (elastic#22732)
  Avoid sending non-numeric floats in cloud foundry integrations (elastic#22634)
  ...
@v1v v1v changed the title [CI] prepare windows tooling [CI] bump gvm 0.2.4 and fix windows tooling issues for Windows 7 Dec 2, 2020
@v1v v1v merged commit 530b9f6 into elastic:master Dec 2, 2020
@v1v v1v deleted the feature/windows-7-issues branch December 2, 2020 10:42
v1v added a commit to v1v/beats that referenced this pull request Dec 2, 2020
v1v added a commit to v1v/beats that referenced this pull request Dec 2, 2020
v1v added a commit that referenced this pull request Dec 2, 2020
v1v added a commit that referenced this pull request Dec 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Automation Label for the Observability productivity team windows-7-32 Enable builds in the CI for windows-7 32 bits windows-7 Enable builds in the CI for windows-7 windows-10 Enable builds in the CI for windows-10 windows-2012 Enable builds in the CI for windows-2012 windows-2016 Enable builds in the CI for windows-2016
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants