aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/bash
AgeCommit message (Collapse)AuthorFilesLines
2023-03-28feat(core): Add 2n-spr topologypmikus1-0/+1
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: I3f7efcbfc82f683e7afc986d00fa71ae7413d93d
2023-03-27fix(core): Adopt to executor changespmikus1-4/+2
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: I206118daa0383e8a7d160aaf1c3dd53fc3ab9279
2023-03-24fix(bootstrap): EB deploypmikus2-13/+14
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: I44fd0fd94ba91758cfa37b11cba44955a0b24f72
2023-03-21fix(core): Arch detectionpmikus1-3/+13
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: Ife3aed308cac696876316e4ad17f17e7993f96d0
2023-03-21feat(core): Fix arch detectionpmikus1-4/+16
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: I4dcb0034b8f914b7863ac8ddede4d644d64c2d47
2023-03-20feat(bootstrap): CDash CIpmikus8-301/+349
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: Ia9f5b1c9036b9f09c4d9bb041a41e9b49d2ead7f
2023-03-13feat(docs): Move job_specs to resourcespmikus1-1/+1
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: Iee0ded1f2fb43a09a7a1d61f593f4e92ead3dbb3
2023-02-23fix(core): SPR includepmikus1-0/+4
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: I3308f12046dfeed7db872a3a901806acf81cdb15
2023-02-16fix(bootstrap): per-patch perf: apply zn2 trex fixVratko Polak1-1/+2
+ per_patch_device does not need that call (yet). Change-Id: I4c85a038962a2cfea3fa91bb4a3c37a8348132ca Signed-off-by: Vratko Polak <vrpolak@cisco.com>
2023-02-09feat(infra): Introduce 2n-spr 3n-sprpmikus1-6/+24
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: Ied301e8fcca22af8420364f2e158dfdd49bdc58d
2023-02-02fix(job_spec): Naming conventionspmikus1-1/+7
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: Iccaa4f8945e5eb48272737338a52c9edbf1cb58b
2023-01-25fix(core): common.shpmikus1-0/+1
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: Iab5e8c21e4defb92e257459a64101a6f19609917
2023-01-17feat(model): Simplify logicpmikus1-65/+0
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: I461899d72e92e5c5db9f64261206ec0e6704e0c8
2023-01-12fix(perpatch): do not expect output_rawVratko Polak1-4/+3
Fixes: bfbdfaedb044b7643b81f47e76285baedfee9e25 Change-Id: Iaefff972d6d47ccdd34b2ccb150375d084df6d93 Signed-off-by: Vratko Polak <vrpolak@cisco.com>
2023-01-11fix(core): Remove some Focal leftoverspmikus1-7/+2
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: I1c7df34cfb78cf767081acea435dc205b3f44a15
2023-01-09fix(core): DPDK stuffpmikus1-3/+4
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: I276cbfe4f761ddb4ccc652a276be2614adc6117e
2022-12-15feat(core): DNV decommissionpmikus1-34/+0
- Static content will be removed separately Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: I0992e941e1c24552837eaf7e8d3f6564b3cb21c8
2022-12-06feat(model): Cleanup and introduce telemetrypmikus1-18/+0
- Due to divergence from original design path the RAW was never consumed. It adds too much code complexity and requires processing on both storage and compute. Removing entirely to make modeling efficient. - log (apparently SSH) section will never be consumed in the way it is coded in model. This section is also not part of model schema itself due to the point above. - Introducing telemetry section that is going to carry telemetry items required for CDash. Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: I7e0256c6c9715de8ee559eed29dce96329aac97d
2022-10-11fix: l3fwd configVratko Polak1-19/+0
Flipping logic depends whether TG and DUT ports are reordered. # If TG and DUT ports are reordered -> flip # If TG reordered and DUT not reordered -> don't flip # If DUT reordered and TG not reordered -> don't flip # If DUT and TG not reordered -> flip Change-Id: I7202a17e03e48d112ed5b98e3ef0e3816ce50f14 Signed-off-by: Vratko Polak <vrpolak@cisco.com>
2022-08-25fix(core): Ubuntu Jammy VIIPeter Mikus1-0/+5
Signed-off-by: Peter Mikus <pmikus@cisco.com> Change-Id: I2a7e35bc3671cafaf696e5200d22e531e251b1ba
2022-08-23feat(infra): Remove 2n-skx/3n-snx leftoversPeter Mikus1-17/+1
Signed-off-by: Peter Mikus <pmikus@cisco.com> Change-Id: Ic646f555855b1a13a86711ce4ce01ddfc2b44b1f
2022-08-22fix(core): 3n-snr codePeter Mikus1-1/+1
Signed-off-by: Peter Mikus <pmikus@cisco.com> Change-Id: I1ff6ce2eeaf074773f27ce0d4d414c4963a7a2de
2022-08-22fix(core): 3n-snr codePeter Mikus1-1/+5
Signed-off-by: Peter Mikus <pmikus@cisco.com> Change-Id: Id4b8f033c5a6e30ed0d64d3306858d0f06991017
2022-08-17bash: fix catch-all pattern in csit model matchingJing Peng1-2/+2
Change-Id: Ic3c78f8f447f59bcd10fd8b88f50f93f7279430b Signed-off-by: Jing Peng <jing@meter.com> Signed-off-by: Vratko Polak <vrpolak@cisco.com>
2022-08-08feat(pip): UpgradePeter Mikus1-2/+1
Due to some integration changes with upcoming Ubuntu 22.04 (and mainly python) bump, upgrading the full pip package list to latest version. Keyword 'BuiltIn.Run Keyword Unless' is deprecated - will be part of subsequent change Signed-off-by: Peter Mikus <pmikus@cisco.com> Change-Id: Ie3bdc424c7c0efb4fe4f1fa7c73137b916c17116
2022-07-27fix: start testpmd and l3fwd in 3 cyclesViliam Luc1-4/+2
Signed-off-by: Viliam Luc <vluc@cisco.com> Change-Id: I935ee5cf5bd7e760ef29fdc338f981e4e7cc333f
2022-07-14feat(core): Add 3n-snrPeter Mikus1-0/+9
Signed-off-by: Peter Mikus <pmikus@cisco.com> Change-Id: I2ff6393aa885f03ba52a2cf79d49dac1815e2a86
2022-06-30style(tox): prepare for fixer scriptsVratko Polak9-13/+23
The previous code assumes each tox script is a checker. We want to add fixer scripts (not voting but editing) soon. This is the less interesting part of the process, renaming things and updating comments. Includes some basic descriptions of how fixers differ from checkers. Change-Id: I1ca1572a328acd02b41dcf4e70d7cb3746a03b03 Signed-off-by: Vratko Polak <vrpolak@cisco.com>
2022-06-17fix: testpmd and l3fwd check stateViliam Luc3-4/+147
+ print testpmd and l3fwd pid after start Testpmd and l3fwd utility can be started but link might not be ready yet. This fix start the utility on all DUTs and do the check later. Signed-off-by: Viliam Luc <vluc@cisco.com> Change-Id: If476e22f206d9a6a0dd399879a88eafedca92bb6
2022-05-17feat(perf): T-Rex core usage 2n-zn2Peter Mikus1-2/+5
Signed-off-by: Peter Mikus <pmikus@cisco.com> Change-Id: Ife55633c620a3c762f4d939013a7f6fafb640aa6
2022-05-16Core: T-rex 2.97pmikus1-1/+1
Signed-off-by: pmikus <pmikus@cisco.com> Change-Id: Id4d84aa7268080843b099fd7ab9851234612968b
2022-04-04feat(core): update 3n-altJuraj Linkeš1-2/+10
Update ansible, topologies, bash scripts and job specs. Change-Id: I834b991f281e0b29b4af9dc37fe8028460298d83 Signed-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech>
2022-03-30feat(terraform): 1n_aws_c5nPeter Mikus1-16/+26
Signed-off-by: Peter Mikus <pmikus@cisco.com> Change-Id: I12d2d58de01693b18628cd73b5d8c36467506f32
2022-03-30refactor(terraform): 2n_aws_c5nPeter Mikus2-5/+5
Signed-off-by: Peter Mikus <pmikus@cisco.com> Change-Id: I5f68fd84a9ea034c5d8ff175807033aa0b60d5a2
2022-02-17Per-patch: Allow parsing CPS MRR resultsVratko Polak1-1/+1
The previous grep was too strict about test message. Change-Id: Ib0c120a32d205b905f257e5b3c948a309ed8abb2 Signed-off-by: Vratko Polak <vrpolak@cisco.com>
2022-01-25fix(core): Remove unused stuffPeter Mikus2-200/+0
Signed-off-by: Peter Mikus <pmikus@cisco.com> Change-Id: I0cfc9d9fbb1a82a308231a5d2c0b12cb632c469b
2022-01-24feat(core): Add ICXPeter Mikus1-4/+31
Signed-off-by: Peter Mikus <pmikus@cisco.com> Change-Id: Ic676d00bd7d3d5d8c244bfd0eb7b10bc74498505
2022-01-19fix(vpp_device): pci address existence conditionJuraj Linkeš1-3/+5
The function get_pci_addr could check a different PCI_ADDR in case the netdev device directory doesn't exit. Move the check so that it always uses the proper PCI_ADDR and add a failure case when the netdev device directory doesn't exist. Change-Id: Ibadfea3fba34509cd3ea8f906ac5962c0f01dd17 Signed-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech>
2022-01-17fix(perpatch): Correct the autogen archive nameVratko Polak1-3/+3
Change-Id: I82bc5cd69de82a2d6b6689cf3380f667ea905886 Signed-off-by: Vratko Polak <vrpolak@cisco.com>
2022-01-17fix(uti): Fixing broken code part VPeter Mikus1-2/+2
- UTI export breaks local execution - disabling useless tox rules Signed-off-by: Peter Mikus <pmikus@cisco.com> Change-Id: I2f610b08f06f437e4482f291fa7b47cbb7b92984
2022-01-12fix(uti): Fixing broken code part IVPeter Mikus1-2/+2
Part of fixing chain Signed-off-by: Peter Mikus <pmikus@cisco.com> Change-Id: Ie423ccf5a51751e605d906dd1214f5174bb364ac
2022-01-07fix(uti): Fixing broken code part IIIpmikus1-8/+7
Part of fixing chain after early merge. Signed-off-by: pmikus <pmikus@cisco.com> Change-Id: I06e19def003575993bc3d97c0dc7fbedd3e5ff7a
2021-12-22fix(uti): Fixing broken code part IIpmikus2-34/+41
Part of fixing chain after early merge. Signed-off-by: pmikus <pmikus@cisco.com> Change-Id: I983b3036a388656bbad91aba71cf14b503f875bd
2021-12-22add 2-node ipsec hwasync casesxinfeng zhao1-1/+0
Signed-off-by: xinfeng zhao <xinfengx.zhao@intel.com> Change-Id: I1590d438216e4c886aae03f83364837153623dbc
2021-12-15UTI: Export resultsVratko Polak2-2/+31
+ Model version 1.0.0. - Only some result types are exported. + MRR, NDRPDR and SOAK. - Other result types to be added later. + In contrast, all test types are detected. + Convert custom classes to JSON-serializable equivalents. + Sort dict keys before converting to JSON. + Override the order for some known keys. + Export sets as sorted arrays. + Convert to info content from serialized raw content. + Also export outputs for suite setups and teardowns. + Info files for setup/teardown exist only temporarily. + The data is merged into suite.info.json file. + This simplifies presentation of total suite duration. + Define model via JSON schema: - Just test case, suite setup/teardown/suite to be added later. - Just info, raw to be added later. + Proper descriptions. + Json is generated from yaml. + This is a convenience for maintainers. + The officially used schema is the .json one. + TODOs written into a separate .txt file. + Validate exported instance against the schema. + Include format checking. + Update CSIT requirements for validation dependencies. + This needs python-dateutil==2.8.2, only a patch bump. + Compute bandwidth also for soak tests. + This unifies with NDRPDR to simplify schema definition. - PAL may need an update for parsing soak test message. + Include SSH log items, raw output only. + Generate all outputs in a single filesystem tree. + Move raw outputs into test_output_raw.tar.xz. + Rename existing tar with suites to generated_robot_files.tar.xz. Change-Id: I69ff7b330ed1a14dc435fd0ef008e753c0d7f78c Signed-off-by: Vratko Polak <vrpolak@cisco.com>
2021-12-15Tox: Add checker for CSIT model versionVratko Polak1-0/+65
+ Implementation stub so checker can check already. + Also add documentation stub for the implemented model. + Checker checks also for bumps in documentation version. - Not comparing implementation and documentation version yet. Change-Id: I4d19c00315a1c171de325c4494c28f5210635f32 Signed-off-by: Vratko Polak <vrpolak@cisco.com>
2021-12-13doc: fixing documentation structureViliam Luc1-0/+3
When building documentation using sphinx we see ~1200 similar warnings [0] [0] - https://s3-logs.fd.io/vex-yul-rot-jenkins-1/csit-verify-tox-master-ubuntu2004-x86_64/3289/doc_verify.log.gz These warning are harmless and can be fixed later Signed-off-by: Viliam Luc <vluc@cisco.com> Change-Id: I1ac1099d38935971d47491dde905715345d3935c
2021-11-10Fix autogen.sh checkerVratko Polak1-2/+2
Previously, the FAIL message was not printed. Change-Id: Id3fc6c126edd42b55cec73294696a0426a73d634 Signed-off-by: Vratko Polak <vrpolak@cisco.com>
2021-11-08vpp_device: bind to vfio-pci before running testsJuraj Linkeš1-15/+101
In rare cases, binding the whole /dev/vfio folder will result in unusable VFs: notice dpdk EAL: Cannot open /dev/vfio/151: Device or resource busy [0], section 4.3.1. provides some clues as to what's going on and how to avoid the failure. Mounting /dev/vfio reset the file descriptors of all devices under /dev/vfio. Vfio-pci creates a device when an interface is bound to it. The rare failure then occurs when /dev/vfio is mounted while a process is using the file descriptors result in that process using invalid file descriptors (or file descriptors belonging to a different VF). Fix the issue by binding i40e and ice VFs to vfio-pci before containers are created and make sure that the VFs are not unbound later in testing. Only bind DUT VFs since the TG uses the kernel driver. [0]: https://connect.redhat.com/sites/default/files/2021-03/Cloud Native Network Function Requirements.pdf Ticket: CSIT-1794 Change-Id: I83db91b29d16669fb034b141ad247f6f796fdf64 Signed-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech>
2021-10-20fix(Terraform): Change AWS AZpmikus2-0/+4
Signed-off-by: pmikus <pmikus@cisco.com> Change-Id: I19c160e40e01bd7f69c08188f61d2bcbc3fd4bcb (cherry picked from commit 8be983ad917cd47fa8da4256fa8ada14ecfcd425)