Skip to content

Move to CentOS 7; begin adding profiling deps#1660

Merged
morrisonlevi merged 8 commits into
masterfrom
levi/profiling-ci
Jul 20, 2022
Merged

Move to CentOS 7; begin adding profiling deps#1660
morrisonlevi merged 8 commits into
masterfrom
levi/profiling-ci

Conversation

@morrisonlevi

@morrisonlevi morrisonlevi commented Jul 18, 2022

Copy link
Copy Markdown
Collaborator

Description

This is a continuation of #1648 which was unintentionally closed earlier today. Squashed and rebased.

This drops CentOS 6 from CI but doesn't quite nuke everything related to it in case we need to revert. CentOS 7 is now the oldest OS we support. This does update the CentOS 6 images to use the latest released versions of PHP. I built them locally but haven't pushed them up yet.

This also adds profiling dependencies like protoc-c, libclang, clang, and more. The image size is a bit larger but hopefully not too much slower to be unusable in CI. It needs a lot of memory and time to build LLVM/Clang 14 (which matches the Rust version we use, 1.60), and needs at least clang 12 to parse PHP 8.1 headers which is why we can't just use the llvm toolset in the OS repos. This PR isn't using these profiling dependencies in CI just quite yet, though I tried building locally and it worked. So future PRs may adjust it but hopefully not too much.

Readiness checklist

  • Changelog has been added to the release document.
  • Tests added for this feature/bug. Eh, kinda.

Reviewer checklist

  • Appropriate labels assigned.
  • Milestone is set.

Comment thread .circleci/config.yml Outdated
- "Prepare Code":
filters:
branches:
ignore: levi/profiling-rs

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think we can now remove this (though it was a good idea to gain some CI processing time)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Huh, that part was removed before I ever merged that PR. Guess the branch/merge/squash order meant this one kept it or something.

dockerfile: Dockerfile_profiling
args:
baseImage: datadog/dd-trace-ci:php-8.0_alpine-3.16
# baseImage: localhost:5000/datadog/dd-trace-ci:alpine-3.16

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

todo for myself: clean this up (this was to point at local registry as things were not working with remote)

@@ -0,0 +1,116 @@
FROM centos:7

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Yay, old, but not so old (and still maintained version) 👍

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

Merging #1660 (0fe22cc) into master (1ee5916) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1660   +/-   ##
=======================================
  Coverage   79.04%   79.04%           
=======================================
  Files         125      125           
  Lines       12349    12349           
=======================================
  Hits         9761     9761           
  Misses       2588     2588           

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@morrisonlevi morrisonlevi changed the title Profiling CI Move to CentOS 7; begin adding profiling deps Jul 20, 2022
@morrisonlevi
morrisonlevi marked this pull request as ready for review July 20, 2022 04:35
@morrisonlevi
morrisonlevi requested a review from a team as a code owner July 20, 2022 04:35
@morrisonlevi morrisonlevi added this to the 0.77.0 milestone Jul 20, 2022
@@ -5,73 +5,75 @@ services:
image: 'datadog/dd-trace-ci:centos-6'

@bwoebi bwoebi Jul 20, 2022

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Is this github or is this file still in a centos/6 dir instead of centos/7 ? Shouldn't we just clean this up fully here, only centos 7?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I like the confidence :-)
Levi mentioned he wanted to keep both alive for now (and he usually really likes to nuke things), should we consider removing everything now ?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Just chiming in to confirm that I think nuking it just now is a bit premature. The more we nuke the harder it will be to restore in case we need to ^_^
Although I suppose it's easily copyable from the php-5 branch anyway?

@bwoebi bwoebi left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Generally looks good to me.

@morrisonlevi
morrisonlevi merged commit 4ebb4d3 into master Jul 20, 2022
@morrisonlevi
morrisonlevi deleted the levi/profiling-ci branch July 20, 2022 19:28
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.

4 participants