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

PMM-12641 Optimize PMM build scripts #3239

Open
wants to merge 42 commits into
base: v3
Choose a base branch
from

Conversation

ademidoff
Copy link
Member

@ademidoff ademidoff commented Oct 15, 2024

PMM-12641

Link to the Feature Build: SUBMODULES-3739

To the reviewer
This PR is another iteration on this ticket, so it's probably not the final one. However, the number of changes is significant, so I prefer to submit it for review now.

@ademidoff ademidoff changed the base branch from main to v3 October 15, 2024 00:17
Copy link

codecov bot commented Oct 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 43.42%. Comparing base (50d1e9a) to head (8fd8ce5).

Additional details and impacted files
@@            Coverage Diff             @@
##               v3    #3239      +/-   ##
==========================================
- Coverage   43.45%   43.42%   -0.04%     
==========================================
  Files         360      360              
  Lines       43977    43977              
==========================================
- Hits        19112    19098      -14     
- Misses      23204    23218      +14     
  Partials     1661     1661              
Flag Coverage Δ
admin 11.49% <ø> (ø)
agent 51.80% <ø> (-0.13%) ⬇️
managed 45.17% <ø> (ø)
vmproxy 68.57% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ademidoff ademidoff force-pushed the PMM-12641-optimize-pmm-build-scripts branch from 7a0ce14 to 19f1801 Compare October 19, 2024 22:07
@ademidoff ademidoff marked this pull request as ready for review October 21, 2024 09:30
@ademidoff ademidoff requested review from a team as code owners October 21, 2024 09:30
@ademidoff ademidoff requested review from BupycHuk and removed request for a team October 21, 2024 09:30
@ademidoff ademidoff requested review from idoqo and JiriCtvrtka and removed request for a team October 21, 2024 09:30
Copy link
Contributor

@catalinaadam catalinaadam left a comment

Choose a reason for hiding this comment

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

suggested more descriptive names

build/ansible/roles/dashboards/tasks/main.yml Outdated Show resolved Hide resolved
build/ansible/pmm-docker/post-build.yml Outdated Show resolved Hide resolved
build/ansible/roles/dashboards/tasks/main.yml Outdated Show resolved Hide resolved
build/ansible/roles/dashboards/tasks/main.yml Outdated Show resolved Hide resolved
build/ansible/roles/dashboards/tasks/main.yml Outdated Show resolved Hide resolved
build/ansible/roles/initialization/tasks/main.yml Outdated Show resolved Hide resolved
build/ansible/roles/nginx/tasks/main.yml Outdated Show resolved Hide resolved
build/ansible/roles/nginx/tasks/main.yml Outdated Show resolved Hide resolved
build/packer/ansible/agent-aws.yml Outdated Show resolved Hide resolved
build/packer/ansible/agent-aws.yml Outdated Show resolved Hide resolved
ademidoff and others added 3 commits October 21, 2024 13:59
build/docker/client/Dockerfile Outdated Show resolved Hide resolved
@@ -4,7 +4,6 @@ ARG VERSION
ARG BUILD_DATE

ENV LANG=en_US.utf8
ENV LC_ALL=en_US.utf8
Copy link
Member

Choose a reason for hiding this comment

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

Are you sure that we don't need it anymore? I remember there were issue with PostgreSQL. I hope it won't affect upgrade from PMM 2 to PMM 3.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, pretty sure. From the logs, the OS emits a good number of warnings not being able to apply just LC_ALL. However, once the language package is installed, we see that the default OS language settings are set, as expected, to en_US.utf8. Therefore, this removal fixes the the warnings related to things that don't work anyway.

To give us a bit more comfort going forward with this removal, this is what the output of locale currently looks like (i.e. before this removal):

LANG=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE="en_US.utf8"
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=

As you can see, LC_ALL is empty for the reason mentioned above. Thus, it's no harm.

ademidoff and others added 2 commits October 22, 2024 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants