-
Notifications
You must be signed in to change notification settings - Fork 56
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
chore: add DOCA driver matrix validation #1251
base: master
Are you sure you want to change the base?
Conversation
Pull Request Test Coverage Report for Build 12851631605Details
💛 - Coveralls |
e5a81f9
to
90fac60
Compare
06d07d9
to
cde80a0
Compare
|
break | ||
} | ||
} | ||
if !found { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit maybe you should use unfound
as a list to indicate all missing images. Otherwise will need to trigger this job to discover all missing ones
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
func validateTags(config DocaDriverMatrix, tags []string, version string) error { | ||
// Build expected OS-arch combinations | ||
expectedCombinations := make(map[string]struct{}) | ||
for _, entry := range config.DynamicallyCompiled { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did we miss precompiled
list here? I don't see code is verifying it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR only checks 'DynamicallyCompiled'.
For precompiled
, it will need additional work as the info for kernels are not available in the matrix until GA.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok. Did you open a ticket for tag validation task? If so then we'll need to update that its still pending precompiled verification
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The intent here is to have a minimal check that we have the required 'dynamically_compiled'.
Any more complex use case can be added later, maybe as a Jenkins job
Makefile
Outdated
.PHONY: check-doca-drivers | ||
check-doca-drivers: $(HACKTMPDIR) | ||
$(eval DOCAVERSION := $(shell yq '.Mofed.version' hack/release.yaml | cut -d'-' -f1)) | ||
wget $(DOCA_DRIVER_RELEASE_URL)$(DOCAVERSION)-TBD.yaml -O $(HACKTMPDIR)/doca-driver-matrix.yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are not using DOCAVERSION
(e.g. 2.10) here rather than ofed driver version (e.g. 25.01-0.2.7.0-0)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed var name
cde80a0
to
7364ee3
Compare
Makefile
Outdated
.PHONY: check-doca-drivers | ||
check-doca-drivers: $(HACKTMPDIR) | ||
$(eval DRIVERVERSION := $(shell yq '.Mofed.version' hack/release.yaml | cut -d'-' -f1)) | ||
wget $(DOCA_DRIVER_RELEASE_URL)$(DRIVERVERSION)-TBD.yaml -O $(HACKTMPDIR)/doca-driver-matrix.yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@heyvister1 Regarding the file name in doca-driver-build repo, maybe we should have only the 25.01
in it and add a field in the file with the GA version.
WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm totally ok with that. Please also add an option to use OFED version externally, in case its still TBD (non-GAed) so we can run this verification locally.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So now, it takes the version specified in the release.yaml
. I think it is good enough for now. We can extend later if needed.
We also need to make sure this verification walks though LTS versions as well, according to manifest folder |
7364ee3
to
c03f120
Compare
c03f120
to
4ef5594
Compare
Signed-off-by: Fred Rolland <[email protected]>
4ef5594
to
10ecb85
Compare
/retest-blackduck_scan |
/retest-nic_operator_helm |
No description provided.