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

MINIFICPP-2522 Various CI improvements #1936

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

martinzink
Copy link
Member

Thank you for submitting a contribution to Apache NiFi - MiNiFi C++.

In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:

For all changes:

  • Is there a JIRA ticket associated with this PR? Is it referenced
    in the commit message?

  • Does your PR title start with MINIFICPP-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.

  • Has your PR been rebased against the latest commit within the target branch (typically main)?

  • Is your initial contribution a single, squashed commit?

For code changes:

  • If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
  • If applicable, have you updated the LICENSE file?
  • If applicable, have you updated the NOTICE file?

For documentation related changes:

  • Have you ensured that format looks appropriate for the output in which it is rendered?

Note:

Please ensure that once the PR is submitted, you check GitHub Actions CI results for build issues and submit an update to your PR as soon as possible.

@@ -1,30 +0,0 @@
# Licensed to the Apache Software Foundation (ASF) under one or 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.

This use case is already covered by

Examples: Different python installation modes

@lordgamez
Copy link
Contributor

I think we can also remove the ubuntu gcc build job as we have the rocky build job that covers the gcc-x86 build for all default extensions.

@@ -69,7 +69,7 @@ class ReadModbusFunction {
const uint8_t unit_id_;
};

class ReadCoilStatus final : public ReadModbusFunction {
class ReadCoilStatus : public ReadModbusFunction {
Copy link
Member Author

Choose a reason for hiding this comment

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

Due to a bug in the latest apple clang final classes break dynamic_cast
https://stackoverflow.com/questions/79192304/macos-xcode-16-breaks-dynamic-cast-for-final-types-defined-in-shared-library
Should we -fno-assume-unique-vtables or just remove the finals here (we rely on dynamic_cast for tests only) but this might also come up somewhere that is not covered by tests.

Copy link
Member

Choose a reason for hiding this comment

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

I think removing final in the affected cases is fine, and better if there are only few cases. -f flags change the compiler in incompatible ways, it's best to avoid them IMO.

@@ -29,6 +29,7 @@ Feature: Executing Couchbase operations from MiNiFi-C++
And a CouchbaseClusterService is setup up with the name "CouchbaseClusterService"

And the "success" relationship of the GetFile processor is connected to the PutCouchbaseKey
And the "failure" relationship of the PutCouchbaseKey processor is connected to the PutCouchbaseKey
Copy link
Member Author

Choose a reason for hiding this comment

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

If minifi's docker starts faster than couchbase the PutCouchbaseKey can fail

env:
DOCKER_CMAKE_FLAGS: -DDOCKER_VERIFY_THREAD=3 -DUSE_SHARED_LIBS= -DSTRICT_GSL_CHECKS=AUDIT -DCI_BUILD=ON -DENABLE_AWS=ON -DENABLE_KAFKA=ON -DENABLE_MQTT=ON -DENABLE_AZURE=ON -DENABLE_SQL=ON \
-DENABLE_SPLUNK=ON -DENABLE_GCP=ON -DENABLE_OPC=ON -DENABLE_PYTHON_SCRIPTING=ON -DENABLE_LUA_SCRIPTING=ON -DENABLE_KUBERNETES=ON -DENABLE_TEST_PROCESSORS=ON -DENABLE_PROMETHEUS=ON \
-DENABLE_ELASTICSEARCH=OFF -DENABLE_GRAFANA_LOKI=ON -DENABLE_COUCHBASE=ON -DDOCKER_BUILD_ONLY=ON
CCACHE_DIR: ${{ GITHUB.WORKSPACE }}/.ccache
Copy link
Member Author

Choose a reason for hiding this comment

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

This job is not frequent enough to warrant caching

@@ -359,7 +359,7 @@ TEST_CASE("ConsumeWindowsEventLog prints events in plain text correctly", "[onTr
CHECK(event.find(R"(Date: )") != std::string::npos);
CHECK(event.find(R"(Record ID: )") != std::string::npos);
CHECK(event.find(R"(Event ID: 14985)") != std::string::npos);
CHECK(event.find(R"(Task Category: N/A)") != std::string::npos);
CHECK((event.find(R"(Task Category: N/A)") != std::string::npos || event.find(R"(Task Category: None)") != std::string::npos));
Copy link
Member Author

Choose a reason for hiding this comment

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

They changed the wording between win10 and win11

@szaszm
Copy link
Member

szaszm commented Feb 26, 2025

why remove ubuntu 24.04 GCC x86_64?

@martinzink
Copy link
Member Author

martinzink commented Mar 3, 2025

why remove ubuntu 24.04 GCC x86_64?

Seemed redundant, and I cant think of a single time it caught something that the others didnt 😅
#1936 (comment)

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