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

Format code, change tests/system to avoid breakage #4459

Merged
merged 1 commit into from
Nov 25, 2020
Merged

Conversation

axw
Copy link
Member

@axw axw commented Nov 25, 2020

Motivation/summary

autopep8 will move imports to the top of the file
if they come after statements. Move the sys.path
magic to another file so we can preserve import
ordering.

Checklist

I have considered changes for:
- [ ] documentation
- [ ] logging (add log lines, choose appropriate log selector, etc.)
- [ ] metrics and monitoring (create issue for Kibana team to add metrics to visualizations, e.g. Kibana#44001)

How to test these changes

  • Run make fmt, should result in no changes.
  • Run make system-tests, should run successfully

Related issues

Closes #4454

autopep8 will move imports to the top of the file
if they come after statements. Move the sys.path
magic to another file so we can preserve import
ordering.
@axw axw requested a review from a team November 25, 2020 06:48
@codecov-io
Copy link

Codecov Report

Merging #4459 (dfb4b47) into master (8feaead) will increase coverage by 0.02%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #4459      +/-   ##
==========================================
+ Coverage   76.11%   76.13%   +0.02%     
==========================================
  Files         158      158              
  Lines        9782     9782              
==========================================
+ Hits         7446     7448       +2     
+ Misses       2336     2334       -2     
Impacted Files Coverage Δ
publish/acker.go 78.94% <0.00%> (-10.53%) ⬇️
processor/otel/consumer.go 94.02% <0.00%> (+0.44%) ⬆️
beater/jaeger/common.go 82.14% <0.00%> (+7.14%) ⬆️

@apmmachine
Copy link
Collaborator

💚 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 #4459 opened]

  • Start Time: 2020-11-25T06:31:16.413+0000

  • Duration: 45 min 44 sec

Test stats 🧪

Test Results
Failed 0
Passed 4754
Skipped 143
Total 4897

Steps errors 3

Expand to view the steps failures

Compress

  • Took 0 min 0 sec . View more details on here
  • Description: tar --exclude=coverage-files.tgz -czf coverage-files.tgz coverage

Compress

  • Took 0 min 0 sec . View more details on here
  • Description: tar --exclude=system-tests-linux-files.tgz -czf system-tests-linux-files.tgz system-tests

Test Sync

  • Took 3 min 48 sec . View more details on here
  • Description: ./.ci/scripts/sync.sh

Copy link
Contributor

@jalvz jalvz left a comment

Choose a reason for hiding this comment

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

thanks!

@axw axw merged commit 4727a8b into elastic:master Nov 25, 2020
@axw axw deleted the fix-fmt branch November 25, 2020 07:58
simitt pushed a commit to simitt/apm-server that referenced this pull request Dec 10, 2020
autopep8 will move imports to the top of the file
if they come after statements. Move the sys.path
magic to another file so we can preserve import
ordering.
axw added a commit that referenced this pull request Dec 14, 2020
autopep8 will move imports to the top of the file
if they come after statements. Move the sys.path
magic to another file so we can preserve import
ordering.

Co-authored-by: Andrew Wilkins <axw@elastic.co>
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.

make fmt breaks tests/system code
6 participants