forked from NVIDIA/spark-rapids
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add logging to Integration test runs in local and local-cluster mode (N…
…VIDIA#10644) * Add loggings to Integration test runs - Set explain all - Working logs - Added logger.FileHandler only for xdist workers * undo setting explain * added documentation and did some refactoring * Signing off Signed-off-by: Raza Jafri <[email protected]> * addressed review comments * added documentation to clarify ambiguity in multiple log4j props file * renamed xdist_it_log4j.properties to be more generic * Added log4j to the flow with TEST_PARALLEL < 2 * Added comments * Updated README.md * added more comments and updated copyrights * Made changes so the worker logs only get generated in local mode * Updated docs * added logs to local-cluster mode as well * Update integration_tests/run_pyspark_from_build.sh Co-authored-by: Gera Shegalov <[email protected]> * Update integration_tests/run_pyspark_from_build.sh Co-authored-by: Gera Shegalov <[email protected]> --------- Signed-off-by: Raza Jafri <[email protected]> Co-authored-by: Gera Shegalov <[email protected]>
- Loading branch information
1 parent
8403941
commit 50822d5
Showing
6 changed files
with
129 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
integration_tests/src/test/resources/pytest_log4j.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# | ||
# Copyright (c) 2024, NVIDIA CORPORATION. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
## This properties file is used to configure logs generated when integration tests using xdist | ||
|
||
log4j.appender.myConsoleAppender=org.apache.log4j.ConsoleAppender | ||
log4j.appender.myConsoleAppender.layout=org.apache.log4j.PatternLayout | ||
log4j.appender.myConsoleAppender.layout.ConversionPattern=%d [%t] %-5p %c - %m%n | ||
|
||
log4j.appender.RollingAppender=org.apache.log4j.DailyRollingFileAppender | ||
log4j.appender.RollingAppender.File=${logfile} | ||
log4j.appender.RollingAppender.DatePattern='.'yyyy-MM-dd | ||
log4j.appender.RollingAppender.layout=org.apache.log4j.PatternLayout | ||
log4j.appender.RollingAppender.layout.ConversionPattern=[%p] %d %c %M - %m%n | ||
|
||
log4j.rootLogger=INFO, RollingAppender, myConsoleAppender | ||
|
||
log4j.logger.spark.storage=INFO, RollingAppender | ||
log4j.additivity.spark.storage=false | ||
log4j.logger.spark.scheduler=INFO, RollingAppender | ||
log4j.additivity.spark.scheduler=false | ||
log4j.logger.spark.CacheTracker=INFO, RollingAppender | ||
log4j.additivity.spark.CacheTracker=false | ||
log4j.logger.spark.CacheTrackerActor=INFO, RollingAppender | ||
log4j.additivity.spark.CacheTrackerActor=false | ||
log4j.logger.spark.MapOutputTrackerActor=INFO, RollingAppender | ||
log4j.additivity.spark.MapOutputTrackerActor=false | ||
log4j.logger.spark.MapOutputTracker=INFO, RollingAppender | ||
log4j.additivty.spark.MapOutputTracker=false |