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

Merged
merged 48 commits into from
Nov 8, 2024

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.45%. Comparing base (883604e) to head (913a0fa).
Report is 1 commits behind head on v3.

Additional details and impacted files
@@            Coverage Diff             @@
##               v3    #3239      +/-   ##
==========================================
- Coverage   43.49%   43.45%   -0.05%     
==========================================
  Files         362      362              
  Lines       44123    44123              
==========================================
- Hits        19193    19175      -18     
- Misses      23247    23264      +17     
- Partials     1683     1684       +1     
Flag Coverage Δ
admin 11.45% <ø> (-0.05%) ⬇️
agent 51.80% <ø> (-0.13%) ⬇️
managed 45.22% <ø> (-0.01%) ⬇️
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 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
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 ademidoff force-pushed the PMM-12641-optimize-pmm-build-scripts branch from 0c16266 to 23fecdc Compare November 8, 2024 08:07
@ademidoff ademidoff merged commit c3a9e56 into v3 Nov 8, 2024
32 checks passed
@ademidoff ademidoff deleted the PMM-12641-optimize-pmm-build-scripts branch November 8, 2024 09:34
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.

4 participants