githooks: set CHECK_FORMAT_ONLY_DIFF when running check_format.shThis flag causes check_format.sh to only run checks against modifiedfiles, so it's ideal for a pre-commit hook. It significantly r
githooks: set CHECK_FORMAT_ONLY_DIFF when running check_format.shThis flag causes check_format.sh to only run checks against modifiedfiles, so it's ideal for a pre-commit hook. It significantly reducesthe execution time.Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com>Change-Id: I216bfebdc2fd93a06f9378f39de28c12d0db7acbReviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/20491Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>Reviewed-by: Jim Harris <jim.harris@samsung.com>
show more ...
Add SPDX header to various filesThey were missed by the initial set of patches which introduced thisheader as a mandatory one across different types of files.Signed-off-by: Michal Berger <michal
Add SPDX header to various filesThey were missed by the initial set of patches which introduced thisheader as a mandatory one across different types of files.Signed-off-by: Michal Berger <michal.berger@intel.com>Change-Id: I3f9b37d41298c843e1648e72fe8593768ccd37e0Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15423Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>Community-CI: Mellanox Build BotReviewed-by: Jim Harris <james.r.harris@intel.com>Reviewed-by: Ben Walker <benjamin.walker@intel.com>
githooks/prepush: remove clangSigned-off-by: Monica Kenguva <monica.kenguva@intel.com>Change-Id: Ic63b3d89219e96f588f9b43c89de27edd25a22bfReviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/
githooks/prepush: remove clangSigned-off-by: Monica Kenguva <monica.kenguva@intel.com>Change-Id: Ic63b3d89219e96f588f9b43c89de27edd25a22bfReviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2748Community-CI: Mellanox Build BotTested-by: SPDK CI Jenkins <sys_sgci@intel.com>Reviewed-by: Jim Harris <james.r.harris@intel.com>Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
githooks: limit the number of threads for pre-push hookThe script probably meant to execute make with $(nproc),but executed it with ${nproc} instead. "nproc" was notdefined, evaluated to nothing,
githooks: limit the number of threads for pre-push hookThe script probably meant to execute make with $(nproc),but executed it with ${nproc} instead. "nproc" was notdefined, evaluated to nothing, and -j without integerspawned unlimited number of processes, which was slow.While here, also use sysctl -a | grep -E -i 'hw.ncpu'to get the number of cores on BSD. That's what we alreadydo in autobuild.sh.Fixes #881Change-Id: I8b07a2c28c4834b5dfb1c1bfa66d2b696d85720fReported-by: Jan Kryl <jan.kryl@mayadata.io>Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/463179Reviewed-by: Jan Kryl <jan.kryl@mayadata.io>Reviewed-by: Paul Luse <paul.e.luse@intel.com>Reviewed-by: Jim Harris <james.r.harris@intel.com>Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>Reviewed-by: Ben Walker <benjamin.walker@intel.com>Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
test: use SKIP_DPDK_BUILD in pre-push githook This should speed things up a little by avoiding unnecessary compilation of dpdk in the githookChange-Id: I214d8acc44ca041b6afb1b15dcb8555aa8a0d8f0
test: use SKIP_DPDK_BUILD in pre-push githook This should speed things up a little by avoiding unnecessary compilation of dpdk in the githookChange-Id: I214d8acc44ca041b6afb1b15dcb8555aa8a0d8f0Signed-off-by: John Meneghini <johnm@netapp.com>Signed-off-by: Ed Rodriguez <ed.rodriguez@netapp.com>Reviewed-on: https://review.gerrithub.io/419218Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>Reviewed-by: Jim Harris <james.r.harris@intel.com>Reviewed-by: Ben Walker <benjamin.walker@intel.com>Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
tools: githooks support for Freebsd - make the pre-push hook compile on FreeBSDChange-Id: Iaed344b263d7c817ceb102ec0ff8de9d4a663c95Signed-off-by: John Meneghini <johnm@netapp.com>Signed-off-by:
tools: githooks support for Freebsd - make the pre-push hook compile on FreeBSDChange-Id: Iaed344b263d7c817ceb102ec0ff8de9d4a663c95Signed-off-by: John Meneghini <johnm@netapp.com>Signed-off-by: Ed Rodriguez <ed.rodriguez@netapp.com>Reviewed-on: https://review.gerrithub.io/416461Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>Reviewed-by: Jim Harris <james.r.harris@intel.com>Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
git: add .githooks to repository - Add git pre-commit and pre-push hooks - To enable type 'git config core.hooksPath .githooks' - For for additional example hooks see the .git/hooks directoryCh
git: add .githooks to repository - Add git pre-commit and pre-push hooks - To enable type 'git config core.hooksPath .githooks' - For for additional example hooks see the .git/hooks directoryChange-Id: I92155f4083c8547759bfbbfe4df64923548fa4d5Signed-off-by: Ed Rodriguez <ed.rodriguez@netapp.com>Signed-off-by: John Meneghini <johnm@netapp.com>Reviewed-on: https://review.gerrithub.io/409577Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>Reviewed-by: Jim Harris <james.r.harris@intel.com>Reviewed-by: Ben Walker <benjamin.walker@intel.com>